コード例 #1
0
 /// <summary>
 /// Gets a list of operations performed on the server.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <ServerOperation> > ListByServerNextAsync(this IServerOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByServerNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// Gets a list of operations performed on the server.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='serverName'>
 /// The name of the server.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <ServerOperation> > ListByServerAsync(this IServerOperations operations, string resourceGroupName, string serverName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByServerWithHttpMessagesAsync(resourceGroupName, serverName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #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._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);
 }
コード例 #4
0
 /// <summary>
 /// Get the list of all servers under the vault.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.SiteRecovery.IServerOperations.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The response model for the list servers operation.
 /// </returns>
 public static ServerListResponse List(this IServerOperations operations, CustomRequestHeaders customRequestHeaders)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IServerOperations)s).ListAsync(customRequestHeaders);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
コード例 #5
0
 public MessageHandlingContext(IServerOperations server, OperationMessage message)
 {
     _server       = server;
     Reader        = server.TransportReader;
     Writer        = server.TransportWriter;
     Subscriptions = server.Subscriptions;
     Message       = message;
 }
コード例 #6
0
 /// <summary>
 /// Deletes the specified Azure SQL Database Server from a subscription.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Sql.IServerOperations.
 /// </param>
 /// <param name='serverName'>
 /// Required. The name of the Azure SQL Database Server to be deleted.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static OperationResponse Delete(this IServerOperations operations, string serverName)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IServerOperations)s).DeleteAsync(serverName);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
コード例 #7
0
 /// <summary>
 /// Changes the administrative password of an existing Azure SQL
 /// Database Server for a given subscription.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Sql.IServerOperations.
 /// </param>
 /// <param name='serverName'>
 /// Required. The name of the Azure SQL Database Server that will have
 /// the administrator password changed.
 /// </param>
 /// <param name='parameters'>
 /// Required. The necessary parameters for modifying the adminstrator
 /// password for a server.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static OperationResponse ChangeAdministratorPassword(this IServerOperations operations, string serverName, ServerChangeAdministratorPasswordParameters parameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IServerOperations)s).ChangeAdministratorPasswordAsync(serverName, parameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
コード例 #8
0
 /// <summary>
 /// Returns information about an Azure SQL Database Server.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the Microsoft.Azure.Management.Sql.IServerOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the Resource Group to which the server
 /// belongs.
 /// </param>
 /// <returns>
 /// Represents the response to a Get Database request.
 /// </returns>
 public static ServerListResponse List(this IServerOperations operations, string resourceGroupName)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IServerOperations)s).ListAsync(resourceGroupName);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
コード例 #9
0
 /// <summary>
 /// Creates a new Azure SQL Database server.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the Microsoft.Azure.Management.Sql.IServerOperations.
 /// </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='parameters'>
 /// Required. The required parameters for createing or updating a
 /// database.
 /// </param>
 /// <returns>
 /// Represents the response to a Get Database request.
 /// </returns>
 public static ServerGetResponse CreateOrUpdate(this IServerOperations operations, string resourceGroupName, string serverName, ServerCreateOrUpdateParameters parameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IServerOperations)s).CreateOrUpdateAsync(resourceGroupName, serverName, parameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
コード例 #10
0
 /// <summary>
 /// Creates a new ServerFlex API client with an optional custom base URI.
 /// </summary>
 /// <param name="baseApiUri">The base URI to use for the API, or null for default.</param>
 public ApiClient(Uri baseApiUri = null)
     : base(baseApiUri)
 {
     _accountOperations       = ConstructAccountOpertaions();
     _regionOperations        = ConstructRegionOpertaions();
     _serverOperations        = ConstructServerOpertaions();
     _packageOperations       = ConstructPackageOpertaions();
     _serverSharingOperations = ConstructServerSharingOperations();
     _serverStatistics        = ConstructServerStatisticsOperations();
 }
コード例 #11
0
 /// <summary>
 /// Initializes a new instance of the SqlManagementClient class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 private SqlManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._databases     = new DatabaseOperations(this);
     this._firewallRules = new FirewallRuleOperations(this);
     this._servers       = new ServerOperations(this);
     this._apiVersion    = "2014-04-01";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
コード例 #12
0
 /// <summary>
 /// Initializes a new instance of the SqlManagementClient class.
 /// </summary>
 private SqlManagementClient()
     : base()
 {
     this._dac = new DacOperations(this);
     this._databaseOperations = new DatabaseOperationOperations(this);
     this._databases          = new DatabaseOperations(this);
     this._firewallRules      = new FirewallRuleOperations(this);
     this._servers            = new ServerOperations(this);
     this._serviceObjectives  = new ServiceObjectiveOperations(this);
     this.HttpClient.Timeout  = TimeSpan.FromSeconds(300);
 }
コード例 #13
0
 /// <summary>
 /// Initializes a new instance of the SiteRecoveryManagementClient
 /// class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 public SiteRecoveryManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._jobs = new JobOperations(this);
     this._protectionContainer = new ProtectionContainerOperations(this);
     this._protectionEntity    = new ProtectionEntityOperations(this);
     this._protectionProfile   = new ProtectionProfileOperations(this);
     this._recoveryPlan        = new RecoveryPlanOperations(this);
     this._servers             = new ServerOperations(this);
     this._apiVersion          = "2015-01-01";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
コード例 #14
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._firewallRules     = new FirewallRuleOperations(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);
 }
