/// <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._databaseActivation       = new DatabaseActivationOperations(this);
     this._databaseBackup           = new DatabaseBackupOperations(this);
     this._databases                = new DatabaseOperations(this);
     this._dataMasking              = new DataMaskingOperations(this);
     this._elasticPools             = new ElasticPoolOperations(this);
     this._firewallRules            = new FirewallRuleOperations(this);
     this._capabilities             = new LocationCapabilitiesOperations(this);
     this._recommendedElasticPools  = new RecommendedElasticPoolOperations(this);
     this._recommendedIndexes       = new RecommendedIndexOperations(this);
     this._databaseReplicationLinks = new ReplicationLinkOperations(this);
     this._secureConnection         = new SecureConnectionPolicyOperations(this);
     this._serverAdministrators     = new ServerAdministratorOperations(this);
     this._servers                            = new ServerOperations(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>
 /// Initializes a new instance of the SqlManagementClient class.
 /// </summary>
 public SqlManagementClient()
     : base()
 {
     this._auditingPolicy                       = new AuditingPolicyOperations(this);
     this._blobAuditing                         = new BlobAuditingOperations(this);
     this._capabilities                         = new CapabilitiesOperations(this);
     this._databaseActivation                   = new DatabaseActivationOperations(this);
     this._databaseBackup                       = new DatabaseBackupOperations(this);
     this._databases                            = new DatabaseOperations(this);
     this._dataMasking                          = new DataMaskingOperations(this);
     this._elasticPools                         = new ElasticPoolOperations(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._communicationLinks                   = new ServerCommunicationLinkOperations(this);
     this._serverDisasterRecoveryConfigurations = new ServerDisasterRecoveryConfigurationOperations(this);
     this._servers                            = new ServerOperations(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);
 }
Beispiel #3
0
 /// <summary>
 /// Returns information about a service tier advisor.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Sql.LegacySdk.IServiceTierAdvisorOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the Resource Group.
 /// </param>
 /// <param name='serverName'>
 /// Required. The name of server.
 /// </param>
 /// <param name='databaseName'>
 /// Required. The name of database.
 /// </param>
 /// <param name='serviceTierAdvisorName'>
 /// Required. The name of service tier advisor.
 /// </param>
 /// <returns>
 /// Represents the response to a get service tier advisor request.
 /// </returns>
 public static ServiceTierAdvisorGetResponse Get(this IServiceTierAdvisorOperations operations, string resourceGroupName, string serverName, string databaseName, string serviceTierAdvisorName)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IServiceTierAdvisorOperations)s).GetAsync(resourceGroupName, serverName, databaseName, serviceTierAdvisorName);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Initializes a new instance of the SqlManagementClient class.
 /// </summary>
 public SqlManagementClient()
     : base()
 {
     this._auditingPolicy          = new AuditingPolicyOperations(this);
     this._databases               = new DatabaseOperations(this);
     this._dataMasking             = new DataMaskingOperations(this);
     this._elasticPools            = new ElasticPoolOperations(this);
     this._firewallRules           = new FirewallRuleOperations(this);
     this._recommendedElasticPools = new RecommendedElasticPoolOperations(this);
     this._secureConnection        = new SecureConnectionPolicyOperations(this);
     this._servers                            = new ServerOperations(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);
 }
Beispiel #5
0
 /// <summary>
 /// Returns information about a service tier advisor.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Sql.LegacySdk.IServiceTierAdvisorOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the Resource Group.
 /// </param>
 /// <param name='serverName'>
 /// Required. The name of server.
 /// </param>
 /// <param name='databaseName'>
 /// Required. The name of database.
 /// </param>
 /// <param name='serviceTierAdvisorName'>
 /// Required. The name of service tier advisor.
 /// </param>
 /// <returns>
 /// Represents the response to a get service tier advisor request.
 /// </returns>
 public static Task <ServiceTierAdvisorGetResponse> GetAsync(this IServiceTierAdvisorOperations operations, string resourceGroupName, string serverName, string databaseName, string serviceTierAdvisorName)
 {
     return(operations.GetAsync(resourceGroupName, serverName, databaseName, serviceTierAdvisorName, CancellationToken.None));
 }