/// <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);
 }
Exemple #2
0
 /// <summary>
 /// Creates or updates an Azure SQL Database Transparent Data
 /// Encryption Operation.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Sql.ITransparentDataEncryptionOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the Resource Group to which the server
 /// belongs.
 /// </param>
 /// <param name='serverName'>
 /// Required. The name of the Azure SQL Database Server on which the
 /// database is hosted.
 /// </param>
 /// <param name='databaseName'>
 /// Required. The name of the Azure SQL Database for which setting the
 /// Transparent Data Encryption applies.
 /// </param>
 /// <param name='parameters'>
 /// Required. The required parameters for creating or updating
 /// transparent data encryption.
 /// </param>
 /// <returns>
 /// Represents the response to a Get for a Azure Sql Database
 /// Transparent Data Encryption request.
 /// </returns>
 public static TransparentDataEncryptionGetResponse CreateOrUpdate(this ITransparentDataEncryptionOperations operations, string resourceGroupName, string serverName, string databaseName, TransparentDataEncryptionCreateOrUpdateParameters parameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((ITransparentDataEncryptionOperations)s).CreateOrUpdateAsync(resourceGroupName, serverName, databaseName, parameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Exemple #3
0
 /// <summary>
 /// Returns an Azure SQL Database Transparent Data Encryption
 /// Encryption Protector List Response.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Sql.ITransparentDataEncryptionOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the Resource Group to which the server
 /// belongs.
 /// </param>
 /// <param name='serverName'>
 /// Required. The name of the Azure SQL Database Server.
 /// </param>
 /// <returns>
 /// Represents the response to an Azure Sql Database Transparent Data
 /// Encryption Encryption Protector List request.
 /// </returns>
 public static EncryptionProtectorListResponse ListEncryptionProtectors(this ITransparentDataEncryptionOperations operations, string resourceGroupName, string serverName)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((ITransparentDataEncryptionOperations)s).ListEncryptionProtectorsAsync(resourceGroupName, serverName);
     }
                                  , 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._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);
 }
Exemple #5
0
 /// <summary>
 /// Begins creating a new or updating an existing Azure SQL Server
 /// Transparent Data Encryption Protector.To determine the status of
 /// the operation call GetCreateOrUpdateOperationStatus.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Sql.ITransparentDataEncryptionOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the Resource Group to which the server
 /// belongs.
 /// </param>
 /// <param name='serverName'>
 /// Required. The name of the Azure SQL Server which will be updated.
 /// </param>
 /// <param name='parameters'>
 /// Required. The required parameters for creating or updating an
 /// Encryption Protector.
 /// </param>
 /// <returns>
 /// Represents the response to a Azure Sql Database Transparent Data
 /// Encryption Protector create or update request.
 /// </returns>
 public static Task <EncryptionProtectorCreateOrUpdateResponse> BeginCreateOrUpdateEncryptionProtectorAsync(this ITransparentDataEncryptionOperations operations, string resourceGroupName, string serverName, EncryptionProtectorCreateOrUpdateParameters parameters)
 {
     return(operations.BeginCreateOrUpdateEncryptionProtectorAsync(resourceGroupName, serverName, parameters, CancellationToken.None));
 }
Exemple #6
0
 /// <summary>
 /// Returns an Azure SQL Database Transparent Data Encryption
 /// Encryption Protector List Response.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Sql.ITransparentDataEncryptionOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the Resource Group to which the server
 /// belongs.
 /// </param>
 /// <param name='serverName'>
 /// Required. The name of the Azure SQL Database Server.
 /// </param>
 /// <returns>
 /// Represents the response to an Azure Sql Database Transparent Data
 /// Encryption Encryption Protector List request.
 /// </returns>
 public static Task <EncryptionProtectorListResponse> ListEncryptionProtectorsAsync(this ITransparentDataEncryptionOperations operations, string resourceGroupName, string serverName)
 {
     return(operations.ListEncryptionProtectorsAsync(resourceGroupName, serverName, CancellationToken.None));
 }
