/// <summary> /// Gets a collection of sync group logs. /// </summary> /// <param name="startTime">Get logs generated after this time.</param> /// <param name="endTime">Get logs generated before this time.</param> /// <param name="type">The types of logs to retrieve.</param> /// <return>The paged list containing the group log property objects if successful.</return> System.Collections.Generic.IEnumerable <Microsoft.Azure.Management.Sql.Fluent.ISqlSyncGroupLogProperty> Microsoft.Azure.Management.Sql.Fluent.ISqlSyncGroup.ListLogs(string startTime, string endTime, Models.Type type) { return(this.ListLogs(startTime, endTime, type)); }
///GENMHASH:31B4643F5F463F208B884A3A5CC24E72:FCD5CB554CA014F6FEB6B98FC5423481 public IEnumerable <Microsoft.Azure.Management.Sql.Fluent.ISqlSyncGroupLogProperty> ListLogs(string startTime, string endTime, Models.Type type) { return(Extensions.Synchronize(() => this.ListLogsAsync(startTime, endTime, type))); }
/// <summary> /// Gets a collection of sync group logs asynchronously. /// </summary> /// <param name="startTime">Get logs generated after this time.</param> /// <param name="endTime">Get logs generated before this time.</param> /// <param name="type">The types of logs to retrieve.</param> /// <return>A representation of the deferred computation of this call returning the group log property objects if successful.</return> async Task <IEnumerable <Microsoft.Azure.Management.Sql.Fluent.ISqlSyncGroupLogProperty> > Microsoft.Azure.Management.Sql.Fluent.ISqlSyncGroup.ListLogsAsync(string startTime, string endTime, Models.Type type, CancellationToken cancellationToken) { return(await this.ListLogsAsync(startTime, endTime, type, cancellationToken)); }
///GENMHASH:D917033A76A6F8C9C699B9C317AE8783:3B49D6AEF0B3B5F681FBACE5301592E6 public async Task <IEnumerable <Microsoft.Azure.Management.Sql.Fluent.ISqlSyncGroupLogProperty> > ListLogsAsync(string startTime, string endTime, Models.Type type, CancellationToken cancellationToken = default(CancellationToken)) { List <ISqlSyncGroupLogProperty> syncGroupLogProperties = new List <ISqlSyncGroupLogProperty>(); var syncGroupLogPropertiesInners = await this.sqlServerManager.Inner.SyncGroups .ListLogsAsync(this.resourceGroupName, this.sqlServerName, this.sqlDatabaseName, this.Name(), startTime, endTime, type, cancellationToken : cancellationToken); if (syncGroupLogPropertiesInners != null) { foreach (var syncGroupLogPropertiesInner in syncGroupLogPropertiesInners) { syncGroupLogProperties.Add(new SqlSyncGroupLogPropertyImpl(syncGroupLogPropertiesInner)); } } return(syncGroupLogProperties.AsReadOnly()); }