/// <summary> /// Lists all azure regions in which the service exists. /// </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 <RegionContract> > ListByServiceNextAsync(this IRegionOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByServiceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists all azure regions in which the service exists. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='serviceName'> /// The name of the API Management service. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <RegionContract> > ListByServiceAsync(this IRegionOperations operations, string resourceGroupName, string serviceName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByServiceWithHttpMessagesAsync(resourceGroupName, serviceName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Creates a new ServerFlex API client with an optional custom base URI. /// </summary> /// <param name="baseApiUri">The base URI to use for the API, or null for default.</param> public ApiClient(Uri baseApiUri = null) : base(baseApiUri) { _accountOperations = ConstructAccountOpertaions(); _regionOperations = ConstructRegionOpertaions(); _serverOperations = ConstructServerOpertaions(); _packageOperations = ConstructPackageOpertaions(); _serverSharingOperations = ConstructServerSharingOperations(); _serverStatistics = ConstructServerStatisticsOperations(); }
/// <summary> /// Lists all azure regions in which the service exists. /// </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 <RegionContract> ListByServiceNext(this IRegionOperations operations, string nextPageLink) { return(operations.ListByServiceNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Lists all azure regions in which the service exists. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='serviceName'> /// The name of the API Management service. /// </param> public static IPage <RegionContract> ListByService(this IRegionOperations operations, string resourceGroupName, string serviceName) { return(operations.ListByServiceAsync(resourceGroupName, serviceName).GetAwaiter().GetResult()); }
public RegionController(IRegionOperations operations) { region = operations; }