/// <summary>
 /// Gets a next list of deployments operations.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Internal.Resources.IDeploymentOperationOperations.
 /// </param>
 /// <param name='nextLink'>
 /// Required. NextLink from the previous successful call to List
 /// operation.
 /// </param>
 /// <returns>
 /// List of deployment operations.
 /// </returns>
 public static DeploymentOperationsListResult ListNext(this IDeploymentOperationOperations operations, string nextLink)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IDeploymentOperationOperations)s).ListNextAsync(nextLink);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Get a list of deployments operations.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Internal.Resources.IDeploymentOperationOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group. The name is case
 /// insensitive.
 /// </param>
 /// <param name='deploymentName'>
 /// Required. The name of the deployment.
 /// </param>
 /// <param name='operationId'>
 /// Required. Operation Id.
 /// </param>
 /// <returns>
 /// Deployment operation.
 /// </returns>
 public static DeploymentOperationsGetResult Get(this IDeploymentOperationOperations operations, string resourceGroupName, string deploymentName, string operationId)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IDeploymentOperationOperations)s).GetAsync(resourceGroupName, deploymentName, operationId);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the ResourceManagementClient class.
 /// </summary>
 private ResourceManagementClient()
     : base()
 {
     this._deploymentOperations = new DeploymentOperationOperations(this);
     this._deployments          = new DeploymentOperations(this);
     this._providers            = new ProviderOperations(this);
     this._resourceGroups       = new ResourceGroupOperations(this);
     this._resources            = new ResourceOperations(this);
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
예제 #4
0
 /// <summary>
 /// Initializes a new instance of the ResourceManagementClient class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 public ResourceManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._deploymentOperations = new DeploymentOperationOperations(this);
     this._deployments          = new DeploymentOperations(this);
     this._providers            = new ProviderOperations(this);
     this._resourceGroups       = new ResourceGroupOperations(this);
     this._resources            = new ResourceOperations(this);
     this._tags       = new TagOperations(this);
     this._apiVersion = "2014-04-01-preview";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
 /// <summary>
 /// Initializes a new instance of the ResourceManagementClient class.
 /// </summary>
 public ResourceManagementClient()
     : base()
 {
     this._deploymentOperations             = new DeploymentOperationOperations(this);
     this._deployments                      = new DeploymentOperations(this);
     this._providers                        = new ProviderOperations(this);
     this._providerOperationsMetadata       = new ProviderOperationsMetadataOperations(this);
     this._resourceGroups                   = new ResourceGroupOperations(this);
     this._resources                        = new ResourceOperations(this);
     this._resourceProviderOperationDetails = new ResourceProviderOperationDetailsOperations(this);
     this._tags       = new TagOperations(this);
     this._apiVersion = "2016-02-01";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
 /// <summary>
 /// Get a list of deployments operations.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Internal.Resources.IDeploymentOperationOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group. The name is case
 /// insensitive.
 /// </param>
 /// <param name='deploymentName'>
 /// Required. The name of the deployment.
 /// </param>
 /// <param name='operationId'>
 /// Required. Operation Id.
 /// </param>
 /// <returns>
 /// Deployment operation.
 /// </returns>
 public static Task <DeploymentOperationsGetResult> GetAsync(this IDeploymentOperationOperations operations, string resourceGroupName, string deploymentName, string operationId)
 {
     return(operations.GetAsync(resourceGroupName, deploymentName, operationId, CancellationToken.None));
 }
 /// <summary>
 /// Gets a next list of deployments operations.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Internal.Resources.IDeploymentOperationOperations.
 /// </param>
 /// <param name='nextLink'>
 /// Required. NextLink from the previous successful call to List
 /// operation.
 /// </param>
 /// <returns>
 /// List of deployment operations.
 /// </returns>
 public static Task <DeploymentOperationsListResult> ListNextAsync(this IDeploymentOperationOperations operations, string nextLink)
 {
     return(operations.ListNextAsync(nextLink, CancellationToken.None));
 }
 /// <summary>
 /// Gets a list of deployments operations.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Internal.Resources.IDeploymentOperationOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group. The name is case
 /// insensitive.
 /// </param>
 /// <param name='deploymentName'>
 /// Required. The name of the deployment.
 /// </param>
 /// <param name='parameters'>
 /// Optional. Query parameters.
 /// </param>
 /// <returns>
 /// List of deployment operations.
 /// </returns>
 public static Task <DeploymentOperationsListResult> ListAsync(this IDeploymentOperationOperations operations, string resourceGroupName, string deploymentName, DeploymentOperationsListParameters parameters)
 {
     return(operations.ListAsync(resourceGroupName, deploymentName, parameters, CancellationToken.None));
 }