Пример #1
0
 /// <summary>
 /// Provisions cloud appliance.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='parameters'>
 /// The cloud appliance
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name
 /// </param>
 /// <param name='managerName'>
 /// The manager name
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginProvisionAsync(this ICloudAppliancesOperations operations, CloudApplianceInner parameters, string resourceGroupName, string managerName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginProvisionWithHttpMessagesAsync(parameters, resourceGroupName, managerName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Пример #2
0
 /// <summary>
 /// Provisions cloud appliance.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='parameters'>
 /// The cloud appliance
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name
 /// </param>
 /// <param name='managerName'>
 /// The manager name
 /// </param>
 public static void Provision(this ICloudAppliancesOperations operations, CloudAppliance parameters, string resourceGroupName, string managerName)
 {
     operations.ProvisionAsync(parameters, resourceGroupName, managerName).GetAwaiter().GetResult();
 }
Пример #3
0
 /// <summary>
 /// Lists supported cloud appliance models and supported configurations.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name
 /// </param>
 /// <param name='managerName'>
 /// The manager name
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IEnumerable <CloudApplianceConfiguration> > ListSupportedConfigurationsAsync(this ICloudAppliancesOperations operations, string resourceGroupName, string managerName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListSupportedConfigurationsWithHttpMessagesAsync(resourceGroupName, managerName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #4
0
 /// <summary>
 /// Lists supported cloud appliance models and supported configurations.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name
 /// </param>
 /// <param name='managerName'>
 /// The manager name
 /// </param>
 public static IEnumerable <CloudApplianceConfiguration> ListSupportedConfigurations(this ICloudAppliancesOperations operations, string resourceGroupName, string managerName)
 {
     return(operations.ListSupportedConfigurationsAsync(resourceGroupName, managerName).GetAwaiter().GetResult());
 }