/// <summary> /// Returns details of a recommended action. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Sql.LegacySdk.IServerRecommendedActionOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the Resource Group. /// </param> /// <param name='serverName'> /// Required. The name of the Azure SQL server. /// </param> /// <param name='advisorName'> /// Required. The name of the Azure SQL Server advisor. /// </param> /// <param name='recommendedActionName'> /// Required. The name of the Azure SQL Server recommended action. /// </param> /// <returns> /// Represents the response to a get recommended action request. /// </returns> public static RecommendedActionGetResponse Get(this IServerRecommendedActionOperations operations, string resourceGroupName, string serverName, string advisorName, string recommendedActionName) { return(Task.Factory.StartNew((object s) => { return ((IServerRecommendedActionOperations)s).GetAsync(resourceGroupName, serverName, advisorName, recommendedActionName); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Initializes a new instance of the SqlManagementClient class. /// </summary> /// <param name='httpClient'> /// The Http client /// </param> public SqlManagementClient(HttpClient httpClient) : base(httpClient) { this._auditingPolicy = new AuditingPolicyOperations(this); this._blobAuditing = new BlobAuditingOperations(this); this._capabilities = new CapabilitiesOperations(this); this._databaseActivation = new DatabaseActivationOperations(this); this._databaseAdvisors = new DatabaseAdvisorOperations(this); this._databaseBackup = new DatabaseBackupOperations(this); this._databases = new DatabaseOperations(this); this._databaseRecommendedActions = new DatabaseRecommendedActionOperations(this); this._dataMasking = new DataMaskingOperations(this); this._dataSync = new DataSyncOperations(this); this._elasticPoolAdvisors = new ElasticPoolAdvisorOperations(this); this._elasticPools = new ElasticPoolOperations(this); this._elasticPoolRecommendedActions = new ElasticPoolRecommendedActionOperations(this); this._failoverGroups = new FailoverGroupOperations(this); this._firewallRules = new FirewallRuleOperations(this); this._importExport = new ImportExportOperations(this); this._jobAccounts = new JobAccountOperations(this); this._recommendedElasticPools = new RecommendedElasticPoolOperations(this); this._recommendedIndexes = new RecommendedIndexOperations(this); this._databaseReplicationLinks = new ReplicationLinkOperations(this); this._secureConnection = new SecureConnectionPolicyOperations(this); this._securityAlertPolicy = new SecurityAlertPolicyOperations(this); this._serverAdministrators = new ServerAdministratorOperations(this); this._serverAdvisors = new ServerAdvisorOperations(this); this._communicationLinks = new ServerCommunicationLinkOperations(this); this._serverDisasterRecoveryConfigurations = new ServerDisasterRecoveryConfigurationOperations(this); this._serverKey = new ServerKeyOperations(this); this._servers = new ServerOperations(this); this._serverRecommendedActions = new ServerRecommendedActionOperations(this); this._serverUpgrades = new ServerUpgradeOperations(this); this._serviceObjectives = new ServiceObjectiveOperations(this); this._serviceTierAdvisors = new ServiceTierAdvisorOperations(this); this._transparentDataEncryption = new TransparentDataEncryptionOperations(this); this._apiVersion = "2014-04-01"; this._longRunningOperationInitialTimeout = -1; this._longRunningOperationRetryTimeout = -1; this.HttpClient.Timeout = TimeSpan.FromSeconds(300); }
/// <summary> /// Returns details of a recommended action. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Sql.LegacySdk.IServerRecommendedActionOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the Resource Group. /// </param> /// <param name='serverName'> /// Required. The name of the Azure SQL server. /// </param> /// <param name='advisorName'> /// Required. The name of the Azure SQL Server advisor. /// </param> /// <param name='recommendedActionName'> /// Required. The name of the Azure SQL Server recommended action. /// </param> /// <returns> /// Represents the response to a get recommended action request. /// </returns> public static Task <RecommendedActionGetResponse> GetAsync(this IServerRecommendedActionOperations operations, string resourceGroupName, string serverName, string advisorName, string recommendedActionName) { return(operations.GetAsync(resourceGroupName, serverName, advisorName, recommendedActionName, CancellationToken.None)); }
/// <summary> /// Updates recommended action state. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Sql.LegacySdk.IServerRecommendedActionOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the Resource Group. /// </param> /// <param name='serverName'> /// Required. The name of the Azure SQL server. /// </param> /// <param name='advisorName'> /// Required. The name of the Azure SQL Server advisor. /// </param> /// <param name='recommendedActionName'> /// Required. The name of the Azure SQL Server recommended action. /// </param> /// <param name='parameters'> /// Required. The required parameters for updating recommended action /// state. /// </param> /// <returns> /// Represents the response to an update recommended action request. /// </returns> public static Task <RecommendedActionUpdateResponse> UpdateAsync(this IServerRecommendedActionOperations operations, string resourceGroupName, string serverName, string advisorName, string recommendedActionName, RecommendedActionUpdateParameters parameters) { return(operations.UpdateAsync(resourceGroupName, serverName, advisorName, recommendedActionName, parameters, CancellationToken.None)); }