Exemple #7
0
 /// <summary>
 /// Returns an Azure SQL Database Transparent Data Encryption Activity
 /// Response.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Sql.ITransparentDataEncryptionOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the Resource Group to which the server
 /// belongs.
 /// </param>
 /// <param name='serverName'>
 /// Required. The name of the Azure SQL Database Server on which the
 /// database is hosted.
 /// </param>
 /// <param name='databaseName'>
 /// Required. The name of the Azure SQL Database for which the
 /// Transparent Data Encryption applies.
 /// </param>
 /// <returns>
 /// Represents the response to a List Azure Sql Database Transparent
 /// Data Encryption Activity request.
 /// </returns>
 public static Task <TransparentDataEncryptionActivityListResponse> ListActivityAsync(this ITransparentDataEncryptionOperations operations, string resourceGroupName, string serverName, string databaseName)
 {
     return(operations.ListActivityAsync(resourceGroupName, serverName, databaseName, CancellationToken.None));
 }
Exemple #8
0
 /// <summary>
 /// Gets the status of an Azure SQL Server Transparent Data Encryption
 /// Protector create or update operation.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Sql.ITransparentDataEncryptionOperations.
 /// </param>
 /// <param name='operationStatusLink'>
 /// Required. Location value returned by the Begin operation
 /// </param>
 /// <returns>
 /// Represents the response to a Azure Sql Database Transparent Data
 /// Encryption Protector create or update request.
 /// </returns>
 public static Task <EncryptionProtectorCreateOrUpdateResponse> GetCreateOrUpdateEncryptionProtectorOperationStatusAsync(this ITransparentDataEncryptionOperations operations, string operationStatusLink)
 {
     return(operations.GetCreateOrUpdateEncryptionProtectorOperationStatusAsync(operationStatusLink, CancellationToken.None));
 }
Exemple #9
0
 /// <summary>
 /// Gets the status of an Azure SQL Server Transparent Data Encryption
 /// Protector create or update operation.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Sql.ITransparentDataEncryptionOperations.
 /// </param>
 /// <param name='operationStatusLink'>
 /// Required. Location value returned by the Begin operation
 /// </param>
 /// <returns>
 /// Represents the response to a Azure Sql Database Transparent Data
 /// Encryption Protector create or update request.
 /// </returns>
 public static EncryptionProtectorCreateOrUpdateResponse GetCreateOrUpdateEncryptionProtectorOperationStatus(this ITransparentDataEncryptionOperations operations, string operationStatusLink)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((ITransparentDataEncryptionOperations)s).GetCreateOrUpdateEncryptionProtectorOperationStatusAsync(operationStatusLink);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Exemple #10
0
 /// <summary>
 /// Creates or updates an Azure SQL Database Transparent Data
 /// Encryption Operation.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Sql.ITransparentDataEncryptionOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the Resource Group to which the server
 /// belongs.
 /// </param>
 /// <param name='serverName'>
 /// Required. The name of the Azure SQL Database Server on which the
 /// database is hosted.
 /// </param>
 /// <param name='databaseName'>
 /// Required. The name of the Azure SQL Database for which setting the
 /// Transparent Data Encryption applies.
 /// </param>
 /// <param name='parameters'>
 /// Required. The required parameters for creating or updating
 /// transparent data encryption.
 /// </param>
 /// <returns>
 /// Represents the response to a Get for a Azure Sql Database
 /// Transparent Data Encryption request.
 /// </returns>
 public static Task <TransparentDataEncryptionGetResponse> CreateOrUpdateAsync(this ITransparentDataEncryptionOperations operations, string resourceGroupName, string serverName, string databaseName, TransparentDataEncryptionCreateOrUpdateParameters parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, serverName, databaseName, parameters, CancellationToken.None));
 }