Esempio n. 1
0
 /// <summary>
 /// Gets a list of available maintenance windows.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='serverName'>
 /// The name of the server.
 /// </param>
 /// <param name='databaseName'>
 /// The name of the database to get maintenance windows options for.
 /// </param>
 /// <param name='maintenanceWindowOptionsName'>
 /// Maintenance window options name.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <MaintenanceWindowOptions> GetAsync(this IMaintenanceWindowOptionsOperations operations, string resourceGroupName, string serverName, string databaseName, string maintenanceWindowOptionsName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, maintenanceWindowOptionsName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Gets a list of available maintenance windows.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='serverName'>
 /// The name of the server.
 /// </param>
 /// <param name='databaseName'>
 /// The name of the database to get maintenance windows options for.
 /// </param>
 /// <param name='maintenanceWindowOptionsName'>
 /// Maintenance window options name.
 /// </param>
 public static MaintenanceWindowOptions Get(this IMaintenanceWindowOptionsOperations operations, string resourceGroupName, string serverName, string databaseName, string maintenanceWindowOptionsName)
 {
     return(operations.GetAsync(resourceGroupName, serverName, databaseName, maintenanceWindowOptionsName).GetAwaiter().GetResult());
 }