/// <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._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._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);
 }
 /// <summary>
 /// Returns information about an Azure SQL Recommended Elastic Pool.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Sql.LegacySdk.IRecommendedElasticPoolOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the Resource Group to which the Azure SQL
 /// Recommended Server belongs.
 /// </param>
 /// <param name='serverName'>
 /// Required. The name of the Azure SQL Database Server for which the
 /// Azure SQL Recommended Elastic Pool is.
 /// </param>
 /// <param name='recommendedElasticPoolName'>
 /// Required. The name of the Azure SQL Recommended Elastic Pool to be
 /// retrieved.
 /// </param>
 /// <returns>
 /// Represents the response to a Get Azure Sql Recommended Resource
 /// pool request.
 /// </returns>
 public static RecommendedElasticPoolGetResponse Get(this IRecommendedElasticPoolOperations operations, string resourceGroupName, string serverName, string recommendedElasticPoolName)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IRecommendedElasticPoolOperations)s).GetAsync(resourceGroupName, serverName, recommendedElasticPoolName);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Пример #3
0
 /// <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._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._serviceObjectives = new ServiceObjectiveOperations(this);
     this._apiVersion        = "2014-04-01";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the SqlManagementClient class.
 /// </summary>
 public SqlManagementClient()
     : base()
 {
     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._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);
 }
 /// <summary>
 /// Returns information about an Azure SQL Recommended Elastic Pool.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Sql.LegacySdk.IRecommendedElasticPoolOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the Resource Group to which the Azure SQL
 /// Recommended Server belongs.
 /// </param>
 /// <param name='serverName'>
 /// Required. The name of the Azure SQL Database Server for which the
 /// Azure SQL Recommended Elastic Pool is.
 /// </param>
 /// <param name='recommendedElasticPoolName'>
 /// Required. The name of the Azure SQL Recommended Elastic Pool to be
 /// retrieved.
 /// </param>
 /// <returns>
 /// Represents the response to a Get Azure Sql Recommended Resource
 /// pool request.
 /// </returns>
 public static Task <RecommendedElasticPoolGetResponse> GetAsync(this IRecommendedElasticPoolOperations operations, string resourceGroupName, string serverName, string recommendedElasticPoolName)
 {
     return(operations.GetAsync(resourceGroupName, serverName, recommendedElasticPoolName, CancellationToken.None));
 }
 /// <summary>
 /// Returns information about Azure SQL Recommended Elastic Pools.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Sql.LegacySdk.IRecommendedElasticPoolOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the Resource Group to which the Azure SQL
 /// Recommended Serve belongs.
 /// </param>
 /// <param name='serverName'>
 /// Required. The name of the Azure SQL Database Server in which Azure
 /// SQL Recommended Elastic Pools are hosted.
 /// </param>
 /// <param name='expand'>
 /// Required. The comma separated list of child objects that we want to
 /// expand on in response.
 /// </param>
 /// <returns>
 /// Represents the response to a List Azure Sql Recommended Elastic
 /// Pool request.
 /// </returns>
 public static Task <RecommendedElasticPoolListResponse> ListExpandedAsync(this IRecommendedElasticPoolOperations operations, string resourceGroupName, string serverName, string expand)
 {
     return(operations.ListExpandedAsync(resourceGroupName, serverName, expand, CancellationToken.None));
 }