/// <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._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 Azure SQL Elastic Database Pool Advisor. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Sql.LegacySdk.IElasticPoolAdvisorOperations. /// </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='elasticPoolName'> /// Required. The name of the Azure SQL Elastic Database Pool. /// </param> /// <param name='advisorName'> /// Required. The name of the Azure SQL Elastic Database Pool advisor. /// </param> /// <param name='expand'> /// Optional. The comma separated list of child objects that we want to /// expand on in response. NULL if expand is not required. /// </param> /// <returns> /// Represents the response to a get advisor request. /// </returns> public static Task <AdvisorGetResponse> GetAsync(this IElasticPoolAdvisorOperations operations, string resourceGroupName, string serverName, string elasticPoolName, string advisorName, string expand) { return(operations.GetAsync(resourceGroupName, serverName, elasticPoolName, advisorName, expand, CancellationToken.None)); }
/// <summary> /// Updates the auto-execute status for this Advisor. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Sql.LegacySdk.IElasticPoolAdvisorOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the Resource Group to which the Azure SQL /// Server belongs. /// </param> /// <param name='serverName'> /// Required. The name of the Azure SQL Server on which the database is /// hosted. /// </param> /// <param name='elasticPoolName'> /// Required. The name of the Azure SQL Elastic Database Pool. /// </param> /// <param name='advisorName'> /// Required. The name of the Azure SQL Elastic Database Pool advisor. /// </param> /// <param name='parameters'> /// Required. The required parameters for updating auto-execute status /// of an Advisor /// </param> /// <returns> /// Represents the response to a update advisor request. /// </returns> public static Task <AdvisorUpdateResponse> UpdateAsync(this IElasticPoolAdvisorOperations operations, string resourceGroupName, string serverName, string elasticPoolName, string advisorName, AdvisorUpdateParameters parameters) { return(operations.UpdateAsync(resourceGroupName, serverName, elasticPoolName, advisorName, parameters, CancellationToken.None)); }