/// <summary> /// Retrieve a list of allocated stamps. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.RecoveryServices.IStampOperations. /// </param> /// <param name='region'> /// Required. Region of the stamp. /// </param> /// <param name='provisioningApiVersion'> /// Required. Provisioning api version. /// </param> /// <param name='parameters'> /// Required. Stamp query parameter. /// </param> /// <param name='customRequestHeaders'> /// Optional. Request header parameters. /// </param> /// <returns> /// The response model for Stamp. /// </returns> public static StampListResponse List(this IStampOperations operations, string region, string provisioningApiVersion, StampQueryParameter parameters, CustomRequestHeaders customRequestHeaders) { return(Task.Factory.StartNew((object s) => { return ((IStampOperations)s).ListAsync(region, provisioningApiVersion, parameters, customRequestHeaders); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Initializes a new instance of the RecoveryServicesManagementClient /// class. /// </summary> /// <param name='httpClient'> /// The Http client /// </param> public RecoveryServicesManagementClient(HttpClient httpClient) : base(httpClient) { this._replicationUsages = new ReplicationUsagesOperations(this); this._resourceGroup = new ResourceGroupsOperations(this); this._allocatedStamps = new StampOperations(this); this._vaultExtendedInfo = new VaultExtendedInfoOperations(this); this._vaults = new VaultOperations(this); this._vaultUsage = new VaultUsageOperations(this); this._apiVersion = "2015-01-01"; this._longRunningOperationInitialTimeout = -1; this._longRunningOperationRetryTimeout = -1; this.HttpClient.Timeout = TimeSpan.FromSeconds(300); }
/// <summary> /// Retrieve a list of allocated stamps. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.RecoveryServices.IStampOperations. /// </param> /// <param name='region'> /// Required. Region of the stamp. /// </param> /// <param name='provisioningApiVersion'> /// Required. Provisioning api version. /// </param> /// <param name='parameters'> /// Required. Stamp query parameter. /// </param> /// <param name='customRequestHeaders'> /// Optional. Request header parameters. /// </param> /// <returns> /// The response model for Stamp. /// </returns> public static Task <StampListResponse> ListAsync(this IStampOperations operations, string region, string provisioningApiVersion, StampQueryParameter parameters, CustomRequestHeaders customRequestHeaders) { return(operations.ListAsync(region, provisioningApiVersion, parameters, customRequestHeaders, CancellationToken.None)); }