コード例 #15
0
 /// <summary>
 /// Initializes a new instance of the SiteRecoveryManagementClient
 /// class.
 /// </summary>
 public SiteRecoveryManagementClient()
     : base()
 {
     this._jobs = new JobOperations(this);
     this._protectionContainer = new ProtectionContainerOperations(this);
     this._protectionEntity = new ProtectionEntityOperations(this);
     this._recoveryPlan = new RecoveryPlanOperations(this);
     this._servers = new ServerOperations(this);
     this._vmGroup = new VirtualMachineGroupOperations(this);
     this._vm = new VirtualMachineOperations(this);
     this._apiVersion = "2013-03-01";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
コード例 #16
0
 /// <summary>
 /// Initializes a new instance of the SqlManagementClient class.
 /// </summary>
 private SqlManagementClient()
     : base()
 {
     this._dac                        = new DacOperations(this);
     this._databaseCopies             = new DatabaseCopyOperations(this);
     this._databaseOperations         = new DatabaseOperationOperations(this);
     this._databases                  = new DatabaseOperations(this);
     this._firewallRules              = new FirewallRuleOperations(this);
     this._quotas                     = new QuotaOperations(this);
     this._recoverableDatabases       = new RecoverableDatabaseOperations(this);
     this._recoverDatabaseOperations  = new RecoverDatabaseOperations(this);
     this._restorableDroppedDatabases = new RestorableDroppedDatabaseOperations(this);
     this._restoreDatabaseOperations  = new RestoreDatabaseOperations(this);
     this._servers                    = new ServerOperations(this);
     this._serviceObjectives          = new ServiceObjectiveOperations(this);
     this.HttpClient.Timeout          = TimeSpan.FromSeconds(300);
 }
コード例 #17
0
 /// <summary>
 /// Sets the administrative password of a SQL Database server for a
 /// subscription.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/gg715272.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Sql.IServerOperations.
 /// </param>
 /// <param name='serverName'>
 /// The server that will have the change made to the administrative
 /// user.
 /// </param>
 /// <param name='parameters'>
 /// Parameters for the Manage Administrator Password operation.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static OperationResponse ChangeAdministratorPassword(this IServerOperations operations, string serverName, ServerChangeAdministratorPasswordParameters parameters)
 {
     try
     {
         return(operations.ChangeAdministratorPasswordAsync(serverName, parameters).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
コード例 #18
0
 /// <summary>
 /// Returns all SQL Database servers that are provisioned for a
 /// subscription.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/gg715269.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Sql.IServerOperations.
 /// </param>
 /// <returns>
 /// The response structure for the Server List operation.
 /// </returns>
 public static ServerListResponse List(this IServerOperations operations)
 {
     try
     {
         return(operations.ListAsync().Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
コード例 #19
0
 /// <summary>
 /// Adds a new SQL Database server to a subscription.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/gg715274.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Sql.IServerOperations.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to the Create Server operation.
 /// </param>
 /// <returns>
 /// The response returned from the Create Server operation.
 /// </returns>
 public static ServerCreateResponse Create(this IServerOperations operations, ServerCreateParameters parameters)
 {
     try
     {
         return(operations.CreateAsync(parameters).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
コード例 #20
0
 /// <summary>
 /// Drops a SQL Database server from a subscription.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/gg715285.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Sql.IServerOperations.
 /// </param>
 /// <param name='serverName'>
 /// The name of the server to be deleted.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static OperationResponse Delete(this IServerOperations operations, string serverName)
 {
     try
     {
         return(operations.DeleteAsync(serverName).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
コード例 #21
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._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);
 }
コード例 #22
0
 /// <summary>
 /// Initializes a new instance of the SqlManagementClient class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 private SqlManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._dac                                = new DacOperations(this);
     this._databaseCopies                     = new DatabaseCopyOperations(this);
     this._databaseOperations                 = new DatabaseOperationOperations(this);
     this._databases                          = new DatabaseOperations(this);
     this._firewallRules                      = new FirewallRuleOperations(this);
     this._quotas                             = new QuotaOperations(this);
     this._recoverableDatabases               = new RecoverableDatabaseOperations(this);
     this._recoverDatabaseOperations          = new RecoverDatabaseOperations(this);
     this._restorableDroppedDatabases         = new RestorableDroppedDatabaseOperations(this);
     this._restoreDatabaseOperations          = new RestoreDatabaseOperations(this);
     this._servers                            = new ServerOperations(this);
     this._serviceObjectives                  = new ServiceObjectiveOperations(this);
     this._apiVersion                         = "2012-03-01";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout                  = TimeSpan.FromSeconds(300);
 }
コード例 #23
0
 /// <summary>
 /// Initializes a new instance of the SiteRecoveryManagementClient
 /// class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 public SiteRecoveryManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._jobs                = new JobOperations(this);
     this._networkMappings     = new NetworkMappingOperations(this);
     this._networks            = new NetworkOperations(this);
     this._protectionContainer = new ProtectionContainerOperations(this);
     this._protectionEntity    = new ProtectionEntityOperations(this);
     this._protectionProfile   = new ProtectionProfileOperations(this);
     this._recoveryPlan        = new RecoveryPlanOperations(this);
     this._servers             = new ServerOperations(this);
     this._sites               = new SiteOperations(this);
     this._storageMappings     = new StorageMappingOperations(this);
     this._storages            = new StorageOperations(this);
     this._vaultExtendedInfo   = new VaultExtendedInfoOperations(this);
     this._vmGroup             = new VirtualMachineGroupOperations(this);
     this._vm         = new VirtualMachineOperations(this);
     this._apiVersion = "2013-03-01";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
コード例 #24
0
 /// <summary>
 /// Returns information about an Azure SQL Database Server.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the Microsoft.Azure.Management.Sql.IServerOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the Resource Group to which the server
 /// belongs.
 /// </param>
 /// <returns>
 /// Represents the response to a Get Database request.
 /// </returns>
 public static Task <ServerListResponse> ListAsync(this IServerOperations operations, string resourceGroupName)
 {
     return(operations.ListAsync(resourceGroupName, CancellationToken.None));
 }
コード例 #25
0
 /// <summary>
 /// Returns information about an Azure SQL Database Server.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the Microsoft.Azure.Management.Sql.IServerOperations.
 /// </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 server to delete.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <AzureOperationResponse> DeleteAsync(this IServerOperations operations, string resourceGroupName, string serverName)
 {
     return(operations.DeleteAsync(resourceGroupName, serverName, CancellationToken.None));
 }
コード例 #26
0
 /// <summary>
 /// Deletes the specified Azure SQL Database Server from a subscription.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Sql.IServerOperations.
 /// </param>
 /// <param name='serverName'>
 /// Required. The name of the Azure SQL Database Server to be deleted.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <OperationResponse> DeleteAsync(this IServerOperations operations, string serverName)
 {
     return(operations.DeleteAsync(serverName, CancellationToken.None));
 }
コード例 #27
0
 /// <summary>
 /// Returns all SQL Database Servers that are provisioned for a
 /// subscription.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Sql.IServerOperations.
 /// </param>
 /// <returns>
 /// The response structure for the Server List operation.  Contains a
 /// list of all the servers in a subscription.
 /// </returns>
 public static Task <ServerListResponse> ListAsync(this IServerOperations operations)
 {
     return(operations.ListAsync(CancellationToken.None));
 }
コード例 #28
0
 /// <summary>
 /// Creates a new Azure SQL Database server.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the Microsoft.Azure.Management.Sql.IServerOperations.
 /// </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='parameters'>
 /// Required. The required parameters for createing or updating a
 /// database.
 /// </param>
 /// <returns>
 /// Represents the response to a Get Database request.
 /// </returns>
 public static Task <ServerGetResponse> CreateOrUpdateAsync(this IServerOperations operations, string resourceGroupName, string serverName, ServerCreateOrUpdateParameters parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, serverName, parameters, CancellationToken.None));
 }
コード例 #29
0
 /// <summary>
 /// Provisions a new SQL Database server in a subscription.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Sql.IServerOperations.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters needed to provision a server.
 /// </param>
 /// <returns>
 /// The response returned from the Create Server operation.  This
 /// contains all the information returned from the service when a
 /// server is created.
 /// </returns>
 public static Task <ServerCreateResponse> CreateAsync(this IServerOperations operations, ServerCreateParameters parameters)
 {
     return(operations.CreateAsync(parameters, CancellationToken.None));
 }
コード例 #30
0
 /// <summary>
 /// Changes the administrative password of an existing Azure SQL
 /// Database Server for a given subscription.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Sql.IServerOperations.
 /// </param>
 /// <param name='serverName'>
 /// Required. The name of the Azure SQL Database Server that will have
 /// the administrator password changed.
 /// </param>
 /// <param name='parameters'>
 /// Required. The necessary parameters for modifying the adminstrator
 /// password for a server.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <OperationResponse> ChangeAdministratorPasswordAsync(this IServerOperations operations, string serverName, ServerChangeAdministratorPasswordParameters parameters)
 {
     return(operations.ChangeAdministratorPasswordAsync(serverName, parameters, CancellationToken.None));
 }