/// <summary>
 /// Returns the status of a storage operation.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group.
 /// </param>
 /// <param name='location'>
 /// Location of the resource.
 /// </param>
 /// <param name='operation'>
 /// Operation identifier.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <StorageOperationResult> GetAsync(this IStorageOperationResultsOperations operations, string resourceGroupName, string location, string operation, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, location, operation, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Returns a list of all storage operation results at a location.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <StorageOperationResult> > ListNextAsync(this IStorageOperationResultsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Returns a list of all storage operation results at a location.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group.
 /// </param>
 /// <param name='location'>
 /// Location of the resource.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <StorageOperationResult> > ListAsync(this IStorageOperationResultsOperations operations, string resourceGroupName, string location, ODataQuery <StorageOperationResult> odataQuery = default(ODataQuery <StorageOperationResult>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, location, odataQuery, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Beispiel #4
0
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     ApplicationOperationResults = new ApplicationOperationResultsOperations(this);
     ComputeOperationResults     = new ComputeOperationResultsOperations(this);
     Fabric                           = new FabricOperations(this);
     EdgeGateways                     = new EdgeGatewaysOperations(this);
     EdgeGatewayPools                 = new EdgeGatewayPoolsOperations(this);
     FabricLocations                  = new FabricLocationsOperations(this);
     FileShares                       = new FileSharesOperations(this);
     InfraRoles                       = new InfraRolesOperations(this);
     InfraRoleInstances               = new InfraRoleInstancesOperations(this);
     IpPools                          = new IpPoolsOperations(this);
     LogicalNetworks                  = new LogicalNetworksOperations(this);
     StoragePools                     = new StoragePoolsOperations(this);
     StorageSystems                   = new StorageSystemsOperations(this);
     Volumes                          = new VolumesOperations(this);
     LogicalSubnets                   = new LogicalSubnetsOperations(this);
     MacAddressPools                  = new MacAddressPoolsOperations(this);
     NetworkOperationResults          = new NetworkOperationResultsOperations(this);
     ScaleUnits                       = new ScaleUnitsOperations(this);
     ScaleUnitNodes                   = new ScaleUnitNodesOperations(this);
     SlbMuxInstances                  = new SlbMuxInstancesOperations(this);
     StorageOperationResults          = new StorageOperationResultsOperations(this);
     BaseUri                          = new System.Uri("https://adminmanagement.local.azurestack.external");
     ApiVersion                       = "2016-05-01";
     AcceptLanguage                   = "en-US";
     LongRunningOperationRetryTimeout = 30;
     GenerateClientRequestId          = true;
     SerializationSettings            = new JsonSerializerSettings
     {
         Formatting            = Newtonsoft.Json.Formatting.Indented,
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     SerializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings = new JsonSerializerSettings
     {
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     CustomInitialize();
     DeserializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
 }
 /// <summary>
 /// Returns a list of all storage operation results at a location.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group.
 /// </param>
 /// <param name='location'>
 /// Location of the resource.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 public static IPage <StorageOperationResult> List(this IStorageOperationResultsOperations operations, string resourceGroupName, string location, ODataQuery <StorageOperationResult> odataQuery = default(ODataQuery <StorageOperationResult>))
 {
     return(operations.ListAsync(resourceGroupName, location, odataQuery).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Returns the status of a storage operation.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group.
 /// </param>
 /// <param name='location'>
 /// Location of the resource.
 /// </param>
 /// <param name='operation'>
 /// Operation identifier.
 /// </param>
 public static StorageOperationResult Get(this IStorageOperationResultsOperations operations, string resourceGroupName, string location, string operation)
 {
     return(operations.GetAsync(resourceGroupName, location, operation).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Returns a list of all storage operation results at a location.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <StorageOperationResult> ListNext(this IStorageOperationResultsOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }