/// <summary> /// Lists eligible SKUs for an Analysis Services resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the Azure Resource group of which a given Analysis Services /// server is part. This name must be at least 1 character in length, and no /// more than 90. /// </param> /// <param name='serverName'> /// The name of the Analysis Services server. It must be at least 3 characters /// in length, and no more than 63. /// </param> public static SkuEnumerationForExistingResourceResult ListSkusForExisting(this IServersOperations operations, string resourceGroupName, string serverName) { return(operations.ListSkusForExistingAsync(resourceGroupName, serverName).GetAwaiter().GetResult()); }
/// <summary> /// Stops a server. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='serverName'> /// The name of the server. /// </param> public static void BeginStop(this IServersOperations operations, string resourceGroupName, string serverName) { operations.BeginStopAsync(resourceGroupName, serverName).GetAwaiter().GetResult(); }
/// <summary> /// List all the servers in a given 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> public static IPage <Server> ListNext(this IServersOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Deletes a server. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='serverName'> /// The name of the server. /// </param> public static void Delete(this IServersOperations operations, string resourceGroupName, string serverName) { operations.DeleteAsync(resourceGroupName, serverName).GetAwaiter().GetResult(); }
/// <summary> /// List all the servers in a given resource group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> public static IPage <Server> ListByResourceGroup(this IServersOperations operations, string resourceGroupName) { return(operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult()); }
/// <summary> /// Determines whether a resource can be created with the specified name. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='name'> /// The name whose availability is to be checked. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <CheckNameAvailabilityResponseInner> CheckNameAvailabilityAsync(this IServersOperations operations, string name, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CheckNameAvailabilityWithHttpMessagesAsync(name, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists eligible SKUs for Analysis Services resource provider. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SkuEnumerationForNewResourceResultInner> ListSkusForNewAsync(this IServersOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListSkusForNewWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List the result of the specified operation. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='location'> /// The region name which the operation will lookup into. /// </param> /// <param name='operationId'> /// The target operation Id. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task ListOperationResultsAsync(this IServersOperations operations, string location, string operationId, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.ListOperationResultsWithHttpMessagesAsync(location, operationId, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// List the status of operation. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='location'> /// The region name which the operation will lookup into. /// </param> /// <param name='operationId'> /// The target operation Id. /// </param> public static OperationStatus ListOperationStatuses(this IServersOperations operations, string location, string operationId) { return(operations.ListOperationStatusesAsync(location, operationId).GetAwaiter().GetResult()); }
/// <summary> /// Check the name availability in the target location. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='location'> /// The region name which the operation will lookup into. /// </param> /// <param name='serverParameters'> /// Contains the information used to provision the Analysis Services server. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <CheckServerNameAvailabilityResult> CheckNameAvailabilityAsync(this IServersOperations operations, string location, CheckServerNameAvailabilityParameters serverParameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CheckNameAvailabilityWithHttpMessagesAsync(location, serverParameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List the result of the specified operation. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='location'> /// The region name which the operation will lookup into. /// </param> /// <param name='operationId'> /// The target operation Id. /// </param> public static void ListOperationResults(this IServersOperations operations, string location, string operationId) { operations.ListOperationResultsAsync(location, operationId).GetAwaiter().GetResult(); }
/// <summary> /// Check the name availability in the target location. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='location'> /// The region name which the operation will lookup into. /// </param> /// <param name='serverParameters'> /// Contains the information used to provision the Analysis Services server. /// </param> public static CheckServerNameAvailabilityResult CheckNameAvailability(this IServersOperations operations, string location, CheckServerNameAvailabilityParameters serverParameters) { return(operations.CheckNameAvailabilityAsync(location, serverParameters).GetAwaiter().GetResult()); }
/// <summary> /// Dissociates a Unified Gateway associated with the server. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the Azure Resource group of which a given Analysis Services /// server is part. This name must be at least 1 character in length, and no /// more than 90. /// </param> /// <param name='serverName'> /// The name of the Analysis Services server. It must be at least 3 characters /// in length, and no more than 63. /// </param> public static void DissociateGateway(this IServersOperations operations, string resourceGroupName, string serverName) { operations.DissociateGatewayAsync(resourceGroupName, serverName).GetAwaiter().GetResult(); }
/// <summary> /// Return the gateway status of the specified Analysis Services server /// instance. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the Azure Resource group of which a given Analysis Services /// server is part. This name must be at least 1 character in length, and no /// more than 90. /// </param> /// <param name='serverName'> /// The name of the Analysis Services server. /// </param> public static GatewayListStatusLive ListGatewayStatus(this IServersOperations operations, string resourceGroupName, string serverName) { return(operations.ListGatewayStatusAsync(resourceGroupName, serverName).GetAwaiter().GetResult()); }
/// <summary> /// Restarts a server. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='serverName'> /// The name of the server. /// </param> /// <param name='parameters'> /// The parameters for restarting a server. /// </param> public static void BeginRestart(this IServersOperations operations, string resourceGroupName, string serverName, RestartParameter parameters = default(RestartParameter)) { operations.BeginRestartAsync(resourceGroupName, serverName, parameters).GetAwaiter().GetResult(); }
/// <summary> /// Provisions the specified Analysis Services server based on the /// configuration specified in the request. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the Azure Resource group of which a given Analysis Services /// server is part. This name must be at least 1 character in length, and no /// more than 90. /// </param> /// <param name='serverName'> /// The name of the Analysis Services server. It must be a minimum of 3 /// characters, and a maximum of 63. /// </param> /// <param name='serverParameters'> /// Contains the information used to provision the Analysis Services server. /// </param> public static AnalysisServicesServer Create(this IServersOperations operations, string resourceGroupName, string serverName, AnalysisServicesServer serverParameters) { return(operations.CreateAsync(resourceGroupName, serverName, serverParameters).GetAwaiter().GetResult()); }
/// <summary> /// Determines whether a resource can be created with the specified name. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='parameters'> /// The parameters to request for name availability. /// </param> public static CheckNameAvailabilityResponse CheckNameAvailability(this IServersOperations operations, CheckNameAvailabilityRequest parameters) { return(operations.CheckNameAvailabilityAsync(parameters).GetAwaiter().GetResult()); }
/// <summary> /// Deletes a server. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// </param> /// <param name='serverName'> /// The name of the server. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginDeleteAsync(this IServersOperations operations, string resourceGroupName, string serverName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, serverName, SqlManagementClient.SetJsonAcceptHeader(), cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Lists all the Analysis Services servers for the given subscription. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IEnumerable <AnalysisServicesServerInner> > ListAsync(this IServersOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Restarts a server. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='serverName'> /// The name of the server. /// </param> /// <param name='parameters'> /// The required parameters for restarting a server. /// </param> public static void Restart(this IServersOperations operations, string resourceGroupName, string serverName, ServerRestartParameter parameters) { operations.RestartAsync(resourceGroupName, serverName, parameters).GetAwaiter().GetResult(); }
/// <summary> /// Lists eligible SKUs for an Analysis Services resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the Azure Resource group of which a given Analysis Services /// server is part. This name must be at least 1 character in length, and no /// more than 90. /// </param> /// <param name='serverName'> /// The name of the Analysis Services server. It must be at least 3 characters /// in length, and no more than 63. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SkuEnumerationForExistingResourceResultInner> ListSkusForExistingAsync(this IServersOperations operations, string resourceGroupName, string serverName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListSkusForExistingWithHttpMessagesAsync(resourceGroupName, serverName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a list of all servers in the subscription. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='expand'> /// The child resources to include in the response. /// </param> public static IPage <Server> List(this IServersOperations operations, string expand = default(string)) { return(operations.ListAsync(expand).GetAwaiter().GetResult()); }
/// <summary> /// Gets information about a server. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='serverName'> /// The name of the server. /// </param> public static Server Get(this IServersOperations operations, string resourceGroupName, string serverName) { return(operations.GetAsync(resourceGroupName, serverName).GetAwaiter().GetResult()); }
/// <summary> /// Imports a bacpac into a new database. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// </param> /// <param name='serverName'> /// The name of the server. /// </param> /// <param name='parameters'> /// The database import request parameters. /// </param> public static ImportExportOperationResult BeginImportDatabase(this IServersOperations operations, string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters) { return(operations.BeginImportDatabaseAsync(resourceGroupName, serverName, parameters).GetAwaiter().GetResult()); }
/// <summary> /// List all the servers in a given subscription. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IPage <Server> List(this IServersOperations operations) { return(operations.ListAsync().GetAwaiter().GetResult()); }
/// <summary> /// Imports a bacpac into a new database. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// </param> /// <param name='serverName'> /// The name of the server. /// </param> /// <param name='parameters'> /// The database import request parameters. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ImportExportOperationResult> BeginImportDatabaseAsync(this IServersOperations operations, string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginImportDatabaseWithHttpMessagesAsync(resourceGroupName, serverName, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Stops a server. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='serverName'> /// The name of the server. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginStopAsync(this IServersOperations operations, string resourceGroupName, string serverName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginStopWithHttpMessagesAsync(resourceGroupName, serverName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Restarts a server. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='serverName'> /// The name of the server. /// </param> /// <param name='parameters'> /// The parameters for restarting a server. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task RestartAsync(this IServersOperations operations, string resourceGroupName, string serverName, RestartParameter parameters = default(RestartParameter), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.RestartWithHttpMessagesAsync(resourceGroupName, serverName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Updates an existing server. The request body can contain one to many of the /// properties present in the normal server definition. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='serverName'> /// The name of the server. /// </param> /// <param name='parameters'> /// The required parameters for updating a server. /// </param> public static Server Update(this IServersOperations operations, string resourceGroupName, string serverName, ServerForUpdate parameters) { return(operations.UpdateAsync(resourceGroupName, serverName, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Gets details about the specified Analysis Services server. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the Azure Resource group of which a given Analysis Services /// server is part. This name must be at least 1 character in length, and no /// more than 90. /// </param> /// <param name='serverName'> /// The name of the Analysis Services server. It must be a minimum of 3 /// characters, and a maximum of 63. /// </param> public static AnalysisServicesServer GetDetails(this IServersOperations operations, string resourceGroupName, string serverName) { return(operations.GetDetailsAsync(resourceGroupName, serverName).GetAwaiter().GetResult()); }