Esempio n. 1
0
 /// <summary>
 /// Returns the requested software load balancer multiplexer instance.
 /// </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='slbMuxInstance'>
 /// Name of a SLB MUX instance.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <SlbMuxInstance> GetAsync(this ISlbMuxInstancesOperations operations, string resourceGroupName, string location, string slbMuxInstance, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, location, slbMuxInstance, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Returns a list of all software load balancer instances 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 <SlbMuxInstance> > ListNextAsync(this ISlbMuxInstancesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Returns a list of all software load balancer instances 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 <SlbMuxInstance> > ListAsync(this ISlbMuxInstancesOperations operations, string resourceGroupName, string location, ODataQuery <SlbMuxInstance> odataQuery = default(ODataQuery <SlbMuxInstance>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, location, odataQuery, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     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);
     ScaleUnits         = new ScaleUnitsOperations(this);
     ScaleUnitNodes     = new ScaleUnitNodesOperations(this);
     SlbMuxInstances    = new SlbMuxInstancesOperations(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());
 }
Esempio n. 5
0
 /// <summary>
 /// Returns a list of all software load balancer instances 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 <SlbMuxInstance> List(this ISlbMuxInstancesOperations operations, string resourceGroupName, string location, ODataQuery <SlbMuxInstance> odataQuery = default(ODataQuery <SlbMuxInstance>))
 {
     return(operations.ListAsync(resourceGroupName, location, odataQuery).GetAwaiter().GetResult());
 }
Esempio n. 6
0
 /// <summary>
 /// Returns the requested software load balancer multiplexer instance.
 /// </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='slbMuxInstance'>
 /// Name of a SLB MUX instance.
 /// </param>
 public static SlbMuxInstance Get(this ISlbMuxInstancesOperations operations, string resourceGroupName, string location, string slbMuxInstance)
 {
     return(operations.GetAsync(resourceGroupName, location, slbMuxInstance).GetAwaiter().GetResult());
 }
Esempio n. 7
0
 /// <summary>
 /// Returns a list of all software load balancer instances 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 <SlbMuxInstance> ListNext(this ISlbMuxInstancesOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }