Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */
package com.microsoft.azure.management.sql; import com.microsoft.azure.management.apigeneration.Beta; import com.microsoft.azure.management.apigeneration.Fluent; import com.microsoft.azure.management.resources.fluentcore.collection.SupportsCreating; import com.microsoft.azure.management.resources.fluentcore.model.Creatable; import rx.Observable;
A representation of the Azure SQL Sync Member operations.
/** * A representation of the Azure SQL Sync Member operations. */
@Fluent @Beta(Beta.SinceVersion.V1_9_0) public interface SqlSyncMemberOperations extends SupportsCreating<SqlSyncMemberOperations.DefinitionStages.WithSqlServer> {
Gets the information about a child resource from Azure SQL server, identifying it by its name and its resource group.
Params:
  • resourceGroupName – the name of resource group
  • sqlServerName – the name of SQL server resource
  • databaseName – the name of SQL Database parent resource
  • syncGroupName – the name of the sync group on which the Sync Member is hosted
  • name – the name of the child resource
Returns:an immutable representation of the resource
/** * Gets the information about a child resource from Azure SQL server, identifying it by its name and its resource group. * * @param resourceGroupName the name of resource group * @param sqlServerName the name of SQL server resource * @param databaseName the name of SQL Database parent resource * @param syncGroupName the name of the sync group on which the Sync Member is hosted * @param name the name of the child resource * @return an immutable representation of the resource */
SqlSyncMember getBySqlServer(String resourceGroupName, String sqlServerName, String databaseName, String syncGroupName, String name);
Asynchronously gets the information about a child resource from Azure SQL server, identifying it by its name and its resource group.
Params:
  • resourceGroupName – the name of resource group
  • sqlServerName – the name of SQL server parent resource
  • databaseName – the name of SQL Database parent resource
  • syncGroupName – the name of the sync group on which the Sync Member is hosted
  • name – the name of the child resource
Returns:a representation of the deferred computation of this call returning the found resource
/** * Asynchronously gets the information about a child resource from Azure SQL server, identifying it by its name and its resource group. * * @param resourceGroupName the name of resource group * @param sqlServerName the name of SQL server parent resource * @param databaseName the name of SQL Database parent resource * @param syncGroupName the name of the sync group on which the Sync Member is hosted * @param name the name of the child resource * @return a representation of the deferred computation of this call returning the found resource */
Observable<SqlSyncMember> getBySqlServerAsync(String resourceGroupName, String sqlServerName, String databaseName, String syncGroupName, String name);
Container interface for all the definitions that need to be implemented.
/** * Container interface for all the definitions that need to be implemented. */
@Beta(Beta.SinceVersion.V1_9_0) interface SqlSyncMemberOperationsDefinition extends SqlSyncMemberOperations.DefinitionStages.WithSqlServer, SqlSyncMemberOperations.DefinitionStages.WithSyncMemberDatabase, SqlSyncMemberOperations.DefinitionStages.WithSyncGroupName, SqlSyncMemberOperations.DefinitionStages.WithMemberSqlServer, SqlSyncMemberOperations.DefinitionStages.WithMemberSqlDatabase, SqlSyncMemberOperations.DefinitionStages.WithMemberUserName, SqlSyncMemberOperations.DefinitionStages.WithMemberPassword, SqlSyncMemberOperations.DefinitionStages.WithMemberDatabaseType, SqlSyncMemberOperations.DefinitionStages.WithSyncDirection, SqlSyncMemberOperations.DefinitionStages.WithCreate { }
Grouping of all the SQL Sync Member definition stages.
/** * Grouping of all the SQL Sync Member definition stages. */
@Beta(Beta.SinceVersion.V1_9_0) interface DefinitionStages {
The first stage of the SQL Sync Member definition.
/** * The first stage of the SQL Sync Member definition. */
@Beta(Beta.SinceVersion.V1_9_0) interface WithSqlServer {
Sets the parent SQL server name and resource group it belongs to.
Params:
  • resourceGroupName – the name of the resource group the parent SQL server
  • sqlServerName – the parent SQL server name
Returns:The next stage of the definition.
/** * Sets the parent SQL server name and resource group it belongs to. * * @param resourceGroupName the name of the resource group the parent SQL server * @param sqlServerName the parent SQL server name * @return The next stage of the definition. */
SqlSyncMemberOperations.DefinitionStages.WithSyncMemberDatabase withExistingSqlServer(String resourceGroupName, String sqlServerName);
Sets the parent SQL server for the new Sync Member.
Params:
  • sqlSyncGroup – the parent SQL Sync Group
Returns:The next stage of the definition.
/** * Sets the parent SQL server for the new Sync Member. * * @param sqlSyncGroup the parent SQL Sync Group * @return The next stage of the definition. */
SqlSyncMemberOperations.DefinitionStages.WithMemberSqlServer withExistingSyncGroup(SqlSyncGroup sqlSyncGroup); }
The SQL Sync Member definition to set the parent database name.
/** * The SQL Sync Member definition to set the parent database name. */
@Beta(Beta.SinceVersion.V1_9_0) interface WithSyncMemberDatabase {
Sets the name of the database on which the sync Member is hosted.
Params:
  • databaseName – the name of the database on which the sync Member is hosted
Returns:The next stage of the definition.
/** * Sets the name of the database on which the sync Member is hosted. * * @param databaseName the name of the database on which the sync Member is hosted * @return The next stage of the definition. */
SqlSyncMemberOperations.DefinitionStages.WithSyncGroupName withExistingDatabaseName(String databaseName); }
The SQL Sync Member definition to set the parent database name.
/** * The SQL Sync Member definition to set the parent database name. */
@Beta(Beta.SinceVersion.V1_9_0) interface WithSyncGroupName {
Sets the name of the database on which the sync Member is hosted.
Params:
  • syncGroupName – the name of the sync group on which the Sync Member is hosted
Returns:The next stage of the definition.
/** * Sets the name of the database on which the sync Member is hosted. * * @param syncGroupName the name of the sync group on which the Sync Member is hosted * @return The next stage of the definition. */
SqlSyncMemberOperations.DefinitionStages.WithMemberSqlServer withExistingSyncGroupName(String syncGroupName); }
The SQL Sync Member definition to set the member server and database.
/** * The SQL Sync Member definition to set the member server and database. */
@Beta(Beta.SinceVersion.V1_9_0) interface WithMemberSqlServer {
Sets the member SQL server name.
Params:
  • sqlServerName – the member SQL server name value to set
Returns:The next stage of the definition.
/** * Sets the member SQL server name. * * @param sqlServerName the member SQL server name value to set * @return The next stage of the definition. */
SqlSyncMemberOperations.DefinitionStages.WithMemberSqlDatabase withMemberSqlServerName(String sqlServerName);
Sets the member SQL Database.
Params:
  • sqlDatabase – the member SQL Database value to set
Returns:The next stage of the definition.
/** * Sets the member SQL Database. * * @param sqlDatabase the member SQL Database value to set * @return The next stage of the definition. */
SqlSyncMemberOperations.DefinitionStages.WithMemberUserName withMemberSqlDatabase(SqlDatabase sqlDatabase); }
The SQL Sync Member definition to set the member database.
/** * The SQL Sync Member definition to set the member database. */
@Beta(Beta.SinceVersion.V1_9_0) interface WithMemberSqlDatabase {
Sets the member SQL Database name.
Params:
  • sqlDatabaseName – the member SQL Database name value to set
Returns:The next stage of the definition.
/** * Sets the member SQL Database name. * * @param sqlDatabaseName the member SQL Database name value to set * @return The next stage of the definition. */
SqlSyncMemberOperations.DefinitionStages.WithMemberUserName withMemberSqlDatabaseName(String sqlDatabaseName); }
The SQL Sync Member definition to set the member database user name.
/** * The SQL Sync Member definition to set the member database user name. */
@Beta(Beta.SinceVersion.V1_9_0) interface WithMemberUserName {
Sets the member SQL Database username.
Params:
  • userName – the member SQL Database username value to set
Returns:The next stage of the definition.
/** * Sets the member SQL Database username. * * @param userName the member SQL Database username value to set * @return The next stage of the definition. */
SqlSyncMemberOperations.DefinitionStages.WithMemberPassword withMemberUserName(String userName); }
The SQL Sync Member definition to set the member database password.
/** * The SQL Sync Member definition to set the member database password. */
@Beta(Beta.SinceVersion.V1_9_0) interface WithMemberPassword {
Sets the member SQL Database password.
Params:
  • password – the member SQL Database password value to set
Returns:The next stage of the definition.
/** * Sets the member SQL Database password. * * @param password the member SQL Database password value to set * @return The next stage of the definition. */
SqlSyncMemberOperations.DefinitionStages.WithMemberDatabaseType withMemberPassword(String password); }
The SQL Sync Member definition to set the database type.
/** * The SQL Sync Member definition to set the database type. */
@Beta(Beta.SinceVersion.V1_9_0) interface WithMemberDatabaseType {
Sets the member database type.
Params:
  • databaseType – the database type value to set
Returns:The next stage of the definition.
/** * Sets the member database type. * * @param databaseType the database type value to set * @return The next stage of the definition. */
SqlSyncMemberOperations.DefinitionStages.WithSyncDirection withMemberDatabaseType(SyncMemberDbType databaseType); }
The SQL Sync Member definition to set the sync direction.
/** * The SQL Sync Member definition to set the sync direction. */
@Beta(Beta.SinceVersion.V1_9_0) interface WithSyncDirection {
Sets the sync direction.
Params:
  • syncDirection – the sync direction value to set
Returns:The next stage of the definition.
/** * Sets the sync direction. * * @param syncDirection the sync direction value to set * @return The next stage of the definition. */
SqlSyncMemberOperations.DefinitionStages.WithCreate withDatabaseType(SyncDirection syncDirection); }
The final stage of the SQL Sync Member definition.
/** * The final stage of the SQL Sync Member definition. */
interface WithCreate extends Creatable<SqlSyncMember> { } }
Grouping of the Azure SQL Server Sync Member common actions.
/** * Grouping of the Azure SQL Server Sync Member common actions. */
@Beta(Beta.SinceVersion.V1_9_0) interface SqlSyncMemberActionsDefinition extends SqlChildrenOperations.SqlChildrenActionsDefinition<SqlSyncMember> {
Begins the definition of a new SQL Sync Member to be added to this server.
Params:
  • syncMemberName – the name of the new SQL Sync Member
Returns:the first stage of the new SQL Virtual Network Rule definition
/** * Begins the definition of a new SQL Sync Member to be added to this server. * * @param syncMemberName the name of the new SQL Sync Member * @return the first stage of the new SQL Virtual Network Rule definition */
SqlSyncMemberOperations.DefinitionStages.WithMemberSqlServer define(String syncMemberName); } }