/// <summary> /// Updates an integration service environment. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroup'> /// The resource group. /// </param> /// <param name='integrationServiceEnvironmentName'> /// The integration service environment name. /// </param> /// <param name='integrationServiceEnvironment'> /// The integration service environment. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IntegrationServiceEnvironment> BeginUpdateAsync(this IIntegrationServiceEnvironmentsOperations operations, string resourceGroup, string integrationServiceEnvironmentName, IntegrationServiceEnvironment integrationServiceEnvironment, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, integrationServiceEnvironment, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a list of integration service environments by resource group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroup'> /// The resource group. /// </param> /// <param name='top'> /// The number of items to be included in the result. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <IntegrationServiceEnvironment> > ListByResourceGroupAsync(this IIntegrationServiceEnvironmentsOperations operations, string resourceGroup, int?top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroup, top, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a list of integration service environments by resource group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroup'> /// The resource group. /// </param> /// <param name='top'> /// The number of items to be included in the result. /// </param> public static IPage <IntegrationServiceEnvironment> ListByResourceGroup(this IIntegrationServiceEnvironmentsOperations operations, string resourceGroup, int?top = default(int?)) { return(operations.ListByResourceGroupAsync(resourceGroup, top).GetAwaiter().GetResult()); }
/// <summary> /// Gets a list of integration service environments by resource group. /// </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 <IntegrationServiceEnvironment> ListByResourceGroupNext(this IIntegrationServiceEnvironmentsOperations operations, string nextPageLink) { return(operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Gets a list of integration service environments by subscription. /// </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 <IntegrationServiceEnvironment> > ListBySubscriptionNextAsync(this IIntegrationServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListBySubscriptionNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Updates an integration service environment. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroup'> /// The resource group. /// </param> /// <param name='integrationServiceEnvironmentName'> /// The integration service environment name. /// </param> /// <param name='integrationServiceEnvironment'> /// The integration service environment. /// </param> public static IntegrationServiceEnvironment BeginUpdate(this IIntegrationServiceEnvironmentsOperations operations, string resourceGroup, string integrationServiceEnvironmentName, IntegrationServiceEnvironment integrationServiceEnvironment) { return(operations.BeginUpdateAsync(resourceGroup, integrationServiceEnvironmentName, integrationServiceEnvironment).GetAwaiter().GetResult()); }
/// <summary> /// Gets a list of integration service environments by subscription. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='top'> /// The number of items to be included in the result. /// </param> public static IPage <IntegrationServiceEnvironment> ListBySubscription(this IIntegrationServiceEnvironmentsOperations operations, int?top = default(int?)) { return(operations.ListBySubscriptionAsync(top).GetAwaiter().GetResult()); }
/// <summary> /// Restarts an integration service environment. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroup'> /// The resource group. /// </param> /// <param name='integrationServiceEnvironmentName'> /// The integration service environment name. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task RestartAsync(this IIntegrationServiceEnvironmentsOperations operations, string resourceGroup, string integrationServiceEnvironmentName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.RestartWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Restarts an integration service environment. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroup'> /// The resource group. /// </param> /// <param name='integrationServiceEnvironmentName'> /// The integration service environment name. /// </param> public static void Restart(this IIntegrationServiceEnvironmentsOperations operations, string resourceGroup, string integrationServiceEnvironmentName) { operations.RestartAsync(resourceGroup, integrationServiceEnvironmentName).GetAwaiter().GetResult(); }
/// <summary> /// Gets an integration service environment. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroup'> /// The resource group. /// </param> /// <param name='integrationServiceEnvironmentName'> /// The integration service environment name. /// </param> public static IntegrationServiceEnvironment Get(this IIntegrationServiceEnvironmentsOperations operations, string resourceGroup, string integrationServiceEnvironmentName) { return(operations.GetAsync(resourceGroup, integrationServiceEnvironmentName).GetAwaiter().GetResult()); }