diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/DatabaseAccounts.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/DatabaseAccounts.java index 01170d797366..c167b0bbaace 100644 --- a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/DatabaseAccounts.java +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/DatabaseAccounts.java @@ -22,8 +22,9 @@ import com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccountMetric; import com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccountUsage; import com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccountMetricDefinition; -import com.microsoft.azure.management.cosmosdb.v2015_04_08.Container; -import com.microsoft.azure.management.cosmosdb.v2015_04_08.MongoCollection; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.SqlContainer; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.MongoDBCollection; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.GremlinGraph; /** * Type representing DatabaseAccounts. @@ -41,14 +42,14 @@ public interface DatabaseAccounts extends SupportsCreating listSqlDatabasesAsync(String resourceGroupName, String accountName); /** - * Gets the SQL databases under an existing Azure Cosmos DB database account with the provided id. + * Gets the SQL databases under an existing Azure Cosmos DB database account with the provided name. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable getSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseRid); + Observable getSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseName); /** * Deletes an existing Azure Cosmos DB SQL database. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable deleteSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseRid); + Completable deleteSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseName); /** - * Lists the Mongo databases under an existing Azure Cosmos DB database account. + * Lists the MongoDB databases under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable listMongoDatabasesAsync(String resourceGroupName, String accountName); + Observable listMongoDBDatabasesAsync(String resourceGroupName, String accountName); /** - * Gets the Mongo databases under an existing Azure Cosmos DB database account with the provided id. + * Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable getMongoDatabaseAsync(String resourceGroupName, String accountName, String databaseRid); + Observable getMongoDBDatabaseAsync(String resourceGroupName, String accountName, String databaseName); /** - * Create or updates Azure Cosmos DB Mongo database. + * Create or updates Azure Cosmos DB MongoDB database. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param createUpdateMongoDatabaseParameters The parameters to provide for the current Mongo database. + * @param databaseName Cosmos DB database name. + * @param createUpdateMongoDBDatabaseParameters The parameters to provide for the current MongoDB database. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable createUpdateMongoDatabaseAsync(String resourceGroupName, String accountName, String databaseRid, MongoDatabaseCreateUpdateParameters createUpdateMongoDatabaseParameters); + Observable createUpdateMongoDBDatabaseAsync(String resourceGroupName, String accountName, String databaseName, MongoDBDatabaseCreateUpdateParameters createUpdateMongoDBDatabaseParameters); /** - * Deletes an existing Azure Cosmos DB Mongo database. + * Deletes an existing Azure Cosmos DB MongoDB database. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable deleteMongoDatabaseAsync(String resourceGroupName, String accountName, String databaseRid); + Completable deleteMongoDBDatabaseAsync(String resourceGroupName, String accountName, String databaseName); /** * Lists the Gremlin databases under an existing Azure Cosmos DB database account. @@ -275,267 +283,254 @@ public interface DatabaseAccounts extends SupportsCreating listGremlinDatabasesAsync(String resourceGroupName, String accountName); /** - * Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided id. + * Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable getGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseRid); + Observable getGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseName); /** * Create or update an Azure Cosmos DB Gremlin database. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param createUpdateGremlinDatabaseParameters The parameters to provide for the current Gremlin database. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable createUpdateGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseRid, GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters); + Observable createUpdateGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseName, GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters); /** * Deletes an existing Azure Cosmos DB Gremlin database. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable deleteGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseRid); + Completable deleteGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseName); /** * Gets the SQL container under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param containerName Cosmos DB container name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable getSqlContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid); + Observable getSqlContainerAsync(String resourceGroupName, String accountName, String databaseName, String containerName); /** * Lists the SQL container under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable listSqlContainersAsync(String resourceGroupName, String accountName, String databaseRid); + Observable listSqlContainersAsync(String resourceGroupName, String accountName, String databaseName); /** * Deletes an existing Azure Cosmos DB SQL container. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param containerName Cosmos DB container name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable deleteSqlContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid); + Completable deleteSqlContainerAsync(String resourceGroupName, String accountName, String databaseName, String containerName); /** - * Lists the Gremlin container under an existing Azure Cosmos DB database account. + * Gets the MongoDB collection under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. + * @param collectionName Cosmos DB collection name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable listGremlinContainersAsync(String resourceGroupName, String accountName, String databaseRid); + Observable getMongoDBCollectionAsync(String resourceGroupName, String accountName, String databaseName, String collectionName); /** - * Gets the Gremlin container under an existing Azure Cosmos DB database account. + * Lists the MongoDB collection under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable getGremlinContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid); + Observable listMongoDBCollectionsAsync(String resourceGroupName, String accountName, String databaseName); /** - * Create or update an Azure Cosmos DB Gremlin container. + * Deletes an existing Azure Cosmos DB MongoDB Collection. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. - * @param createUpdateGremlinContainerParameters The parameters to provide for the current Gremlin container. + * @param databaseName Cosmos DB database name. + * @param collectionName Cosmos DB collection name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable createUpdateGremlinContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid, ContainerCreateUpdateParameters createUpdateGremlinContainerParameters); + Completable deleteMongoDBCollectionAsync(String resourceGroupName, String accountName, String databaseName, String collectionName); /** - * Deletes an existing Azure Cosmos DB Gremlin container. - * - * @param resourceGroupName Name of an Azure resource group. - * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request - */ - Completable deleteGremlinContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid); - - /** - * Gets the Mongo collection under an existing Azure Cosmos DB database account. + * Lists the Tables under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param collectionRid Cosmos DB collection rid. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable getMongoCollectionAsync(String resourceGroupName, String accountName, String databaseRid, String collectionRid); + Observable listTablesAsync(String resourceGroupName, String accountName); /** - * Lists the Mongo collection under an existing Azure Cosmos DB database account. + * Gets the Tables under an existing Azure Cosmos DB database account with the provided name. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param tableName Cosmos DB table name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable listMongoCollectionsAsync(String resourceGroupName, String accountName, String databaseRid); + Observable
getTableAsync(String resourceGroupName, String accountName, String tableName); /** - * Deletes an existing Azure Cosmos DB Mongo Collection. + * Deletes an existing Azure Cosmos DB Table. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param collectionRid Cosmos DB collection rid. + * @param tableName Cosmos DB table name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable deleteMongoCollectionAsync(String resourceGroupName, String accountName, String databaseRid, String collectionRid); + Completable deleteTableAsync(String resourceGroupName, String accountName, String tableName); /** - * Lists the Tables under an existing Azure Cosmos DB database account. + * Lists the Cassandra table under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. + * @param keyspaceName Cosmos DB keyspace name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable
listTablesAsync(String resourceGroupName, String accountName); + Observable listCassandraTablesAsync(String resourceGroupName, String accountName, String keyspaceName); /** - * Gets the Tables under an existing Azure Cosmos DB database account with the provided id. + * Gets the Cassandra table under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param tableRid Cosmos DB table rid. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable
getTableAsync(String resourceGroupName, String accountName, String tableRid); + Observable getCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName); /** - * Deletes an existing Azure Cosmos DB Table. + * Create or update an Azure Cosmos DB Cassandra Table. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param tableRid Cosmos DB table rid. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. + * @param createUpdateCassandraTableParameters The parameters to provide for the current Cassandra Table. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable deleteTableAsync(String resourceGroupName, String accountName, String tableRid); + Observable createUpdateCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters); /** - * Lists the Cassandra table under an existing Azure Cosmos DB database account. + * Deletes an existing Azure Cosmos DB Cassandra table. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable listCassandraTablesAsync(String resourceGroupName, String accountName, String keyspaceRid); + Completable deleteCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName); /** - * Gets the Cassandra table under an existing Azure Cosmos DB database account. + * Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. - * @param tableRid Cosmos DB table rid. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable getCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceRid, String tableRid); + Observable listCassandraKeyspacesAsync(String resourceGroupName, String accountName); /** - * Create or update an Azure Cosmos DB Cassandra Table. + * Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. - * @param tableRid Cosmos DB table rid. - * @param createUpdateCassandraTableParameters The parameters to provide for the current Cassandra Table. + * @param keyspaceName Cosmos DB keyspace name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable createUpdateCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceRid, String tableRid, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters); + Observable getCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceName); /** - * Deletes an existing Azure Cosmos DB Cassandra table. + * Deletes an existing Azure Cosmos DB Cassandra keyspace. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. - * @param tableRid Cosmos DB table rid. + * @param keyspaceName Cosmos DB keyspace name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable deleteCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceRid, String tableRid); + Completable deleteCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceName); /** - * Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account. + * Gets the Gremlin graph under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param graphName Cosmos DB graph name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable listCassandraKeyspacesAsync(String resourceGroupName, String accountName); + Observable getGremlinGraphAsync(String resourceGroupName, String accountName, String databaseName, String graphName); /** - * Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided id. + * Lists the Gremlin graph under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable getCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceRid); + Observable listGremlinGraphsAsync(String resourceGroupName, String accountName, String databaseName); /** - * Deletes an existing Azure Cosmos DB Cassandra keyspace. + * Deletes an existing Azure Cosmos DB Gremlin graph. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. + * @param databaseName Cosmos DB database name. + * @param graphName Cosmos DB graph name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable deleteCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceRid); + Completable deleteGremlinGraphAsync(String resourceGroupName, String accountName, String databaseName, String graphName); } diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/GremlinGraph.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/GremlinGraph.java new file mode 100644 index 000000000000..414994b9ce59 --- /dev/null +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/GremlinGraph.java @@ -0,0 +1,169 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.cosmosdb.v2015_04_08; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.implementation.GremlinGraphInner; +import com.microsoft.azure.arm.model.Indexable; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.implementation.DocumentDBManager; +import java.util.Map; + +/** + * Type representing GremlinGraph. + */ +public interface GremlinGraph extends HasInner, Indexable, Refreshable, Updatable, HasManager { + /** + * @return the _etag value. + */ + String _etag(); + + /** + * @return the _rid value. + */ + String _rid(); + + /** + * @return the _ts value. + */ + Object _ts(); + + /** + * @return the conflictResolutionPolicy value. + */ + ConflictResolutionPolicy conflictResolutionPolicy(); + + /** + * @return the defaultTtl value. + */ + Integer defaultTtl(); + + /** + * @return the gremlinGraphId value. + */ + String gremlinGraphId(); + + /** + * @return the id value. + */ + String id(); + + /** + * @return the indexingPolicy value. + */ + IndexingPolicy indexingPolicy(); + + /** + * @return the location value. + */ + String location(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the partitionKey value. + */ + ContainerPartitionKey partitionKey(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + + /** + * @return the uniqueKeyPolicy value. + */ + UniqueKeyPolicy uniqueKeyPolicy(); + + /** + * The entirety of the GremlinGraph definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithDatabasis, DefinitionStages.WithOptions, DefinitionStages.WithResource, DefinitionStages.WithCreate { + } + + /** + * Grouping of GremlinGraph definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a GremlinGraph definition. + */ + interface Blank extends WithDatabasis { + } + + /** + * The stage of the gremlingraph definition allowing to specify Databasis. + */ + interface WithDatabasis { + /** + * Specifies resourceGroupName, accountName, databaseName. + * @param resourceGroupName Name of an Azure resource group + * @param accountName Cosmos DB database account name + * @param databaseName Cosmos DB database name + * @return the next definition stage + */ + WithOptions withExistingDatabasis(String resourceGroupName, String accountName, String databaseName); + } + + /** + * The stage of the gremlingraph definition allowing to specify Options. + */ + interface WithOptions { + /** + * Specifies options. + * @param options A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request + * @return the next definition stage + */ + WithResource withOptions(Map options); + } + + /** + * The stage of the gremlingraph definition allowing to specify Resource. + */ + interface WithResource { + /** + * Specifies resource. + * @param resource The standard JSON format of a Gremlin graph + * @return the next definition stage + */ + WithCreate withResource(GremlinGraphResource resource); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable { + } + } + /** + * The template for a GremlinGraph update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable { + } + + /** + * Grouping of GremlinGraph update stages. + */ + interface UpdateStages { + } +} diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/GremlinGraphCreateUpdateParameters.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/GremlinGraphCreateUpdateParameters.java new file mode 100644 index 000000000000..f19390a320f1 --- /dev/null +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/GremlinGraphCreateUpdateParameters.java @@ -0,0 +1,73 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.cosmosdb.v2015_04_08; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Parameters to create and update Cosmos DB Gremlin graph. + */ +@JsonFlatten +public class GremlinGraphCreateUpdateParameters { + /** + * The standard JSON format of a Gremlin graph. + */ + @JsonProperty(value = "properties.resource", required = true) + private GremlinGraphResource resource; + + /** + * A key-value pair of options to be applied for the request. This + * corresponds to the headers sent with the request. + */ + @JsonProperty(value = "properties.options", required = true) + private Map options; + + /** + * Get the standard JSON format of a Gremlin graph. + * + * @return the resource value + */ + public GremlinGraphResource resource() { + return this.resource; + } + + /** + * Set the standard JSON format of a Gremlin graph. + * + * @param resource the resource value to set + * @return the GremlinGraphCreateUpdateParameters object itself. + */ + public GremlinGraphCreateUpdateParameters withResource(GremlinGraphResource resource) { + this.resource = resource; + return this; + } + + /** + * Get a key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. + * + * @return the options value + */ + public Map options() { + return this.options; + } + + /** + * Set a key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. + * + * @param options the options value to set + * @return the GremlinGraphCreateUpdateParameters object itself. + */ + public GremlinGraphCreateUpdateParameters withOptions(Map options) { + this.options = options; + return this; + } + +} diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/GremlinGraphResource.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/GremlinGraphResource.java new file mode 100644 index 000000000000..5684772e9353 --- /dev/null +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/GremlinGraphResource.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.cosmosdb.v2015_04_08; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Cosmos DB Gremlin graph resource object. + */ +public class GremlinGraphResource { + /** + * Name of the Cosmos DB Gremlin graph. + */ + @JsonProperty(value = "id", required = true) + private String id; + + /** + * The configuration of the indexing policy. By default, the indexing is + * automatic for all document paths within the graph. + */ + @JsonProperty(value = "indexingPolicy") + private IndexingPolicy indexingPolicy; + + /** + * The configuration of the partition key to be used for partitioning data + * into multiple partitions. + */ + @JsonProperty(value = "partitionKey") + private ContainerPartitionKey partitionKey; + + /** + * Default time to live. + */ + @JsonProperty(value = "defaultTtl") + private Integer defaultTtl; + + /** + * The unique key policy configuration for specifying uniqueness + * constraints on documents in the collection in the Azure Cosmos DB + * service. + */ + @JsonProperty(value = "uniqueKeyPolicy") + private UniqueKeyPolicy uniqueKeyPolicy; + + /** + * The conflict resolution policy for the graph. + */ + @JsonProperty(value = "conflictResolutionPolicy") + private ConflictResolutionPolicy conflictResolutionPolicy; + + /** + * Get name of the Cosmos DB Gremlin graph. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set name of the Cosmos DB Gremlin graph. + * + * @param id the id value to set + * @return the GremlinGraphResource object itself. + */ + public GremlinGraphResource withId(String id) { + this.id = id; + return this; + } + + /** + * Get the configuration of the indexing policy. By default, the indexing is automatic for all document paths within the graph. + * + * @return the indexingPolicy value + */ + public IndexingPolicy indexingPolicy() { + return this.indexingPolicy; + } + + /** + * Set the configuration of the indexing policy. By default, the indexing is automatic for all document paths within the graph. + * + * @param indexingPolicy the indexingPolicy value to set + * @return the GremlinGraphResource object itself. + */ + public GremlinGraphResource withIndexingPolicy(IndexingPolicy indexingPolicy) { + this.indexingPolicy = indexingPolicy; + return this; + } + + /** + * Get the configuration of the partition key to be used for partitioning data into multiple partitions. + * + * @return the partitionKey value + */ + public ContainerPartitionKey partitionKey() { + return this.partitionKey; + } + + /** + * Set the configuration of the partition key to be used for partitioning data into multiple partitions. + * + * @param partitionKey the partitionKey value to set + * @return the GremlinGraphResource object itself. + */ + public GremlinGraphResource withPartitionKey(ContainerPartitionKey partitionKey) { + this.partitionKey = partitionKey; + return this; + } + + /** + * Get default time to live. + * + * @return the defaultTtl value + */ + public Integer defaultTtl() { + return this.defaultTtl; + } + + /** + * Set default time to live. + * + * @param defaultTtl the defaultTtl value to set + * @return the GremlinGraphResource object itself. + */ + public GremlinGraphResource withDefaultTtl(Integer defaultTtl) { + this.defaultTtl = defaultTtl; + return this; + } + + /** + * Get the unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service. + * + * @return the uniqueKeyPolicy value + */ + public UniqueKeyPolicy uniqueKeyPolicy() { + return this.uniqueKeyPolicy; + } + + /** + * Set the unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service. + * + * @param uniqueKeyPolicy the uniqueKeyPolicy value to set + * @return the GremlinGraphResource object itself. + */ + public GremlinGraphResource withUniqueKeyPolicy(UniqueKeyPolicy uniqueKeyPolicy) { + this.uniqueKeyPolicy = uniqueKeyPolicy; + return this; + } + + /** + * Get the conflict resolution policy for the graph. + * + * @return the conflictResolutionPolicy value + */ + public ConflictResolutionPolicy conflictResolutionPolicy() { + return this.conflictResolutionPolicy; + } + + /** + * Set the conflict resolution policy for the graph. + * + * @param conflictResolutionPolicy the conflictResolutionPolicy value to set + * @return the GremlinGraphResource object itself. + */ + public GremlinGraphResource withConflictResolutionPolicy(ConflictResolutionPolicy conflictResolutionPolicy) { + this.conflictResolutionPolicy = conflictResolutionPolicy; + return this; + } + +} diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoDBCollection.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoDBCollection.java new file mode 100644 index 000000000000..b4ea34cf10af --- /dev/null +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoDBCollection.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.cosmosdb.v2015_04_08; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.implementation.MongoDBCollectionInner; +import com.microsoft.azure.arm.model.Indexable; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.implementation.DocumentDBManager; +import java.util.Map; +import java.util.List; + +/** + * Type representing MongoDBCollection. + */ +public interface MongoDBCollection extends HasInner, Indexable, Refreshable, Updatable, HasManager { + /** + * @return the id value. + */ + String id(); + + /** + * @return the indexes value. + */ + List indexes(); + + /** + * @return the location value. + */ + String location(); + + /** + * @return the mongoDBCollectionId value. + */ + String mongoDBCollectionId(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the shardKey value. + */ + Map shardKey(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + + /** + * The entirety of the MongoDBCollection definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithDatabasis, DefinitionStages.WithOptions, DefinitionStages.WithResource, DefinitionStages.WithCreate { + } + + /** + * Grouping of MongoDBCollection definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a MongoDBCollection definition. + */ + interface Blank extends WithDatabasis { + } + + /** + * The stage of the mongodbcollection definition allowing to specify Databasis. + */ + interface WithDatabasis { + /** + * Specifies resourceGroupName, accountName, databaseName. + * @param resourceGroupName Name of an Azure resource group + * @param accountName Cosmos DB database account name + * @param databaseName Cosmos DB database name + * @return the next definition stage + */ + WithOptions withExistingDatabasis(String resourceGroupName, String accountName, String databaseName); + } + + /** + * The stage of the mongodbcollection definition allowing to specify Options. + */ + interface WithOptions { + /** + * Specifies options. + * @param options A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request + * @return the next definition stage + */ + WithResource withOptions(Map options); + } + + /** + * The stage of the mongodbcollection definition allowing to specify Resource. + */ + interface WithResource { + /** + * Specifies resource. + * @param resource The standard JSON format of a MongoDB collection + * @return the next definition stage + */ + WithCreate withResource(MongoDBCollectionResource resource); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable { + } + } + /** + * The template for a MongoDBCollection update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable { + } + + /** + * Grouping of MongoDBCollection update stages. + */ + interface UpdateStages { + } +} diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoDBCollectionCreateUpdateParameters.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoDBCollectionCreateUpdateParameters.java new file mode 100644 index 000000000000..1ee105c96f07 --- /dev/null +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoDBCollectionCreateUpdateParameters.java @@ -0,0 +1,73 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.cosmosdb.v2015_04_08; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Parameters to create and update Cosmos DB MongoDB collection. + */ +@JsonFlatten +public class MongoDBCollectionCreateUpdateParameters { + /** + * The standard JSON format of a MongoDB collection. + */ + @JsonProperty(value = "properties.resource", required = true) + private MongoDBCollectionResource resource; + + /** + * A key-value pair of options to be applied for the request. This + * corresponds to the headers sent with the request. + */ + @JsonProperty(value = "properties.options", required = true) + private Map options; + + /** + * Get the standard JSON format of a MongoDB collection. + * + * @return the resource value + */ + public MongoDBCollectionResource resource() { + return this.resource; + } + + /** + * Set the standard JSON format of a MongoDB collection. + * + * @param resource the resource value to set + * @return the MongoDBCollectionCreateUpdateParameters object itself. + */ + public MongoDBCollectionCreateUpdateParameters withResource(MongoDBCollectionResource resource) { + this.resource = resource; + return this; + } + + /** + * Get a key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. + * + * @return the options value + */ + public Map options() { + return this.options; + } + + /** + * Set a key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. + * + * @param options the options value to set + * @return the MongoDBCollectionCreateUpdateParameters object itself. + */ + public MongoDBCollectionCreateUpdateParameters withOptions(Map options) { + this.options = options; + return this; + } + +} diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoDBCollectionResource.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoDBCollectionResource.java new file mode 100644 index 000000000000..c51928decc5b --- /dev/null +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoDBCollectionResource.java @@ -0,0 +1,97 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.cosmosdb.v2015_04_08; + +import java.util.Map; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Cosmos DB MongoDB collection resource object. + */ +public class MongoDBCollectionResource { + /** + * Name of the Cosmos DB MongoDB collection. + */ + @JsonProperty(value = "id", required = true) + private String id; + + /** + * A key-value pair of shard keys to be applied for the request. + */ + @JsonProperty(value = "shardKey") + private Map shardKey; + + /** + * List of index keys. + */ + @JsonProperty(value = "indexes") + private List indexes; + + /** + * Get name of the Cosmos DB MongoDB collection. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set name of the Cosmos DB MongoDB collection. + * + * @param id the id value to set + * @return the MongoDBCollectionResource object itself. + */ + public MongoDBCollectionResource withId(String id) { + this.id = id; + return this; + } + + /** + * Get a key-value pair of shard keys to be applied for the request. + * + * @return the shardKey value + */ + public Map shardKey() { + return this.shardKey; + } + + /** + * Set a key-value pair of shard keys to be applied for the request. + * + * @param shardKey the shardKey value to set + * @return the MongoDBCollectionResource object itself. + */ + public MongoDBCollectionResource withShardKey(Map shardKey) { + this.shardKey = shardKey; + return this; + } + + /** + * Get list of index keys. + * + * @return the indexes value + */ + public List indexes() { + return this.indexes; + } + + /** + * Set list of index keys. + * + * @param indexes the indexes value to set + * @return the MongoDBCollectionResource object itself. + */ + public MongoDBCollectionResource withIndexes(List indexes) { + this.indexes = indexes; + return this; + } + +} diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoDBDatabase.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoDBDatabase.java new file mode 100644 index 000000000000..d1be5a7efe2a --- /dev/null +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoDBDatabase.java @@ -0,0 +1,51 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.cosmosdb.v2015_04_08; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.implementation.DocumentDBManager; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.implementation.MongoDBDatabaseInner; +import java.util.Map; + +/** + * Type representing MongoDBDatabase. + */ +public interface MongoDBDatabase extends HasInner, HasManager { + /** + * @return the id value. + */ + String id(); + + /** + * @return the location value. + */ + String location(); + + /** + * @return the mongoDBDatabaseId value. + */ + String mongoDBDatabaseId(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + +} diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoDBDatabaseCreateUpdateParameters.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoDBDatabaseCreateUpdateParameters.java new file mode 100644 index 000000000000..a1a057c8c293 --- /dev/null +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoDBDatabaseCreateUpdateParameters.java @@ -0,0 +1,73 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.cosmosdb.v2015_04_08; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Parameters to create and update Cosmos DB MongoDB database. + */ +@JsonFlatten +public class MongoDBDatabaseCreateUpdateParameters { + /** + * The standard JSON format of a MongoDB database. + */ + @JsonProperty(value = "properties.resource", required = true) + private MongoDBDatabaseResource resource; + + /** + * A key-value pair of options to be applied for the request. This + * corresponds to the headers sent with the request. + */ + @JsonProperty(value = "properties.options", required = true) + private Map options; + + /** + * Get the standard JSON format of a MongoDB database. + * + * @return the resource value + */ + public MongoDBDatabaseResource resource() { + return this.resource; + } + + /** + * Set the standard JSON format of a MongoDB database. + * + * @param resource the resource value to set + * @return the MongoDBDatabaseCreateUpdateParameters object itself. + */ + public MongoDBDatabaseCreateUpdateParameters withResource(MongoDBDatabaseResource resource) { + this.resource = resource; + return this; + } + + /** + * Get a key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. + * + * @return the options value + */ + public Map options() { + return this.options; + } + + /** + * Set a key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. + * + * @param options the options value to set + * @return the MongoDBDatabaseCreateUpdateParameters object itself. + */ + public MongoDBDatabaseCreateUpdateParameters withOptions(Map options) { + this.options = options; + return this; + } + +} diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoDBDatabaseResource.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoDBDatabaseResource.java new file mode 100644 index 000000000000..adfaa17cba3d --- /dev/null +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoDBDatabaseResource.java @@ -0,0 +1,43 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.cosmosdb.v2015_04_08; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Cosmos DB MongoDB database id object. + */ +public class MongoDBDatabaseResource { + /** + * Name of the Cosmos DB MongoDB database. + */ + @JsonProperty(value = "id", required = true) + private String id; + + /** + * Get name of the Cosmos DB MongoDB database. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set name of the Cosmos DB MongoDB database. + * + * @param id the id value to set + * @return the MongoDBDatabaseResource object itself. + */ + public MongoDBDatabaseResource withId(String id) { + this.id = id; + return this; + } + +} diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoIndex.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoIndex.java index a155414f6360..8d10eb94fdc3 100644 --- a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoIndex.java +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoIndex.java @@ -11,23 +11,23 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Cosmos DB Mongo collection index key. + * Cosmos DB MongoDB collection index key. */ public class MongoIndex { /** - * Cosmos DB Mongo collection index keys. + * Cosmos DB MongoDB collection index keys. */ @JsonProperty(value = "key") private MongoIndexKeys key; /** - * Cosmos DB Mongo collection index key options. + * Cosmos DB MongoDB collection index key options. */ @JsonProperty(value = "options") private MongoIndexOptions options; /** - * Get cosmos DB Mongo collection index keys. + * Get cosmos DB MongoDB collection index keys. * * @return the key value */ @@ -36,7 +36,7 @@ public MongoIndexKeys key() { } /** - * Set cosmos DB Mongo collection index keys. + * Set cosmos DB MongoDB collection index keys. * * @param key the key value to set * @return the MongoIndex object itself. @@ -47,7 +47,7 @@ public MongoIndex withKey(MongoIndexKeys key) { } /** - * Get cosmos DB Mongo collection index key options. + * Get cosmos DB MongoDB collection index key options. * * @return the options value */ @@ -56,7 +56,7 @@ public MongoIndexOptions options() { } /** - * Set cosmos DB Mongo collection index key options. + * Set cosmos DB MongoDB collection index key options. * * @param options the options value to set * @return the MongoIndex object itself. diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoIndexKeys.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoIndexKeys.java index c6ad0f2d8163..9482984bd19e 100644 --- a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoIndexKeys.java +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoIndexKeys.java @@ -12,17 +12,17 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Cosmos DB Mongo collection resource object. + * Cosmos DB MongoDB collection resource object. */ public class MongoIndexKeys { /** - * List of keys for each Mongo collection in the Azure Cosmos DB service. + * List of keys for each MongoDB collection in the Azure Cosmos DB service. */ @JsonProperty(value = "keys") private List keys; /** - * Get list of keys for each Mongo collection in the Azure Cosmos DB service. + * Get list of keys for each MongoDB collection in the Azure Cosmos DB service. * * @return the keys value */ @@ -31,7 +31,7 @@ public List keys() { } /** - * Set list of keys for each Mongo collection in the Azure Cosmos DB service. + * Set list of keys for each MongoDB collection in the Azure Cosmos DB service. * * @param keys the keys value to set * @return the MongoIndexKeys object itself. diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoIndexOptions.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoIndexOptions.java index d8c5420f1d31..d2b9d94acc5a 100644 --- a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoIndexOptions.java +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongoIndexOptions.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Cosmos DB Mongo collection index options. + * Cosmos DB MongoDB collection index options. */ public class MongoIndexOptions { /** diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongodbCollection.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongodbCollection.java new file mode 100644 index 000000000000..ac6b7bf801a9 --- /dev/null +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongodbCollection.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.cosmosdb.v2015_04_08; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.implementation.MongodbCollectionInner; +import com.microsoft.azure.arm.model.Indexable; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.implementation.DocumentDBManager; +import java.util.Map; +import java.util.List; + +/** + * Type representing MongodbCollection. + */ +public interface MongodbCollection extends HasInner, Indexable, Refreshable, Updatable, HasManager { + /** + * @return the id value. + */ + String id(); + + /** + * @return the indexes value. + */ + List indexes(); + + /** + * @return the location value. + */ + String location(); + + /** + * @return the mongodbCollectionId value. + */ + String mongodbCollectionId(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the shardKey value. + */ + Map shardKey(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + + /** + * The entirety of the MongodbCollection definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithDatabasis, DefinitionStages.WithOptions, DefinitionStages.WithResource, DefinitionStages.WithCreate { + } + + /** + * Grouping of MongodbCollection definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a MongodbCollection definition. + */ + interface Blank extends WithDatabasis { + } + + /** + * The stage of the mongodbcollection definition allowing to specify Databasis. + */ + interface WithDatabasis { + /** + * Specifies resourceGroupName, accountName, databaseName. + * @param resourceGroupName Name of an Azure resource group + * @param accountName Cosmos DB database account name + * @param databaseName Cosmos DB database name + * @return the next definition stage + */ + WithOptions withExistingDatabasis(String resourceGroupName, String accountName, String databaseName); + } + + /** + * The stage of the mongodbcollection definition allowing to specify Options. + */ + interface WithOptions { + /** + * Specifies options. + * @param options A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request + * @return the next definition stage + */ + WithResource withOptions(Map options); + } + + /** + * The stage of the mongodbcollection definition allowing to specify Resource. + */ + interface WithResource { + /** + * Specifies resource. + * @param resource The standard JSON format of a Mongodb collection + * @return the next definition stage + */ + WithCreate withResource(MongodbCollectionResource resource); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable { + } + } + /** + * The template for a MongodbCollection update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable { + } + + /** + * Grouping of MongodbCollection update stages. + */ + interface UpdateStages { + } +} diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongodbCollectionCreateUpdateParameters.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongodbCollectionCreateUpdateParameters.java new file mode 100644 index 000000000000..56e5af5e596e --- /dev/null +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongodbCollectionCreateUpdateParameters.java @@ -0,0 +1,73 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.cosmosdb.v2015_04_08; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Parameters to create and update Cosmos DB Mongodb collection. + */ +@JsonFlatten +public class MongodbCollectionCreateUpdateParameters { + /** + * The standard JSON format of a Mongodb collection. + */ + @JsonProperty(value = "properties.resource", required = true) + private MongodbCollectionResource resource; + + /** + * A key-value pair of options to be applied for the request. This + * corresponds to the headers sent with the request. + */ + @JsonProperty(value = "properties.options", required = true) + private Map options; + + /** + * Get the standard JSON format of a Mongodb collection. + * + * @return the resource value + */ + public MongodbCollectionResource resource() { + return this.resource; + } + + /** + * Set the standard JSON format of a Mongodb collection. + * + * @param resource the resource value to set + * @return the MongodbCollectionCreateUpdateParameters object itself. + */ + public MongodbCollectionCreateUpdateParameters withResource(MongodbCollectionResource resource) { + this.resource = resource; + return this; + } + + /** + * Get a key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. + * + * @return the options value + */ + public Map options() { + return this.options; + } + + /** + * Set a key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. + * + * @param options the options value to set + * @return the MongodbCollectionCreateUpdateParameters object itself. + */ + public MongodbCollectionCreateUpdateParameters withOptions(Map options) { + this.options = options; + return this; + } + +} diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongodbCollectionResource.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongodbCollectionResource.java new file mode 100644 index 000000000000..19b31b02f2ff --- /dev/null +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongodbCollectionResource.java @@ -0,0 +1,97 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.cosmosdb.v2015_04_08; + +import java.util.Map; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Cosmos DB Mongodb collection resource object. + */ +public class MongodbCollectionResource { + /** + * Name of the Cosmos DB Mongodb collection. + */ + @JsonProperty(value = "id", required = true) + private String id; + + /** + * A key-value pair of shard keys to be applied for the request. + */ + @JsonProperty(value = "shardKey") + private Map shardKey; + + /** + * List of index keys. + */ + @JsonProperty(value = "indexes") + private List indexes; + + /** + * Get name of the Cosmos DB Mongodb collection. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set name of the Cosmos DB Mongodb collection. + * + * @param id the id value to set + * @return the MongodbCollectionResource object itself. + */ + public MongodbCollectionResource withId(String id) { + this.id = id; + return this; + } + + /** + * Get a key-value pair of shard keys to be applied for the request. + * + * @return the shardKey value + */ + public Map shardKey() { + return this.shardKey; + } + + /** + * Set a key-value pair of shard keys to be applied for the request. + * + * @param shardKey the shardKey value to set + * @return the MongodbCollectionResource object itself. + */ + public MongodbCollectionResource withShardKey(Map shardKey) { + this.shardKey = shardKey; + return this; + } + + /** + * Get list of index keys. + * + * @return the indexes value + */ + public List indexes() { + return this.indexes; + } + + /** + * Set list of index keys. + * + * @param indexes the indexes value to set + * @return the MongodbCollectionResource object itself. + */ + public MongodbCollectionResource withIndexes(List indexes) { + this.indexes = indexes; + return this; + } + +} diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongodbDatabase.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongodbDatabase.java new file mode 100644 index 000000000000..a9cd64ec08d9 --- /dev/null +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongodbDatabase.java @@ -0,0 +1,51 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.cosmosdb.v2015_04_08; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.implementation.DocumentDBManager; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.implementation.MongodbDatabaseInner; +import java.util.Map; + +/** + * Type representing MongodbDatabase. + */ +public interface MongodbDatabase extends HasInner, HasManager { + /** + * @return the id value. + */ + String id(); + + /** + * @return the location value. + */ + String location(); + + /** + * @return the mongodbDatabaseId value. + */ + String mongodbDatabaseId(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + +} diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongodbDatabaseCreateUpdateParameters.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongodbDatabaseCreateUpdateParameters.java new file mode 100644 index 000000000000..2502d0a9594e --- /dev/null +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongodbDatabaseCreateUpdateParameters.java @@ -0,0 +1,73 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.cosmosdb.v2015_04_08; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Parameters to create and update Cosmos DB Mongodb database. + */ +@JsonFlatten +public class MongodbDatabaseCreateUpdateParameters { + /** + * The standard JSON format of a Mongodb database. + */ + @JsonProperty(value = "properties.resource", required = true) + private MongodbDatabaseResource resource; + + /** + * A key-value pair of options to be applied for the request. This + * corresponds to the headers sent with the request. + */ + @JsonProperty(value = "properties.options", required = true) + private Map options; + + /** + * Get the standard JSON format of a Mongodb database. + * + * @return the resource value + */ + public MongodbDatabaseResource resource() { + return this.resource; + } + + /** + * Set the standard JSON format of a Mongodb database. + * + * @param resource the resource value to set + * @return the MongodbDatabaseCreateUpdateParameters object itself. + */ + public MongodbDatabaseCreateUpdateParameters withResource(MongodbDatabaseResource resource) { + this.resource = resource; + return this; + } + + /** + * Get a key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. + * + * @return the options value + */ + public Map options() { + return this.options; + } + + /** + * Set a key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. + * + * @param options the options value to set + * @return the MongodbDatabaseCreateUpdateParameters object itself. + */ + public MongodbDatabaseCreateUpdateParameters withOptions(Map options) { + this.options = options; + return this; + } + +} diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongodbDatabaseResource.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongodbDatabaseResource.java new file mode 100644 index 000000000000..c9aab377d37f --- /dev/null +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/MongodbDatabaseResource.java @@ -0,0 +1,43 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.cosmosdb.v2015_04_08; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Cosmos DB Mongodb database id object. + */ +public class MongodbDatabaseResource { + /** + * Name of the Cosmos DB Mongodb database. + */ + @JsonProperty(value = "id", required = true) + private String id; + + /** + * Get name of the Cosmos DB Mongodb database. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set name of the Cosmos DB Mongodb database. + * + * @param id the id value to set + * @return the MongodbDatabaseResource object itself. + */ + public MongodbDatabaseResource withId(String id) { + this.id = id; + return this; + } + +} diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/SqlContainer.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/SqlContainer.java index 5c8a3dfef24b..dfec6b5c3977 100644 --- a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/SqlContainer.java +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/SqlContainer.java @@ -14,6 +14,7 @@ import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; import com.microsoft.azure.management.cosmosdb.v2015_04_08.implementation.DocumentDBManager; import java.util.Map; @@ -22,16 +23,6 @@ * Type representing SqlContainer. */ public interface SqlContainer extends HasInner, Indexable, Refreshable, Updatable, HasManager { - /** - * @return the _conflicts value. - */ - String _conflicts(); - - /** - * @return the _doc value. - */ - String _doc(); - /** * @return the _etag value. */ @@ -42,31 +33,11 @@ public interface SqlContainer extends HasInner, Indexable, Re */ String _rid(); - /** - * @return the _self value. - */ - String _self(); - - /** - * @return the _sprocs value. - */ - String _sprocs(); - - /** - * @return the _triggers value. - */ - String _triggers(); - /** * @return the _ts value. */ Object _ts(); - /** - * @return the _udfs value. - */ - String _udfs(); - /** * @return the conflictResolutionPolicy value. */ @@ -100,7 +71,7 @@ public interface SqlContainer extends HasInner, Indexable, Re /** * @return the partitionKey value. */ - SqlPartitionKey partitionKey(); + ContainerPartitionKey partitionKey(); /** * @return the sqlContainerId value. @@ -122,6 +93,68 @@ public interface SqlContainer extends HasInner, Indexable, Re */ UniqueKeyPolicy uniqueKeyPolicy(); + /** + * The entirety of the SqlContainer definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithDatabasis, DefinitionStages.WithOptions, DefinitionStages.WithResource, DefinitionStages.WithCreate { + } + + /** + * Grouping of SqlContainer definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a SqlContainer definition. + */ + interface Blank extends WithDatabasis { + } + + /** + * The stage of the sqlcontainer definition allowing to specify Databasis. + */ + interface WithDatabasis { + /** + * Specifies resourceGroupName, accountName, databaseName. + * @param resourceGroupName Name of an Azure resource group + * @param accountName Cosmos DB database account name + * @param databaseName Cosmos DB database name + * @return the next definition stage + */ + WithOptions withExistingDatabasis(String resourceGroupName, String accountName, String databaseName); + } + + /** + * The stage of the sqlcontainer definition allowing to specify Options. + */ + interface WithOptions { + /** + * Specifies options. + * @param options A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request + * @return the next definition stage + */ + WithResource withOptions(Map options); + } + + /** + * The stage of the sqlcontainer definition allowing to specify Resource. + */ + interface WithResource { + /** + * Specifies resource. + * @param resource The standard JSON format of a container + * @return the next definition stage + */ + WithCreate withResource(SqlContainerResource resource); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable { + } + } /** * The template for a SqlContainer update operation, containing all the settings that can be modified. */ diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/SqlContainerCreateUpdateParameters.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/SqlContainerCreateUpdateParameters.java index 43bf0355b74a..de221fb26b77 100644 --- a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/SqlContainerCreateUpdateParameters.java +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/SqlContainerCreateUpdateParameters.java @@ -13,12 +13,12 @@ import com.microsoft.rest.serializer.JsonFlatten; /** - * Parameters to create and update Cosmos DB SQL container. + * Parameters to create and update Cosmos DB container. */ @JsonFlatten public class SqlContainerCreateUpdateParameters { /** - * The standard JSON format of a SQL container. + * The standard JSON format of a container. */ @JsonProperty(value = "properties.resource", required = true) private SqlContainerResource resource; @@ -31,7 +31,7 @@ public class SqlContainerCreateUpdateParameters { private Map options; /** - * Get the standard JSON format of a SQL container. + * Get the standard JSON format of a container. * * @return the resource value */ @@ -40,7 +40,7 @@ public SqlContainerResource resource() { } /** - * Set the standard JSON format of a SQL container. + * Set the standard JSON format of a container. * * @param resource the resource value to set * @return the SqlContainerCreateUpdateParameters object itself. diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/SqlContainerResource.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/SqlContainerResource.java index 524db70b1a91..b2f37621d9af 100644 --- a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/SqlContainerResource.java +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/SqlContainerResource.java @@ -22,7 +22,7 @@ public class SqlContainerResource { /** * The configuration of the indexing policy. By default, the indexing is - * automatic for all document paths within the SQL container. + * automatic for all document paths within the container. */ @JsonProperty(value = "indexingPolicy") private IndexingPolicy indexingPolicy; @@ -32,7 +32,7 @@ public class SqlContainerResource { * into multiple partitions. */ @JsonProperty(value = "partitionKey") - private SqlPartitionKey partitionKey; + private ContainerPartitionKey partitionKey; /** * Default time to live. @@ -49,7 +49,7 @@ public class SqlContainerResource { private UniqueKeyPolicy uniqueKeyPolicy; /** - * The conflict resolution policy for the SQL container. + * The conflict resolution policy for the container. */ @JsonProperty(value = "conflictResolutionPolicy") private ConflictResolutionPolicy conflictResolutionPolicy; @@ -75,7 +75,7 @@ public SqlContainerResource withId(String id) { } /** - * Get the configuration of the indexing policy. By default, the indexing is automatic for all document paths within the SQL container. + * Get the configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container. * * @return the indexingPolicy value */ @@ -84,7 +84,7 @@ public IndexingPolicy indexingPolicy() { } /** - * Set the configuration of the indexing policy. By default, the indexing is automatic for all document paths within the SQL container. + * Set the configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container. * * @param indexingPolicy the indexingPolicy value to set * @return the SqlContainerResource object itself. @@ -99,7 +99,7 @@ public SqlContainerResource withIndexingPolicy(IndexingPolicy indexingPolicy) { * * @return the partitionKey value */ - public SqlPartitionKey partitionKey() { + public ContainerPartitionKey partitionKey() { return this.partitionKey; } @@ -109,7 +109,7 @@ public SqlPartitionKey partitionKey() { * @param partitionKey the partitionKey value to set * @return the SqlContainerResource object itself. */ - public SqlContainerResource withPartitionKey(SqlPartitionKey partitionKey) { + public SqlContainerResource withPartitionKey(ContainerPartitionKey partitionKey) { this.partitionKey = partitionKey; return this; } @@ -155,7 +155,7 @@ public SqlContainerResource withUniqueKeyPolicy(UniqueKeyPolicy uniqueKeyPolicy) } /** - * Get the conflict resolution policy for the SQL container. + * Get the conflict resolution policy for the container. * * @return the conflictResolutionPolicy value */ @@ -164,7 +164,7 @@ public ConflictResolutionPolicy conflictResolutionPolicy() { } /** - * Set the conflict resolution policy for the SQL container. + * Set the conflict resolution policy for the container. * * @param conflictResolutionPolicy the conflictResolutionPolicy value to set * @return the SqlContainerResource object itself. diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/CassandraKeyspaceImpl.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/CassandraKeyspaceImpl.java index 16fe6c074307..818c2db031e8 100644 --- a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/CassandraKeyspaceImpl.java +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/CassandraKeyspaceImpl.java @@ -20,14 +20,14 @@ class CassandraKeyspaceImpl extends CreatableUpdatableImpl createResourceAsync() { DatabaseAccountsInner client = this.manager().inner().databaseAccounts(); - return client.createUpdateCassandraKeyspaceAsync(this.resourceGroupName, this.accountName, this.keyspaceRid, this.createOrUpdateParameter) + return client.createUpdateCassandraKeyspaceAsync(this.resourceGroupName, this.accountName, this.keyspaceName, this.createOrUpdateParameter) .map(new Func1() { @Override public CassandraKeyspaceInner call(CassandraKeyspaceInner resource) { @@ -67,7 +67,7 @@ public CassandraKeyspaceInner call(CassandraKeyspaceInner resource) { @Override public Observable updateResourceAsync() { DatabaseAccountsInner client = this.manager().inner().databaseAccounts(); - return client.createUpdateCassandraKeyspaceAsync(this.resourceGroupName, this.accountName, this.keyspaceRid, this.createOrUpdateParameter) + return client.createUpdateCassandraKeyspaceAsync(this.resourceGroupName, this.accountName, this.keyspaceName, this.createOrUpdateParameter) .map(new Func1() { @Override public CassandraKeyspaceInner call(CassandraKeyspaceInner resource) { diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/DatabaseAccountsImpl.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/DatabaseAccountsImpl.java index 68781a11dc30..610eb5932295 100644 --- a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/DatabaseAccountsImpl.java +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/DatabaseAccountsImpl.java @@ -32,17 +32,17 @@ import com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccountUsage; import com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccountMetricDefinition; import com.microsoft.azure.management.cosmosdb.v2015_04_08.SqlDatabase; -import com.microsoft.azure.management.cosmosdb.v2015_04_08.MongoDatabase; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.MongoDBDatabase; import com.microsoft.azure.management.cosmosdb.v2015_04_08.GremlinDatabase; -import com.microsoft.azure.management.cosmosdb.v2015_04_08.MongoDatabaseCreateUpdateParameters; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.MongoDBDatabaseCreateUpdateParameters; import com.microsoft.azure.management.cosmosdb.v2015_04_08.GremlinDatabaseCreateUpdateParameters; -import com.microsoft.azure.management.cosmosdb.v2015_04_08.Container; -import com.microsoft.azure.management.cosmosdb.v2015_04_08.ContainerCreateUpdateParameters; -import com.microsoft.azure.management.cosmosdb.v2015_04_08.MongoCollection; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.SqlContainer; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.MongoDBCollection; import com.microsoft.azure.management.cosmosdb.v2015_04_08.Table; import com.microsoft.azure.management.cosmosdb.v2015_04_08.CassandraTable; import com.microsoft.azure.management.cosmosdb.v2015_04_08.CassandraTableCreateUpdateParameters; import com.microsoft.azure.management.cosmosdb.v2015_04_08.CassandraKeyspace; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.GremlinGraph; class DatabaseAccountsImpl extends GroupableResourcesCoreImpl implements DatabaseAccounts { protected DatabaseAccountsImpl(DocumentDBManager manager) { @@ -222,12 +222,12 @@ public SqlDatabaseImpl defineDatabasis(String name) { } @Override - public ContainerImpl defineContainer(String name) { + public SqlContainerImpl defineContainer(String name) { return wrapContainerModel(name); } @Override - public MongoCollectionImpl defineCollection(String name) { + public MongoDBCollectionImpl defineCollection(String name) { return wrapCollectionModel(name); } @@ -241,16 +241,21 @@ public CassandraKeyspaceImpl defineKeyspace(String name) { return wrapKeyspaceModel(name); } + @Override + public GremlinGraphImpl defineGraph(String name) { + return wrapGraphModel(name); + } + private SqlDatabaseImpl wrapDatabasisModel(String name) { return new SqlDatabaseImpl(name, this.manager()); } - private ContainerImpl wrapContainerModel(String name) { - return new ContainerImpl(name, this.manager()); + private SqlContainerImpl wrapContainerModel(String name) { + return new SqlContainerImpl(name, this.manager()); } - private MongoCollectionImpl wrapCollectionModel(String name) { - return new MongoCollectionImpl(name, this.manager()); + private MongoDBCollectionImpl wrapCollectionModel(String name) { + return new MongoDBCollectionImpl(name, this.manager()); } private TableImpl wrapTableModel(String name) { @@ -261,6 +266,10 @@ private CassandraKeyspaceImpl wrapKeyspaceModel(String name) { return new CassandraKeyspaceImpl(name, this.manager()); } + private GremlinGraphImpl wrapGraphModel(String name) { + return new GremlinGraphImpl(name, this.manager()); + } + private DatabaseAccountMetricImpl wrapDatabaseAccountMetricModel(MetricInner inner) { return new DatabaseAccountMetricImpl(inner, manager()); } @@ -277,12 +286,12 @@ private SqlDatabaseImpl wrapSqlDatabaseModel(SqlDatabaseInner inner) { return new SqlDatabaseImpl(inner, manager()); } - private ContainerImpl wrapContainerModel(ContainerInner inner) { - return new ContainerImpl(inner, manager()); + private SqlContainerImpl wrapSqlContainerModel(SqlContainerInner inner) { + return new SqlContainerImpl(inner, manager()); } - private MongoCollectionImpl wrapMongoCollectionModel(MongoCollectionInner inner) { - return new MongoCollectionImpl(inner, manager()); + private MongoDBCollectionImpl wrapMongoDBCollectionModel(MongoDBCollectionInner inner) { + return new MongoDBCollectionImpl(inner, manager()); } private TableImpl wrapTableModel(TableInner inner) { @@ -293,22 +302,35 @@ private CassandraKeyspaceImpl wrapCassandraKeyspaceModel(CassandraKeyspaceInner return new CassandraKeyspaceImpl(inner, manager()); } - private Observable getContainerInnerUsingDatabaseAccountsInnerAsync(String id) { + private GremlinGraphImpl wrapGremlinGraphModel(GremlinGraphInner inner) { + return new GremlinGraphImpl(inner, manager()); + } + + private Observable getSqlContainerInnerUsingDatabaseAccountsInnerAsync(String id) { + String resourceGroupName = IdParsingUtils.getValueFromIdByName(id, "resourceGroups"); + String accountName = IdParsingUtils.getValueFromIdByName(id, "databaseAccounts"); + String databaseName = IdParsingUtils.getValueFromIdByName(id, "databases"); + String containerName = IdParsingUtils.getValueFromIdByName(id, "containers"); + DatabaseAccountsInner client = this.inner(); + return client.getSqlContainerAsync(resourceGroupName, accountName, databaseName, containerName); + } + + private Observable getMongoDBCollectionInnerUsingDatabaseAccountsInnerAsync(String id) { String resourceGroupName = IdParsingUtils.getValueFromIdByName(id, "resourceGroups"); String accountName = IdParsingUtils.getValueFromIdByName(id, "databaseAccounts"); - String databaseRid = IdParsingUtils.getValueFromIdByName(id, "databases"); - String containerRid = IdParsingUtils.getValueFromIdByName(id, "containers"); + String databaseName = IdParsingUtils.getValueFromIdByName(id, "databases"); + String collectionName = IdParsingUtils.getValueFromIdByName(id, "collections"); DatabaseAccountsInner client = this.inner(); - return client.getSqlContainerAsync(resourceGroupName, accountName, databaseRid, containerRid); + return client.getMongoDBCollectionAsync(resourceGroupName, accountName, databaseName, collectionName); } - private Observable getMongoCollectionInnerUsingDatabaseAccountsInnerAsync(String id) { + private Observable getGremlinGraphInnerUsingDatabaseAccountsInnerAsync(String id) { String resourceGroupName = IdParsingUtils.getValueFromIdByName(id, "resourceGroups"); String accountName = IdParsingUtils.getValueFromIdByName(id, "databaseAccounts"); - String databaseRid = IdParsingUtils.getValueFromIdByName(id, "databases"); - String collectionRid = IdParsingUtils.getValueFromIdByName(id, "collections"); + String databaseName = IdParsingUtils.getValueFromIdByName(id, "databases"); + String graphName = IdParsingUtils.getValueFromIdByName(id, "graphs"); DatabaseAccountsInner client = this.inner(); - return client.getMongoCollectionAsync(resourceGroupName, accountName, databaseRid, collectionRid); + return client.getGremlinGraphAsync(resourceGroupName, accountName, databaseName, graphName); } @Override @@ -402,9 +424,9 @@ public SqlDatabase call(SqlDatabaseInner inner) { } @Override - public Observable getSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseRid) { + public Observable getSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseName) { DatabaseAccountsInner client = this.inner(); - return client.getSqlDatabaseAsync(resourceGroupName, accountName, databaseRid) + return client.getSqlDatabaseAsync(resourceGroupName, accountName, databaseName) .map(new Func1() { @Override public SqlDatabase call(SqlDatabaseInner inner) { @@ -414,57 +436,57 @@ public SqlDatabase call(SqlDatabaseInner inner) { } @Override - public Completable deleteSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseRid) { + public Completable deleteSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseName) { DatabaseAccountsInner client = this.inner(); - return client.deleteSqlDatabaseAsync(resourceGroupName, accountName, databaseRid).toCompletable(); + return client.deleteSqlDatabaseAsync(resourceGroupName, accountName, databaseName).toCompletable(); } @Override - public Observable listMongoDatabasesAsync(String resourceGroupName, String accountName) { + public Observable listMongoDBDatabasesAsync(String resourceGroupName, String accountName) { DatabaseAccountsInner client = this.inner(); - return client.listMongoDatabasesAsync(resourceGroupName, accountName) - .flatMap(new Func1, Observable>() { + return client.listMongoDBDatabasesAsync(resourceGroupName, accountName) + .flatMap(new Func1, Observable>() { @Override - public Observable call(List innerList) { + public Observable call(List innerList) { return Observable.from(innerList); } }) - .map(new Func1() { + .map(new Func1() { @Override - public MongoDatabase call(MongoDatabaseInner inner) { - return new MongoDatabaseImpl(inner, manager()); + public MongoDBDatabase call(MongoDBDatabaseInner inner) { + return new MongoDBDatabaseImpl(inner, manager()); } }); } @Override - public Observable getMongoDatabaseAsync(String resourceGroupName, String accountName, String databaseRid) { + public Observable getMongoDBDatabaseAsync(String resourceGroupName, String accountName, String databaseName) { DatabaseAccountsInner client = this.inner(); - return client.getMongoDatabaseAsync(resourceGroupName, accountName, databaseRid) - .map(new Func1() { + return client.getMongoDBDatabaseAsync(resourceGroupName, accountName, databaseName) + .map(new Func1() { @Override - public MongoDatabase call(MongoDatabaseInner inner) { - return new MongoDatabaseImpl(inner, manager()); + public MongoDBDatabase call(MongoDBDatabaseInner inner) { + return new MongoDBDatabaseImpl(inner, manager()); } }); } @Override - public Observable createUpdateMongoDatabaseAsync(String resourceGroupName, String accountName, String databaseRid, MongoDatabaseCreateUpdateParameters createUpdateMongoDatabaseParameters) { + public Observable createUpdateMongoDBDatabaseAsync(String resourceGroupName, String accountName, String databaseName, MongoDBDatabaseCreateUpdateParameters createUpdateMongoDBDatabaseParameters) { DatabaseAccountsInner client = this.inner(); - return client.createUpdateMongoDatabaseAsync(resourceGroupName, accountName, databaseRid, createUpdateMongoDatabaseParameters) - .map(new Func1() { + return client.createUpdateMongoDBDatabaseAsync(resourceGroupName, accountName, databaseName, createUpdateMongoDBDatabaseParameters) + .map(new Func1() { @Override - public MongoDatabase call(MongoDatabaseInner inner) { - return new MongoDatabaseImpl(inner, manager()); + public MongoDBDatabase call(MongoDBDatabaseInner inner) { + return new MongoDBDatabaseImpl(inner, manager()); } }); } @Override - public Completable deleteMongoDatabaseAsync(String resourceGroupName, String accountName, String databaseRid) { + public Completable deleteMongoDBDatabaseAsync(String resourceGroupName, String accountName, String databaseName) { DatabaseAccountsInner client = this.inner(); - return client.deleteMongoDatabaseAsync(resourceGroupName, accountName, databaseRid).toCompletable(); + return client.deleteMongoDBDatabaseAsync(resourceGroupName, accountName, databaseName).toCompletable(); } @Override @@ -486,9 +508,9 @@ public GremlinDatabase call(GremlinDatabaseInner inner) { } @Override - public Observable getGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseRid) { + public Observable getGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseName) { DatabaseAccountsInner client = this.inner(); - return client.getGremlinDatabaseAsync(resourceGroupName, accountName, databaseRid) + return client.getGremlinDatabaseAsync(resourceGroupName, accountName, databaseName) .map(new Func1() { @Override public GremlinDatabase call(GremlinDatabaseInner inner) { @@ -498,9 +520,9 @@ public GremlinDatabase call(GremlinDatabaseInner inner) { } @Override - public Observable createUpdateGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseRid, GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters) { + public Observable createUpdateGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseName, GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters) { DatabaseAccountsInner client = this.inner(); - return client.createUpdateGremlinDatabaseAsync(resourceGroupName, accountName, databaseRid, createUpdateGremlinDatabaseParameters) + return client.createUpdateGremlinDatabaseAsync(resourceGroupName, accountName, databaseName, createUpdateGremlinDatabaseParameters) .map(new Func1() { @Override public GremlinDatabase call(GremlinDatabaseInner inner) { @@ -510,129 +532,81 @@ public GremlinDatabase call(GremlinDatabaseInner inner) { } @Override - public Completable deleteGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseRid) { + public Completable deleteGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseName) { DatabaseAccountsInner client = this.inner(); - return client.deleteGremlinDatabaseAsync(resourceGroupName, accountName, databaseRid).toCompletable(); + return client.deleteGremlinDatabaseAsync(resourceGroupName, accountName, databaseName).toCompletable(); } @Override - public Observable getSqlContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid) { + public Observable getSqlContainerAsync(String resourceGroupName, String accountName, String databaseName, String containerName) { DatabaseAccountsInner client = this.inner(); - return client.getSqlContainerAsync(resourceGroupName, accountName, databaseRid, containerRid) - .map(new Func1() { + return client.getSqlContainerAsync(resourceGroupName, accountName, databaseName, containerName) + .map(new Func1() { @Override - public Container call(ContainerInner inner) { - return wrapContainerModel(inner); + public SqlContainer call(SqlContainerInner inner) { + return wrapSqlContainerModel(inner); } }); } @Override - public Observable listSqlContainersAsync(String resourceGroupName, String accountName, String databaseRid) { - DatabaseAccountsInner client = this.inner(); - return client.listSqlContainersAsync(resourceGroupName, accountName, databaseRid) - .flatMap(new Func1, Observable>() { - @Override - public Observable call(List innerList) { - return Observable.from(innerList); - } - }) - .map(new Func1() { - @Override - public Container call(ContainerInner inner) { - return wrapContainerModel(inner); - } - }); - } - - @Override - public Completable deleteSqlContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid) { - DatabaseAccountsInner client = this.inner(); - return client.deleteSqlContainerAsync(resourceGroupName, accountName, databaseRid, containerRid).toCompletable(); - } - - @Override - public Observable listGremlinContainersAsync(String resourceGroupName, String accountName, String databaseRid) { + public Observable listSqlContainersAsync(String resourceGroupName, String accountName, String databaseName) { DatabaseAccountsInner client = this.inner(); - return client.listGremlinContainersAsync(resourceGroupName, accountName, databaseRid) - .flatMap(new Func1, Observable>() { + return client.listSqlContainersAsync(resourceGroupName, accountName, databaseName) + .flatMap(new Func1, Observable>() { @Override - public Observable call(List innerList) { + public Observable call(List innerList) { return Observable.from(innerList); } }) - .map(new Func1() { + .map(new Func1() { @Override - public Container call(ContainerInner inner) { - return new ContainerImpl(inner, manager()); + public SqlContainer call(SqlContainerInner inner) { + return wrapSqlContainerModel(inner); } }); } @Override - public Observable getGremlinContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid) { + public Completable deleteSqlContainerAsync(String resourceGroupName, String accountName, String databaseName, String containerName) { DatabaseAccountsInner client = this.inner(); - return client.getGremlinContainerAsync(resourceGroupName, accountName, databaseRid, containerRid) - .map(new Func1() { - @Override - public Container call(ContainerInner inner) { - return new ContainerImpl(inner, manager()); - } - }); + return client.deleteSqlContainerAsync(resourceGroupName, accountName, databaseName, containerName).toCompletable(); } @Override - public Observable createUpdateGremlinContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid, ContainerCreateUpdateParameters createUpdateGremlinContainerParameters) { + public Observable getMongoDBCollectionAsync(String resourceGroupName, String accountName, String databaseName, String collectionName) { DatabaseAccountsInner client = this.inner(); - return client.createUpdateGremlinContainerAsync(resourceGroupName, accountName, databaseRid, containerRid, createUpdateGremlinContainerParameters) - .map(new Func1() { + return client.getMongoDBCollectionAsync(resourceGroupName, accountName, databaseName, collectionName) + .map(new Func1() { @Override - public Container call(ContainerInner inner) { - return new ContainerImpl(inner, manager()); - } - }); - } - - @Override - public Completable deleteGremlinContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid) { - DatabaseAccountsInner client = this.inner(); - return client.deleteGremlinContainerAsync(resourceGroupName, accountName, databaseRid, containerRid).toCompletable(); - } - - @Override - public Observable getMongoCollectionAsync(String resourceGroupName, String accountName, String databaseRid, String collectionRid) { - DatabaseAccountsInner client = this.inner(); - return client.getMongoCollectionAsync(resourceGroupName, accountName, databaseRid, collectionRid) - .map(new Func1() { - @Override - public MongoCollection call(MongoCollectionInner inner) { - return wrapMongoCollectionModel(inner); + public MongoDBCollection call(MongoDBCollectionInner inner) { + return wrapMongoDBCollectionModel(inner); } }); } @Override - public Observable listMongoCollectionsAsync(String resourceGroupName, String accountName, String databaseRid) { + public Observable listMongoDBCollectionsAsync(String resourceGroupName, String accountName, String databaseName) { DatabaseAccountsInner client = this.inner(); - return client.listMongoCollectionsAsync(resourceGroupName, accountName, databaseRid) - .flatMap(new Func1, Observable>() { + return client.listMongoDBCollectionsAsync(resourceGroupName, accountName, databaseName) + .flatMap(new Func1, Observable>() { @Override - public Observable call(List innerList) { + public Observable call(List innerList) { return Observable.from(innerList); } }) - .map(new Func1() { + .map(new Func1() { @Override - public MongoCollection call(MongoCollectionInner inner) { - return wrapMongoCollectionModel(inner); + public MongoDBCollection call(MongoDBCollectionInner inner) { + return wrapMongoDBCollectionModel(inner); } }); } @Override - public Completable deleteMongoCollectionAsync(String resourceGroupName, String accountName, String databaseRid, String collectionRid) { + public Completable deleteMongoDBCollectionAsync(String resourceGroupName, String accountName, String databaseName, String collectionName) { DatabaseAccountsInner client = this.inner(); - return client.deleteMongoCollectionAsync(resourceGroupName, accountName, databaseRid, collectionRid).toCompletable(); + return client.deleteMongoDBCollectionAsync(resourceGroupName, accountName, databaseName, collectionName).toCompletable(); } @Override @@ -654,9 +628,9 @@ public Table call(TableInner inner) { } @Override - public Observable
getTableAsync(String resourceGroupName, String accountName, String tableRid) { + public Observable
getTableAsync(String resourceGroupName, String accountName, String tableName) { DatabaseAccountsInner client = this.inner(); - return client.getTableAsync(resourceGroupName, accountName, tableRid) + return client.getTableAsync(resourceGroupName, accountName, tableName) .map(new Func1() { @Override public Table call(TableInner inner) { @@ -666,15 +640,15 @@ public Table call(TableInner inner) { } @Override - public Completable deleteTableAsync(String resourceGroupName, String accountName, String tableRid) { + public Completable deleteTableAsync(String resourceGroupName, String accountName, String tableName) { DatabaseAccountsInner client = this.inner(); - return client.deleteTableAsync(resourceGroupName, accountName, tableRid).toCompletable(); + return client.deleteTableAsync(resourceGroupName, accountName, tableName).toCompletable(); } @Override - public Observable listCassandraTablesAsync(String resourceGroupName, String accountName, String keyspaceRid) { + public Observable listCassandraTablesAsync(String resourceGroupName, String accountName, String keyspaceName) { DatabaseAccountsInner client = this.inner(); - return client.listCassandraTablesAsync(resourceGroupName, accountName, keyspaceRid) + return client.listCassandraTablesAsync(resourceGroupName, accountName, keyspaceName) .flatMap(new Func1, Observable>() { @Override public Observable call(List innerList) { @@ -690,9 +664,9 @@ public CassandraTable call(CassandraTableInner inner) { } @Override - public Observable getCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceRid, String tableRid) { + public Observable getCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName) { DatabaseAccountsInner client = this.inner(); - return client.getCassandraTableAsync(resourceGroupName, accountName, keyspaceRid, tableRid) + return client.getCassandraTableAsync(resourceGroupName, accountName, keyspaceName, tableName) .map(new Func1() { @Override public CassandraTable call(CassandraTableInner inner) { @@ -702,9 +676,9 @@ public CassandraTable call(CassandraTableInner inner) { } @Override - public Observable createUpdateCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceRid, String tableRid, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters) { + public Observable createUpdateCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters) { DatabaseAccountsInner client = this.inner(); - return client.createUpdateCassandraTableAsync(resourceGroupName, accountName, keyspaceRid, tableRid, createUpdateCassandraTableParameters) + return client.createUpdateCassandraTableAsync(resourceGroupName, accountName, keyspaceName, tableName, createUpdateCassandraTableParameters) .map(new Func1() { @Override public CassandraTable call(CassandraTableInner inner) { @@ -714,9 +688,9 @@ public CassandraTable call(CassandraTableInner inner) { } @Override - public Completable deleteCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceRid, String tableRid) { + public Completable deleteCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName) { DatabaseAccountsInner client = this.inner(); - return client.deleteCassandraTableAsync(resourceGroupName, accountName, keyspaceRid, tableRid).toCompletable(); + return client.deleteCassandraTableAsync(resourceGroupName, accountName, keyspaceName, tableName).toCompletable(); } @Override @@ -738,9 +712,9 @@ public CassandraKeyspace call(CassandraKeyspaceInner inner) { } @Override - public Observable getCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceRid) { + public Observable getCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceName) { DatabaseAccountsInner client = this.inner(); - return client.getCassandraKeyspaceAsync(resourceGroupName, accountName, keyspaceRid) + return client.getCassandraKeyspaceAsync(resourceGroupName, accountName, keyspaceName) .map(new Func1() { @Override public CassandraKeyspace call(CassandraKeyspaceInner inner) { @@ -750,9 +724,45 @@ public CassandraKeyspace call(CassandraKeyspaceInner inner) { } @Override - public Completable deleteCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceRid) { + public Completable deleteCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceName) { + DatabaseAccountsInner client = this.inner(); + return client.deleteCassandraKeyspaceAsync(resourceGroupName, accountName, keyspaceName).toCompletable(); + } + + @Override + public Observable getGremlinGraphAsync(String resourceGroupName, String accountName, String databaseName, String graphName) { + DatabaseAccountsInner client = this.inner(); + return client.getGremlinGraphAsync(resourceGroupName, accountName, databaseName, graphName) + .map(new Func1() { + @Override + public GremlinGraph call(GremlinGraphInner inner) { + return wrapGremlinGraphModel(inner); + } + }); + } + + @Override + public Observable listGremlinGraphsAsync(String resourceGroupName, String accountName, String databaseName) { + DatabaseAccountsInner client = this.inner(); + return client.listGremlinGraphsAsync(resourceGroupName, accountName, databaseName) + .flatMap(new Func1, Observable>() { + @Override + public Observable call(List innerList) { + return Observable.from(innerList); + } + }) + .map(new Func1() { + @Override + public GremlinGraph call(GremlinGraphInner inner) { + return wrapGremlinGraphModel(inner); + } + }); + } + + @Override + public Completable deleteGremlinGraphAsync(String resourceGroupName, String accountName, String databaseName, String graphName) { DatabaseAccountsInner client = this.inner(); - return client.deleteCassandraKeyspaceAsync(resourceGroupName, accountName, keyspaceRid).toCompletable(); + return client.deleteGremlinGraphAsync(resourceGroupName, accountName, databaseName, graphName).toCompletable(); } } diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/DatabaseAccountsInner.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/DatabaseAccountsInner.java index ea180759f110..cccbcb023950 100644 --- a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/DatabaseAccountsInner.java +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/DatabaseAccountsInner.java @@ -16,7 +16,6 @@ import com.microsoft.azure.CloudException; import com.microsoft.azure.management.cosmosdb.v2015_04_08.CassandraKeyspaceCreateUpdateParameters; import com.microsoft.azure.management.cosmosdb.v2015_04_08.CassandraTableCreateUpdateParameters; -import com.microsoft.azure.management.cosmosdb.v2015_04_08.ContainerCreateUpdateParameters; import com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccountCreateUpdateParameters; import com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccountPatchParameters; import com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccountRegenerateKeyParameters; @@ -24,10 +23,12 @@ import com.microsoft.azure.management.cosmosdb.v2015_04_08.FailoverPolicies; import com.microsoft.azure.management.cosmosdb.v2015_04_08.FailoverPolicy; import com.microsoft.azure.management.cosmosdb.v2015_04_08.GremlinDatabaseCreateUpdateParameters; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.GremlinGraphCreateUpdateParameters; import com.microsoft.azure.management.cosmosdb.v2015_04_08.KeyKind; -import com.microsoft.azure.management.cosmosdb.v2015_04_08.MongoCollectionCreateUpdateParameters; -import com.microsoft.azure.management.cosmosdb.v2015_04_08.MongoDatabaseCreateUpdateParameters; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.MongoDBCollectionCreateUpdateParameters; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.MongoDBDatabaseCreateUpdateParameters; import com.microsoft.azure.management.cosmosdb.v2015_04_08.RegionForOnlineOffline; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.SqlContainerCreateUpdateParameters; import com.microsoft.azure.management.cosmosdb.v2015_04_08.SqlDatabaseCreateUpdateParameters; import com.microsoft.azure.management.cosmosdb.v2015_04_08.TableCreateUpdateParameters; import com.microsoft.azure.Page; @@ -185,216 +186,216 @@ interface DatabaseAccountsService { Observable> listSqlDatabases(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts getSqlDatabase" }) - @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseRid}") - Observable> getSqlDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}") + Observable> getSqlDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts createUpdateSqlDatabase" }) - @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseRid}") - Observable> createUpdateSqlDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Query("api-version") String apiVersion, @Body SqlDatabaseCreateUpdateParameters createUpdateSqlDatabaseParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}") + Observable> createUpdateSqlDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Query("api-version") String apiVersion, @Body SqlDatabaseCreateUpdateParameters createUpdateSqlDatabaseParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts beginCreateUpdateSqlDatabase" }) - @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseRid}") - Observable> beginCreateUpdateSqlDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Query("api-version") String apiVersion, @Body SqlDatabaseCreateUpdateParameters createUpdateSqlDatabaseParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}") + Observable> beginCreateUpdateSqlDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Query("api-version") String apiVersion, @Body SqlDatabaseCreateUpdateParameters createUpdateSqlDatabaseParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts deleteSqlDatabase" }) - @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseRid}", method = "DELETE", hasBody = true) - Observable> deleteSqlDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}", method = "DELETE", hasBody = true) + Observable> deleteSqlDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts beginDeleteSqlDatabase" }) - @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseRid}", method = "DELETE", hasBody = true) - Observable> beginDeleteSqlDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}", method = "DELETE", hasBody = true) + Observable> beginDeleteSqlDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts listSqlContainers" }) - @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseRid}/containers") - Observable> listSqlContainers(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}/containers") + Observable> listSqlContainers(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts getSqlContainer" }) - @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseRid}/containers/{containerRid}") - Observable> getSqlContainer(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Path("containerRid") String containerRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}/containers/{containerName}") + Observable> getSqlContainer(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Path("containerName") String containerName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts createUpdateSqlContainer" }) - @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseRid}/containers/{containerRid}") - Observable> createUpdateSqlContainer(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Path("containerRid") String containerRid, @Query("api-version") String apiVersion, @Body ContainerCreateUpdateParameters createUpdateSqlContainerParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}/containers/{containerName}") + Observable> createUpdateSqlContainer(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Path("containerName") String containerName, @Query("api-version") String apiVersion, @Body SqlContainerCreateUpdateParameters createUpdateSqlContainerParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts beginCreateUpdateSqlContainer" }) - @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseRid}/containers/{containerRid}") - Observable> beginCreateUpdateSqlContainer(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Path("containerRid") String containerRid, @Query("api-version") String apiVersion, @Body ContainerCreateUpdateParameters createUpdateSqlContainerParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}/containers/{containerName}") + Observable> beginCreateUpdateSqlContainer(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Path("containerName") String containerName, @Query("api-version") String apiVersion, @Body SqlContainerCreateUpdateParameters createUpdateSqlContainerParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts deleteSqlContainer" }) - @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseRid}/containers/{containerRid}", method = "DELETE", hasBody = true) - Observable> deleteSqlContainer(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Path("containerRid") String containerRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}/containers/{containerName}", method = "DELETE", hasBody = true) + Observable> deleteSqlContainer(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Path("containerName") String containerName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts beginDeleteSqlContainer" }) - @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseRid}/containers/{containerRid}", method = "DELETE", hasBody = true) - Observable> beginDeleteSqlContainer(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Path("containerRid") String containerRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}/containers/{containerName}", method = "DELETE", hasBody = true) + Observable> beginDeleteSqlContainer(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Path("containerName") String containerName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts listMongoDatabases" }) - @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongo/databases") - Observable> listMongoDatabases(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts listMongoDBDatabases" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases") + Observable> listMongoDBDatabases(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts getMongoDatabase" }) - @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongo/databases/{databaseRid}") - Observable> getMongoDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts getMongoDBDatabase" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}") + Observable> getMongoDBDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts createUpdateMongoDatabase" }) - @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongo/databases/{databaseRid}") - Observable> createUpdateMongoDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Query("api-version") String apiVersion, @Body MongoDatabaseCreateUpdateParameters createUpdateMongoDatabaseParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts createUpdateMongoDBDatabase" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}") + Observable> createUpdateMongoDBDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Query("api-version") String apiVersion, @Body MongoDBDatabaseCreateUpdateParameters createUpdateMongoDBDatabaseParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts beginCreateUpdateMongoDatabase" }) - @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongo/databases/{databaseRid}") - Observable> beginCreateUpdateMongoDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Query("api-version") String apiVersion, @Body MongoDatabaseCreateUpdateParameters createUpdateMongoDatabaseParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts beginCreateUpdateMongoDBDatabase" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}") + Observable> beginCreateUpdateMongoDBDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Query("api-version") String apiVersion, @Body MongoDBDatabaseCreateUpdateParameters createUpdateMongoDBDatabaseParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts deleteMongoDatabase" }) - @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongo/databases/{databaseRid}", method = "DELETE", hasBody = true) - Observable> deleteMongoDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts deleteMongoDBDatabase" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}", method = "DELETE", hasBody = true) + Observable> deleteMongoDBDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts beginDeleteMongoDatabase" }) - @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongo/databases/{databaseRid}", method = "DELETE", hasBody = true) - Observable> beginDeleteMongoDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts beginDeleteMongoDBDatabase" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}", method = "DELETE", hasBody = true) + Observable> beginDeleteMongoDBDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts listMongoCollections" }) - @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongo/databases/{databaseRid}/collections") - Observable> listMongoCollections(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts listMongoDBCollections" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}/collections") + Observable> listMongoDBCollections(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts getMongoCollection" }) - @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongo/databases/{databaseRid}/collections/{collectionRid}") - Observable> getMongoCollection(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Path("collectionRid") String collectionRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts getMongoDBCollection" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}/collections/{collectionName}") + Observable> getMongoDBCollection(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Path("collectionName") String collectionName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts createUpdateMongoCollection" }) - @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongo/databases/{databaseRid}/collections/{collectionRid}") - Observable> createUpdateMongoCollection(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Path("collectionRid") String collectionRid, @Query("api-version") String apiVersion, @Body MongoCollectionCreateUpdateParameters createUpdateMongoCollectionParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts createUpdateMongoDBCollection" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}/collections/{collectionName}") + Observable> createUpdateMongoDBCollection(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Path("collectionName") String collectionName, @Query("api-version") String apiVersion, @Body MongoDBCollectionCreateUpdateParameters createUpdateMongoDBCollectionParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts beginCreateUpdateMongoCollection" }) - @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongo/databases/{databaseRid}/collections/{collectionRid}") - Observable> beginCreateUpdateMongoCollection(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Path("collectionRid") String collectionRid, @Query("api-version") String apiVersion, @Body MongoCollectionCreateUpdateParameters createUpdateMongoCollectionParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts beginCreateUpdateMongoDBCollection" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}/collections/{collectionName}") + Observable> beginCreateUpdateMongoDBCollection(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Path("collectionName") String collectionName, @Query("api-version") String apiVersion, @Body MongoDBCollectionCreateUpdateParameters createUpdateMongoDBCollectionParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts deleteMongoCollection" }) - @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongo/databases/{databaseRid}/collections/{collectionRid}", method = "DELETE", hasBody = true) - Observable> deleteMongoCollection(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Path("collectionRid") String collectionRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts deleteMongoDBCollection" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}/collections/{collectionName}", method = "DELETE", hasBody = true) + Observable> deleteMongoDBCollection(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Path("collectionName") String collectionName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts beginDeleteMongoCollection" }) - @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongo/databases/{databaseRid}/collections/{collectionRid}", method = "DELETE", hasBody = true) - Observable> beginDeleteMongoCollection(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Path("collectionRid") String collectionRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts beginDeleteMongoDBCollection" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}/collections/{collectionName}", method = "DELETE", hasBody = true) + Observable> beginDeleteMongoDBCollection(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Path("collectionName") String collectionName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts listTables" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables") Observable> listTables(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts getTable" }) - @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables/{tableRid}") - Observable> getTable(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("tableRid") String tableRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables/{tableName}") + Observable> getTable(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("tableName") String tableName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts createUpdateTable" }) - @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables/{tableRid}") - Observable> createUpdateTable(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("tableRid") String tableRid, @Query("api-version") String apiVersion, @Body TableCreateUpdateParameters createUpdateTableParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables/{tableName}") + Observable> createUpdateTable(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("tableName") String tableName, @Query("api-version") String apiVersion, @Body TableCreateUpdateParameters createUpdateTableParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts beginCreateUpdateTable" }) - @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables/{tableRid}") - Observable> beginCreateUpdateTable(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("tableRid") String tableRid, @Query("api-version") String apiVersion, @Body TableCreateUpdateParameters createUpdateTableParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables/{tableName}") + Observable> beginCreateUpdateTable(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("tableName") String tableName, @Query("api-version") String apiVersion, @Body TableCreateUpdateParameters createUpdateTableParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts deleteTable" }) - @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables/{tableRid}", method = "DELETE", hasBody = true) - Observable> deleteTable(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("tableRid") String tableRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables/{tableName}", method = "DELETE", hasBody = true) + Observable> deleteTable(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("tableName") String tableName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts beginDeleteTable" }) - @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables/{tableRid}", method = "DELETE", hasBody = true) - Observable> beginDeleteTable(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("tableRid") String tableRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables/{tableName}", method = "DELETE", hasBody = true) + Observable> beginDeleteTable(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("tableName") String tableName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts listCassandraKeyspaces" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces") Observable> listCassandraKeyspaces(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts getCassandraKeyspace" }) - @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceRid}") - Observable> getCassandraKeyspace(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceRid") String keyspaceRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}") + Observable> getCassandraKeyspace(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceName") String keyspaceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts createUpdateCassandraKeyspace" }) - @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceRid}") - Observable> createUpdateCassandraKeyspace(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceRid") String keyspaceRid, @Query("api-version") String apiVersion, @Body CassandraKeyspaceCreateUpdateParameters createUpdateCassandraKeyspaceParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}") + Observable> createUpdateCassandraKeyspace(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceName") String keyspaceName, @Query("api-version") String apiVersion, @Body CassandraKeyspaceCreateUpdateParameters createUpdateCassandraKeyspaceParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts beginCreateUpdateCassandraKeyspace" }) - @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceRid}") - Observable> beginCreateUpdateCassandraKeyspace(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceRid") String keyspaceRid, @Query("api-version") String apiVersion, @Body CassandraKeyspaceCreateUpdateParameters createUpdateCassandraKeyspaceParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}") + Observable> beginCreateUpdateCassandraKeyspace(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceName") String keyspaceName, @Query("api-version") String apiVersion, @Body CassandraKeyspaceCreateUpdateParameters createUpdateCassandraKeyspaceParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts deleteCassandraKeyspace" }) - @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceRid}", method = "DELETE", hasBody = true) - Observable> deleteCassandraKeyspace(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceRid") String keyspaceRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}", method = "DELETE", hasBody = true) + Observable> deleteCassandraKeyspace(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceName") String keyspaceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts beginDeleteCassandraKeyspace" }) - @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceRid}", method = "DELETE", hasBody = true) - Observable> beginDeleteCassandraKeyspace(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceRid") String keyspaceRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}", method = "DELETE", hasBody = true) + Observable> beginDeleteCassandraKeyspace(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceName") String keyspaceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts listCassandraTables" }) - @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceRid}/tables") - Observable> listCassandraTables(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceRid") String keyspaceRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}/tables") + Observable> listCassandraTables(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceName") String keyspaceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts getCassandraTable" }) - @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceRid}/tables/{tableRid}") - Observable> getCassandraTable(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceRid") String keyspaceRid, @Path("tableRid") String tableRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}/tables/{tableName}") + Observable> getCassandraTable(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceName") String keyspaceName, @Path("tableName") String tableName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts createUpdateCassandraTable" }) - @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceRid}/tables/{tableRid}") - Observable> createUpdateCassandraTable(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceRid") String keyspaceRid, @Path("tableRid") String tableRid, @Query("api-version") String apiVersion, @Body CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}/tables/{tableName}") + Observable> createUpdateCassandraTable(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceName") String keyspaceName, @Path("tableName") String tableName, @Query("api-version") String apiVersion, @Body CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts beginCreateUpdateCassandraTable" }) - @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceRid}/tables/{tableRid}") - Observable> beginCreateUpdateCassandraTable(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceRid") String keyspaceRid, @Path("tableRid") String tableRid, @Query("api-version") String apiVersion, @Body CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}/tables/{tableName}") + Observable> beginCreateUpdateCassandraTable(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceName") String keyspaceName, @Path("tableName") String tableName, @Query("api-version") String apiVersion, @Body CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts deleteCassandraTable" }) - @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceRid}/tables/{tableRid}", method = "DELETE", hasBody = true) - Observable> deleteCassandraTable(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceRid") String keyspaceRid, @Path("tableRid") String tableRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}/tables/{tableName}", method = "DELETE", hasBody = true) + Observable> deleteCassandraTable(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceName") String keyspaceName, @Path("tableName") String tableName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts beginDeleteCassandraTable" }) - @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceRid}/tables/{tableRid}", method = "DELETE", hasBody = true) - Observable> beginDeleteCassandraTable(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceRid") String keyspaceRid, @Path("tableRid") String tableRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}/tables/{tableName}", method = "DELETE", hasBody = true) + Observable> beginDeleteCassandraTable(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceName") String keyspaceName, @Path("tableName") String tableName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts listGremlinDatabases" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases") Observable> listGremlinDatabases(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts getGremlinDatabase" }) - @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseRid}") - Observable> getGremlinDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}") + Observable> getGremlinDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts createUpdateGremlinDatabase" }) - @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseRid}") - Observable> createUpdateGremlinDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Query("api-version") String apiVersion, @Body GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}") + Observable> createUpdateGremlinDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Query("api-version") String apiVersion, @Body GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts beginCreateUpdateGremlinDatabase" }) - @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseRid}") - Observable> beginCreateUpdateGremlinDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Query("api-version") String apiVersion, @Body GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}") + Observable> beginCreateUpdateGremlinDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Query("api-version") String apiVersion, @Body GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts deleteGremlinDatabase" }) - @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseRid}", method = "DELETE", hasBody = true) - Observable> deleteGremlinDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}", method = "DELETE", hasBody = true) + Observable> deleteGremlinDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts beginDeleteGremlinDatabase" }) - @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseRid}", method = "DELETE", hasBody = true) - Observable> beginDeleteGremlinDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}", method = "DELETE", hasBody = true) + Observable> beginDeleteGremlinDatabase(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts listGremlinContainers" }) - @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseRid}/containers") - Observable> listGremlinContainers(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts listGremlinGraphs" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}/graphs") + Observable> listGremlinGraphs(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts getGremlinContainer" }) - @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseRid}/containers/{containerRid}") - Observable> getGremlinContainer(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Path("containerRid") String containerRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts getGremlinGraph" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}/graphs/{graphName}") + Observable> getGremlinGraph(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Path("graphName") String graphName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts createUpdateGremlinContainer" }) - @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseRid}/containers/{containerRid}") - Observable> createUpdateGremlinContainer(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Path("containerRid") String containerRid, @Query("api-version") String apiVersion, @Body ContainerCreateUpdateParameters createUpdateGremlinContainerParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts createUpdateGremlinGraph" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}/graphs/{graphName}") + Observable> createUpdateGremlinGraph(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Path("graphName") String graphName, @Query("api-version") String apiVersion, @Body GremlinGraphCreateUpdateParameters createUpdateGremlinGraphParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts beginCreateUpdateGremlinContainer" }) - @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseRid}/containers/{containerRid}") - Observable> beginCreateUpdateGremlinContainer(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Path("containerRid") String containerRid, @Query("api-version") String apiVersion, @Body ContainerCreateUpdateParameters createUpdateGremlinContainerParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts beginCreateUpdateGremlinGraph" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}/graphs/{graphName}") + Observable> beginCreateUpdateGremlinGraph(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Path("graphName") String graphName, @Query("api-version") String apiVersion, @Body GremlinGraphCreateUpdateParameters createUpdateGremlinGraphParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts deleteGremlinContainer" }) - @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseRid}/containers/{containerRid}", method = "DELETE", hasBody = true) - Observable> deleteGremlinContainer(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Path("containerRid") String containerRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts deleteGremlinGraph" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}/graphs/{graphName}", method = "DELETE", hasBody = true) + Observable> deleteGremlinGraph(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Path("graphName") String graphName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts beginDeleteGremlinContainer" }) - @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseRid}/containers/{containerRid}", method = "DELETE", hasBody = true) - Observable> beginDeleteGremlinContainer(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseRid") String databaseRid, @Path("containerRid") String containerRid, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2015_04_08.DatabaseAccounts beginDeleteGremlinGraph" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}/graphs/{graphName}", method = "DELETE", hasBody = true) + Observable> beginDeleteGremlinGraph(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("databaseName") String databaseName, @Path("graphName") String graphName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); } @@ -2721,45 +2722,45 @@ private ServiceResponse> listSqlDatabasesDelegate(Res } /** - * Gets the SQL databases under an existing Azure Cosmos DB database account with the provided id. + * Gets the SQL databases under an existing Azure Cosmos DB database account with the provided name. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the SqlDatabaseInner object if successful. */ - public SqlDatabaseInner getSqlDatabase(String resourceGroupName, String accountName, String databaseRid) { - return getSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid).toBlocking().single().body(); + public SqlDatabaseInner getSqlDatabase(String resourceGroupName, String accountName, String databaseName) { + return getSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName).toBlocking().single().body(); } /** - * Gets the SQL databases under an existing Azure Cosmos DB database account with the provided id. + * Gets the SQL databases under an existing Azure Cosmos DB database account with the provided name. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid), serviceCallback); + public ServiceFuture getSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName), serviceCallback); } /** - * Gets the SQL databases under an existing Azure Cosmos DB database account with the provided id. + * Gets the SQL databases under an existing Azure Cosmos DB database account with the provided name. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the SqlDatabaseInner object */ - public Observable getSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseRid) { - return getSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid).map(new Func1, SqlDatabaseInner>() { + public Observable getSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseName) { + return getSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName).map(new Func1, SqlDatabaseInner>() { @Override public SqlDatabaseInner call(ServiceResponse response) { return response.body(); @@ -2768,15 +2769,15 @@ public SqlDatabaseInner call(ServiceResponse response) { } /** - * Gets the SQL databases under an existing Azure Cosmos DB database account with the provided id. + * Gets the SQL databases under an existing Azure Cosmos DB database account with the provided name. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the SqlDatabaseInner object */ - public Observable> getSqlDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid) { + public Observable> getSqlDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -2786,13 +2787,13 @@ public Observable> getSqlDatabaseWithServiceRe if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getSqlDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.getSqlDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -2818,15 +2819,15 @@ private ServiceResponse getSqlDatabaseDelegate(Response createUpdateSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseRid, SqlDatabaseCreateUpdateParameters createUpdateSqlDatabaseParameters, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(createUpdateSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, createUpdateSqlDatabaseParameters), serviceCallback); + public ServiceFuture createUpdateSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseName, SqlDatabaseCreateUpdateParameters createUpdateSqlDatabaseParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createUpdateSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName, createUpdateSqlDatabaseParameters), serviceCallback); } /** @@ -2849,13 +2850,13 @@ public ServiceFuture createUpdateSqlDatabaseAsync(String resou * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param createUpdateSqlDatabaseParameters The parameters to provide for the current SQL database. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable createUpdateSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseRid, SqlDatabaseCreateUpdateParameters createUpdateSqlDatabaseParameters) { - return createUpdateSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, createUpdateSqlDatabaseParameters).map(new Func1, SqlDatabaseInner>() { + public Observable createUpdateSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseName, SqlDatabaseCreateUpdateParameters createUpdateSqlDatabaseParameters) { + return createUpdateSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName, createUpdateSqlDatabaseParameters).map(new Func1, SqlDatabaseInner>() { @Override public SqlDatabaseInner call(ServiceResponse response) { return response.body(); @@ -2868,12 +2869,12 @@ public SqlDatabaseInner call(ServiceResponse response) { * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param createUpdateSqlDatabaseParameters The parameters to provide for the current SQL database. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable> createUpdateSqlDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid, SqlDatabaseCreateUpdateParameters createUpdateSqlDatabaseParameters) { + public Observable> createUpdateSqlDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName, SqlDatabaseCreateUpdateParameters createUpdateSqlDatabaseParameters) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -2883,8 +2884,8 @@ public Observable> createUpdateSqlDatabaseWith if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); @@ -2893,7 +2894,7 @@ public Observable> createUpdateSqlDatabaseWith throw new IllegalArgumentException("Parameter createUpdateSqlDatabaseParameters is required and cannot be null."); } Validator.validate(createUpdateSqlDatabaseParameters); - Observable> observable = service.createUpdateSqlDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, this.client.apiVersion(), createUpdateSqlDatabaseParameters, this.client.acceptLanguage(), this.client.userAgent()); + Observable> observable = service.createUpdateSqlDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, this.client.apiVersion(), createUpdateSqlDatabaseParameters, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -2902,15 +2903,15 @@ public Observable> createUpdateSqlDatabaseWith * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param createUpdateSqlDatabaseParameters The parameters to provide for the current SQL database. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the SqlDatabaseInner object if successful. */ - public SqlDatabaseInner beginCreateUpdateSqlDatabase(String resourceGroupName, String accountName, String databaseRid, SqlDatabaseCreateUpdateParameters createUpdateSqlDatabaseParameters) { - return beginCreateUpdateSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, createUpdateSqlDatabaseParameters).toBlocking().single().body(); + public SqlDatabaseInner beginCreateUpdateSqlDatabase(String resourceGroupName, String accountName, String databaseName, SqlDatabaseCreateUpdateParameters createUpdateSqlDatabaseParameters) { + return beginCreateUpdateSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName, createUpdateSqlDatabaseParameters).toBlocking().single().body(); } /** @@ -2918,14 +2919,14 @@ public SqlDatabaseInner beginCreateUpdateSqlDatabase(String resourceGroupName, S * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param createUpdateSqlDatabaseParameters The parameters to provide for the current SQL database. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginCreateUpdateSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseRid, SqlDatabaseCreateUpdateParameters createUpdateSqlDatabaseParameters, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginCreateUpdateSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, createUpdateSqlDatabaseParameters), serviceCallback); + public ServiceFuture beginCreateUpdateSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseName, SqlDatabaseCreateUpdateParameters createUpdateSqlDatabaseParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateUpdateSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName, createUpdateSqlDatabaseParameters), serviceCallback); } /** @@ -2933,13 +2934,13 @@ public ServiceFuture beginCreateUpdateSqlDatabaseAsync(String * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param createUpdateSqlDatabaseParameters The parameters to provide for the current SQL database. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the SqlDatabaseInner object */ - public Observable beginCreateUpdateSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseRid, SqlDatabaseCreateUpdateParameters createUpdateSqlDatabaseParameters) { - return beginCreateUpdateSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, createUpdateSqlDatabaseParameters).map(new Func1, SqlDatabaseInner>() { + public Observable beginCreateUpdateSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseName, SqlDatabaseCreateUpdateParameters createUpdateSqlDatabaseParameters) { + return beginCreateUpdateSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName, createUpdateSqlDatabaseParameters).map(new Func1, SqlDatabaseInner>() { @Override public SqlDatabaseInner call(ServiceResponse response) { return response.body(); @@ -2952,12 +2953,12 @@ public SqlDatabaseInner call(ServiceResponse response) { * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param createUpdateSqlDatabaseParameters The parameters to provide for the current SQL database. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the SqlDatabaseInner object */ - public Observable> beginCreateUpdateSqlDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid, SqlDatabaseCreateUpdateParameters createUpdateSqlDatabaseParameters) { + public Observable> beginCreateUpdateSqlDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName, SqlDatabaseCreateUpdateParameters createUpdateSqlDatabaseParameters) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -2967,8 +2968,8 @@ public Observable> beginCreateUpdateSqlDatabas if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); @@ -2977,7 +2978,7 @@ public Observable> beginCreateUpdateSqlDatabas throw new IllegalArgumentException("Parameter createUpdateSqlDatabaseParameters is required and cannot be null."); } Validator.validate(createUpdateSqlDatabaseParameters); - return service.beginCreateUpdateSqlDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, this.client.apiVersion(), createUpdateSqlDatabaseParameters, this.client.acceptLanguage(), this.client.userAgent()) + return service.beginCreateUpdateSqlDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, this.client.apiVersion(), createUpdateSqlDatabaseParameters, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -3004,13 +3005,13 @@ private ServiceResponse beginCreateUpdateSqlDatabaseDelegate(R * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void deleteSqlDatabase(String resourceGroupName, String accountName, String databaseRid) { - deleteSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid).toBlocking().last().body(); + public void deleteSqlDatabase(String resourceGroupName, String accountName, String databaseName) { + deleteSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName).toBlocking().last().body(); } /** @@ -3018,13 +3019,13 @@ public void deleteSqlDatabase(String resourceGroupName, String accountName, Stri * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deleteSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deleteSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid), serviceCallback); + public ServiceFuture deleteSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName), serviceCallback); } /** @@ -3032,12 +3033,12 @@ public ServiceFuture deleteSqlDatabaseAsync(String resourceGroupName, Stri * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable deleteSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseRid) { - return deleteSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid).map(new Func1, Void>() { + public Observable deleteSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseName) { + return deleteSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -3050,11 +3051,11 @@ public Void call(ServiceResponse response) { * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable> deleteSqlDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid) { + public Observable> deleteSqlDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -3064,13 +3065,13 @@ public Observable> deleteSqlDatabaseWithServiceResponseAsy if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Observable> observable = service.deleteSqlDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + Observable> observable = service.deleteSqlDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -3079,13 +3080,13 @@ public Observable> deleteSqlDatabaseWithServiceResponseAsy * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void beginDeleteSqlDatabase(String resourceGroupName, String accountName, String databaseRid) { - beginDeleteSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid).toBlocking().single().body(); + public void beginDeleteSqlDatabase(String resourceGroupName, String accountName, String databaseName) { + beginDeleteSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName).toBlocking().single().body(); } /** @@ -3093,13 +3094,13 @@ public void beginDeleteSqlDatabase(String resourceGroupName, String accountName, * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginDeleteSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginDeleteSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid), serviceCallback); + public ServiceFuture beginDeleteSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName), serviceCallback); } /** @@ -3107,12 +3108,12 @@ public ServiceFuture beginDeleteSqlDatabaseAsync(String resourceGroupName, * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable beginDeleteSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseRid) { - return beginDeleteSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid).map(new Func1, Void>() { + public Observable beginDeleteSqlDatabaseAsync(String resourceGroupName, String accountName, String databaseName) { + return beginDeleteSqlDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -3125,11 +3126,11 @@ public Void call(ServiceResponse response) { * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable> beginDeleteSqlDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid) { + public Observable> beginDeleteSqlDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -3139,13 +3140,13 @@ public Observable> beginDeleteSqlDatabaseWithServiceRespon if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.beginDeleteSqlDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.beginDeleteSqlDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -3172,14 +3173,14 @@ private ServiceResponse beginDeleteSqlDatabaseDelegate(Response listSqlContainers(String resourceGroupName, String accountName, String databaseRid) { - return listSqlContainersWithServiceResponseAsync(resourceGroupName, accountName, databaseRid).toBlocking().single().body(); + public List listSqlContainers(String resourceGroupName, String accountName, String databaseName) { + return listSqlContainersWithServiceResponseAsync(resourceGroupName, accountName, databaseName).toBlocking().single().body(); } /** @@ -3187,13 +3188,13 @@ public List listSqlContainers(String resourceGroupName, String a * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listSqlContainersAsync(String resourceGroupName, String accountName, String databaseRid, final ServiceCallback> serviceCallback) { - return ServiceFuture.fromResponse(listSqlContainersWithServiceResponseAsync(resourceGroupName, accountName, databaseRid), serviceCallback); + public ServiceFuture> listSqlContainersAsync(String resourceGroupName, String accountName, String databaseName, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listSqlContainersWithServiceResponseAsync(resourceGroupName, accountName, databaseName), serviceCallback); } /** @@ -3201,14 +3202,14 @@ public ServiceFuture> listSqlContainersAsync(String resourc * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the List<ContainerInner> object + * @return the observable to the List<SqlContainerInner> object */ - public Observable> listSqlContainersAsync(String resourceGroupName, String accountName, String databaseRid) { - return listSqlContainersWithServiceResponseAsync(resourceGroupName, accountName, databaseRid).map(new Func1>, List>() { + public Observable> listSqlContainersAsync(String resourceGroupName, String accountName, String databaseName) { + return listSqlContainersWithServiceResponseAsync(resourceGroupName, accountName, databaseName).map(new Func1>, List>() { @Override - public List call(ServiceResponse> response) { + public List call(ServiceResponse> response) { return response.body(); } }); @@ -3219,11 +3220,11 @@ public List call(ServiceResponse> response) * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the List<ContainerInner> object + * @return the observable to the List<SqlContainerInner> object */ - public Observable>> listSqlContainersWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid) { + public Observable>> listSqlContainersWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -3233,23 +3234,23 @@ public Observable>> listSqlContainersWithSe if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listSqlContainers(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + return service.listSqlContainers(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable>> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse> result = listSqlContainersDelegate(response); - List items = null; + ServiceResponse> result = listSqlContainersDelegate(response); + List items = null; if (result.body() != null) { items = result.body().items(); } - ServiceResponse> clientResponse = new ServiceResponse>(items, result.response()); + ServiceResponse> clientResponse = new ServiceResponse>(items, result.response()); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -3258,9 +3259,9 @@ public Observable>> call(Response> listSqlContainersDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listSqlContainersDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -3270,15 +3271,15 @@ private ServiceResponse> listSqlContainersDelegate(Resp * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param containerName Cosmos DB container name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the ContainerInner object if successful. + * @return the SqlContainerInner object if successful. */ - public ContainerInner getSqlContainer(String resourceGroupName, String accountName, String databaseRid, String containerRid) { - return getSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid).toBlocking().single().body(); + public SqlContainerInner getSqlContainer(String resourceGroupName, String accountName, String databaseName, String containerName) { + return getSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseName, containerName).toBlocking().single().body(); } /** @@ -3286,14 +3287,14 @@ public ContainerInner getSqlContainer(String resourceGroupName, String accountNa * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param containerName Cosmos DB container name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getSqlContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid), serviceCallback); + public ServiceFuture getSqlContainerAsync(String resourceGroupName, String accountName, String databaseName, String containerName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseName, containerName), serviceCallback); } /** @@ -3301,15 +3302,15 @@ public ServiceFuture getSqlContainerAsync(String resourceGroupNa * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param containerName Cosmos DB container name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ContainerInner object + * @return the observable to the SqlContainerInner object */ - public Observable getSqlContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid) { - return getSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid).map(new Func1, ContainerInner>() { + public Observable getSqlContainerAsync(String resourceGroupName, String accountName, String databaseName, String containerName) { + return getSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseName, containerName).map(new Func1, SqlContainerInner>() { @Override - public ContainerInner call(ServiceResponse response) { + public SqlContainerInner call(ServiceResponse response) { return response.body(); } }); @@ -3320,12 +3321,12 @@ public ContainerInner call(ServiceResponse response) { * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param containerName Cosmos DB container name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ContainerInner object + * @return the observable to the SqlContainerInner object */ - public Observable> getSqlContainerWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid) { + public Observable> getSqlContainerWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName, String containerName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -3335,21 +3336,21 @@ public Observable> getSqlContainerWithServiceRes if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } - if (containerRid == null) { - throw new IllegalArgumentException("Parameter containerRid is required and cannot be null."); + if (containerName == null) { + throw new IllegalArgumentException("Parameter containerName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getSqlContainer(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, containerRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getSqlContainer(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, containerName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getSqlContainerDelegate(response); + ServiceResponse clientResponse = getSqlContainerDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -3358,9 +3359,9 @@ public Observable> call(Response r }); } - private ServiceResponse getSqlContainerDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getSqlContainerDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -3370,16 +3371,16 @@ private ServiceResponse getSqlContainerDelegate(Response createUpdateSqlContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid, ContainerCreateUpdateParameters createUpdateSqlContainerParameters, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(createUpdateSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid, createUpdateSqlContainerParameters), serviceCallback); + public ServiceFuture createUpdateSqlContainerAsync(String resourceGroupName, String accountName, String databaseName, String containerName, SqlContainerCreateUpdateParameters createUpdateSqlContainerParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createUpdateSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseName, containerName, createUpdateSqlContainerParameters), serviceCallback); } /** @@ -3403,16 +3404,16 @@ public ServiceFuture createUpdateSqlContainerAsync(String resour * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param containerName Cosmos DB container name. * @param createUpdateSqlContainerParameters The parameters to provide for the current SQL container. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable createUpdateSqlContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid, ContainerCreateUpdateParameters createUpdateSqlContainerParameters) { - return createUpdateSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid, createUpdateSqlContainerParameters).map(new Func1, ContainerInner>() { + public Observable createUpdateSqlContainerAsync(String resourceGroupName, String accountName, String databaseName, String containerName, SqlContainerCreateUpdateParameters createUpdateSqlContainerParameters) { + return createUpdateSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseName, containerName, createUpdateSqlContainerParameters).map(new Func1, SqlContainerInner>() { @Override - public ContainerInner call(ServiceResponse response) { + public SqlContainerInner call(ServiceResponse response) { return response.body(); } }); @@ -3423,13 +3424,13 @@ public ContainerInner call(ServiceResponse response) { * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param containerName Cosmos DB container name. * @param createUpdateSqlContainerParameters The parameters to provide for the current SQL container. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable> createUpdateSqlContainerWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid, ContainerCreateUpdateParameters createUpdateSqlContainerParameters) { + public Observable> createUpdateSqlContainerWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName, String containerName, SqlContainerCreateUpdateParameters createUpdateSqlContainerParameters) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -3439,11 +3440,11 @@ public Observable> createUpdateSqlContainerWithS if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } - if (containerRid == null) { - throw new IllegalArgumentException("Parameter containerRid is required and cannot be null."); + if (containerName == null) { + throw new IllegalArgumentException("Parameter containerName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); @@ -3452,8 +3453,8 @@ public Observable> createUpdateSqlContainerWithS throw new IllegalArgumentException("Parameter createUpdateSqlContainerParameters is required and cannot be null."); } Validator.validate(createUpdateSqlContainerParameters); - Observable> observable = service.createUpdateSqlContainer(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, containerRid, this.client.apiVersion(), createUpdateSqlContainerParameters, this.client.acceptLanguage(), this.client.userAgent()); - return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + Observable> observable = service.createUpdateSqlContainer(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, containerName, this.client.apiVersion(), createUpdateSqlContainerParameters, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } /** @@ -3461,16 +3462,16 @@ public Observable> createUpdateSqlContainerWithS * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param containerName Cosmos DB container name. * @param createUpdateSqlContainerParameters The parameters to provide for the current SQL container. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the ContainerInner object if successful. + * @return the SqlContainerInner object if successful. */ - public ContainerInner beginCreateUpdateSqlContainer(String resourceGroupName, String accountName, String databaseRid, String containerRid, ContainerCreateUpdateParameters createUpdateSqlContainerParameters) { - return beginCreateUpdateSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid, createUpdateSqlContainerParameters).toBlocking().single().body(); + public SqlContainerInner beginCreateUpdateSqlContainer(String resourceGroupName, String accountName, String databaseName, String containerName, SqlContainerCreateUpdateParameters createUpdateSqlContainerParameters) { + return beginCreateUpdateSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseName, containerName, createUpdateSqlContainerParameters).toBlocking().single().body(); } /** @@ -3478,15 +3479,15 @@ public ContainerInner beginCreateUpdateSqlContainer(String resourceGroupName, St * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param containerName Cosmos DB container name. * @param createUpdateSqlContainerParameters The parameters to provide for the current SQL container. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginCreateUpdateSqlContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid, ContainerCreateUpdateParameters createUpdateSqlContainerParameters, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginCreateUpdateSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid, createUpdateSqlContainerParameters), serviceCallback); + public ServiceFuture beginCreateUpdateSqlContainerAsync(String resourceGroupName, String accountName, String databaseName, String containerName, SqlContainerCreateUpdateParameters createUpdateSqlContainerParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateUpdateSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseName, containerName, createUpdateSqlContainerParameters), serviceCallback); } /** @@ -3494,16 +3495,16 @@ public ServiceFuture beginCreateUpdateSqlContainerAsync(String r * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param containerName Cosmos DB container name. * @param createUpdateSqlContainerParameters The parameters to provide for the current SQL container. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ContainerInner object + * @return the observable to the SqlContainerInner object */ - public Observable beginCreateUpdateSqlContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid, ContainerCreateUpdateParameters createUpdateSqlContainerParameters) { - return beginCreateUpdateSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid, createUpdateSqlContainerParameters).map(new Func1, ContainerInner>() { + public Observable beginCreateUpdateSqlContainerAsync(String resourceGroupName, String accountName, String databaseName, String containerName, SqlContainerCreateUpdateParameters createUpdateSqlContainerParameters) { + return beginCreateUpdateSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseName, containerName, createUpdateSqlContainerParameters).map(new Func1, SqlContainerInner>() { @Override - public ContainerInner call(ServiceResponse response) { + public SqlContainerInner call(ServiceResponse response) { return response.body(); } }); @@ -3514,13 +3515,13 @@ public ContainerInner call(ServiceResponse response) { * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param containerName Cosmos DB container name. * @param createUpdateSqlContainerParameters The parameters to provide for the current SQL container. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ContainerInner object + * @return the observable to the SqlContainerInner object */ - public Observable> beginCreateUpdateSqlContainerWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid, ContainerCreateUpdateParameters createUpdateSqlContainerParameters) { + public Observable> beginCreateUpdateSqlContainerWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName, String containerName, SqlContainerCreateUpdateParameters createUpdateSqlContainerParameters) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -3530,11 +3531,11 @@ public Observable> beginCreateUpdateSqlContainer if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } - if (containerRid == null) { - throw new IllegalArgumentException("Parameter containerRid is required and cannot be null."); + if (containerName == null) { + throw new IllegalArgumentException("Parameter containerName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); @@ -3543,12 +3544,12 @@ public Observable> beginCreateUpdateSqlContainer throw new IllegalArgumentException("Parameter createUpdateSqlContainerParameters is required and cannot be null."); } Validator.validate(createUpdateSqlContainerParameters); - return service.beginCreateUpdateSqlContainer(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, containerRid, this.client.apiVersion(), createUpdateSqlContainerParameters, this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.beginCreateUpdateSqlContainer(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, containerName, this.client.apiVersion(), createUpdateSqlContainerParameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = beginCreateUpdateSqlContainerDelegate(response); + ServiceResponse clientResponse = beginCreateUpdateSqlContainerDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -3557,9 +3558,9 @@ public Observable> call(Response r }); } - private ServiceResponse beginCreateUpdateSqlContainerDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse beginCreateUpdateSqlContainerDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .register(202, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); @@ -3570,14 +3571,14 @@ private ServiceResponse beginCreateUpdateSqlContainerDelegate(Re * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param containerName Cosmos DB container name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void deleteSqlContainer(String resourceGroupName, String accountName, String databaseRid, String containerRid) { - deleteSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid).toBlocking().last().body(); + public void deleteSqlContainer(String resourceGroupName, String accountName, String databaseName, String containerName) { + deleteSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseName, containerName).toBlocking().last().body(); } /** @@ -3585,14 +3586,14 @@ public void deleteSqlContainer(String resourceGroupName, String accountName, Str * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param containerName Cosmos DB container name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deleteSqlContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deleteSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid), serviceCallback); + public ServiceFuture deleteSqlContainerAsync(String resourceGroupName, String accountName, String databaseName, String containerName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseName, containerName), serviceCallback); } /** @@ -3600,13 +3601,13 @@ public ServiceFuture deleteSqlContainerAsync(String resourceGroupName, Str * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param containerName Cosmos DB container name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable deleteSqlContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid) { - return deleteSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid).map(new Func1, Void>() { + public Observable deleteSqlContainerAsync(String resourceGroupName, String accountName, String databaseName, String containerName) { + return deleteSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseName, containerName).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -3619,12 +3620,12 @@ public Void call(ServiceResponse response) { * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param containerName Cosmos DB container name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable> deleteSqlContainerWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid) { + public Observable> deleteSqlContainerWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName, String containerName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -3634,16 +3635,16 @@ public Observable> deleteSqlContainerWithServiceResponseAs if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } - if (containerRid == null) { - throw new IllegalArgumentException("Parameter containerRid is required and cannot be null."); + if (containerName == null) { + throw new IllegalArgumentException("Parameter containerName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Observable> observable = service.deleteSqlContainer(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, containerRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + Observable> observable = service.deleteSqlContainer(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, containerName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -3652,14 +3653,14 @@ public Observable> deleteSqlContainerWithServiceResponseAs * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param containerName Cosmos DB container name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void beginDeleteSqlContainer(String resourceGroupName, String accountName, String databaseRid, String containerRid) { - beginDeleteSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid).toBlocking().single().body(); + public void beginDeleteSqlContainer(String resourceGroupName, String accountName, String databaseName, String containerName) { + beginDeleteSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseName, containerName).toBlocking().single().body(); } /** @@ -3667,14 +3668,14 @@ public void beginDeleteSqlContainer(String resourceGroupName, String accountName * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param containerName Cosmos DB container name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginDeleteSqlContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginDeleteSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid), serviceCallback); + public ServiceFuture beginDeleteSqlContainerAsync(String resourceGroupName, String accountName, String databaseName, String containerName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseName, containerName), serviceCallback); } /** @@ -3682,13 +3683,13 @@ public ServiceFuture beginDeleteSqlContainerAsync(String resourceGroupName * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param containerName Cosmos DB container name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable beginDeleteSqlContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid) { - return beginDeleteSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid).map(new Func1, Void>() { + public Observable beginDeleteSqlContainerAsync(String resourceGroupName, String accountName, String databaseName, String containerName) { + return beginDeleteSqlContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseName, containerName).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -3701,12 +3702,12 @@ public Void call(ServiceResponse response) { * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param containerName Cosmos DB container name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable> beginDeleteSqlContainerWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid) { + public Observable> beginDeleteSqlContainerWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName, String containerName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -3716,16 +3717,16 @@ public Observable> beginDeleteSqlContainerWithServiceRespo if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } - if (containerRid == null) { - throw new IllegalArgumentException("Parameter containerRid is required and cannot be null."); + if (containerName == null) { + throw new IllegalArgumentException("Parameter containerName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.beginDeleteSqlContainer(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, containerRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.beginDeleteSqlContainer(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, containerName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -3748,21 +3749,21 @@ private ServiceResponse beginDeleteSqlContainerDelegate(Response listMongoDatabases(String resourceGroupName, String accountName) { - return listMongoDatabasesWithServiceResponseAsync(resourceGroupName, accountName).toBlocking().single().body(); + public List listMongoDBDatabases(String resourceGroupName, String accountName) { + return listMongoDBDatabasesWithServiceResponseAsync(resourceGroupName, accountName).toBlocking().single().body(); } /** - * Lists the Mongo databases under an existing Azure Cosmos DB database account. + * Lists the MongoDB databases under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. @@ -3770,36 +3771,36 @@ public List listMongoDatabases(String resourceGroupName, Str * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listMongoDatabasesAsync(String resourceGroupName, String accountName, final ServiceCallback> serviceCallback) { - return ServiceFuture.fromResponse(listMongoDatabasesWithServiceResponseAsync(resourceGroupName, accountName), serviceCallback); + public ServiceFuture> listMongoDBDatabasesAsync(String resourceGroupName, String accountName, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listMongoDBDatabasesWithServiceResponseAsync(resourceGroupName, accountName), serviceCallback); } /** - * Lists the Mongo databases under an existing Azure Cosmos DB database account. + * Lists the MongoDB databases under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the List<MongoDatabaseInner> object + * @return the observable to the List<MongoDBDatabaseInner> object */ - public Observable> listMongoDatabasesAsync(String resourceGroupName, String accountName) { - return listMongoDatabasesWithServiceResponseAsync(resourceGroupName, accountName).map(new Func1>, List>() { + public Observable> listMongoDBDatabasesAsync(String resourceGroupName, String accountName) { + return listMongoDBDatabasesWithServiceResponseAsync(resourceGroupName, accountName).map(new Func1>, List>() { @Override - public List call(ServiceResponse> response) { + public List call(ServiceResponse> response) { return response.body(); } }); } /** - * Lists the Mongo databases under an existing Azure Cosmos DB database account. + * Lists the MongoDB databases under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the List<MongoDatabaseInner> object + * @return the observable to the List<MongoDBDatabaseInner> object */ - public Observable>> listMongoDatabasesWithServiceResponseAsync(String resourceGroupName, String accountName) { + public Observable>> listMongoDBDatabasesWithServiceResponseAsync(String resourceGroupName, String accountName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -3812,17 +3813,17 @@ public Observable>> listMongoDatabasesW if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listMongoDatabases(this.client.subscriptionId(), resourceGroupName, accountName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + return service.listMongoDBDatabases(this.client.subscriptionId(), resourceGroupName, accountName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable>> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse> result = listMongoDatabasesDelegate(response); - List items = null; + ServiceResponse> result = listMongoDBDatabasesDelegate(response); + List items = null; if (result.body() != null) { items = result.body().items(); } - ServiceResponse> clientResponse = new ServiceResponse>(items, result.response()); + ServiceResponse> clientResponse = new ServiceResponse>(items, result.response()); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -3831,70 +3832,70 @@ public Observable>> call(Response> listMongoDatabasesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listMongoDBDatabasesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } /** - * Gets the Mongo databases under an existing Azure Cosmos DB database account with the provided id. + * Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the MongoDatabaseInner object if successful. + * @return the MongoDBDatabaseInner object if successful. */ - public MongoDatabaseInner getMongoDatabase(String resourceGroupName, String accountName, String databaseRid) { - return getMongoDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid).toBlocking().single().body(); + public MongoDBDatabaseInner getMongoDBDatabase(String resourceGroupName, String accountName, String databaseName) { + return getMongoDBDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName).toBlocking().single().body(); } /** - * Gets the Mongo databases under an existing Azure Cosmos DB database account with the provided id. + * Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getMongoDatabaseAsync(String resourceGroupName, String accountName, String databaseRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getMongoDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid), serviceCallback); + public ServiceFuture getMongoDBDatabaseAsync(String resourceGroupName, String accountName, String databaseName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getMongoDBDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName), serviceCallback); } /** - * Gets the Mongo databases under an existing Azure Cosmos DB database account with the provided id. + * Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the MongoDatabaseInner object + * @return the observable to the MongoDBDatabaseInner object */ - public Observable getMongoDatabaseAsync(String resourceGroupName, String accountName, String databaseRid) { - return getMongoDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid).map(new Func1, MongoDatabaseInner>() { + public Observable getMongoDBDatabaseAsync(String resourceGroupName, String accountName, String databaseName) { + return getMongoDBDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName).map(new Func1, MongoDBDatabaseInner>() { @Override - public MongoDatabaseInner call(ServiceResponse response) { + public MongoDBDatabaseInner call(ServiceResponse response) { return response.body(); } }); } /** - * Gets the Mongo databases under an existing Azure Cosmos DB database account with the provided id. + * Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the MongoDatabaseInner object + * @return the observable to the MongoDBDatabaseInner object */ - public Observable> getMongoDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid) { + public Observable> getMongoDBDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -3904,18 +3905,18 @@ public Observable> getMongoDatabaseWithServi if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getMongoDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getMongoDBDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getMongoDatabaseDelegate(response); + ServiceResponse clientResponse = getMongoDBDatabaseDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -3924,74 +3925,74 @@ public Observable> call(Response getMongoDatabaseDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getMongoDBDatabaseDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } /** - * Create or updates Azure Cosmos DB Mongo database. + * Create or updates Azure Cosmos DB MongoDB database. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param createUpdateMongoDatabaseParameters The parameters to provide for the current Mongo database. + * @param databaseName Cosmos DB database name. + * @param createUpdateMongoDBDatabaseParameters The parameters to provide for the current MongoDB database. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the MongoDatabaseInner object if successful. + * @return the MongoDBDatabaseInner object if successful. */ - public MongoDatabaseInner createUpdateMongoDatabase(String resourceGroupName, String accountName, String databaseRid, MongoDatabaseCreateUpdateParameters createUpdateMongoDatabaseParameters) { - return createUpdateMongoDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, createUpdateMongoDatabaseParameters).toBlocking().last().body(); + public MongoDBDatabaseInner createUpdateMongoDBDatabase(String resourceGroupName, String accountName, String databaseName, MongoDBDatabaseCreateUpdateParameters createUpdateMongoDBDatabaseParameters) { + return createUpdateMongoDBDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName, createUpdateMongoDBDatabaseParameters).toBlocking().last().body(); } /** - * Create or updates Azure Cosmos DB Mongo database. + * Create or updates Azure Cosmos DB MongoDB database. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param createUpdateMongoDatabaseParameters The parameters to provide for the current Mongo database. + * @param databaseName Cosmos DB database name. + * @param createUpdateMongoDBDatabaseParameters The parameters to provide for the current MongoDB database. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture createUpdateMongoDatabaseAsync(String resourceGroupName, String accountName, String databaseRid, MongoDatabaseCreateUpdateParameters createUpdateMongoDatabaseParameters, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(createUpdateMongoDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, createUpdateMongoDatabaseParameters), serviceCallback); + public ServiceFuture createUpdateMongoDBDatabaseAsync(String resourceGroupName, String accountName, String databaseName, MongoDBDatabaseCreateUpdateParameters createUpdateMongoDBDatabaseParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createUpdateMongoDBDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName, createUpdateMongoDBDatabaseParameters), serviceCallback); } /** - * Create or updates Azure Cosmos DB Mongo database. + * Create or updates Azure Cosmos DB MongoDB database. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param createUpdateMongoDatabaseParameters The parameters to provide for the current Mongo database. + * @param databaseName Cosmos DB database name. + * @param createUpdateMongoDBDatabaseParameters The parameters to provide for the current MongoDB database. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable createUpdateMongoDatabaseAsync(String resourceGroupName, String accountName, String databaseRid, MongoDatabaseCreateUpdateParameters createUpdateMongoDatabaseParameters) { - return createUpdateMongoDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, createUpdateMongoDatabaseParameters).map(new Func1, MongoDatabaseInner>() { + public Observable createUpdateMongoDBDatabaseAsync(String resourceGroupName, String accountName, String databaseName, MongoDBDatabaseCreateUpdateParameters createUpdateMongoDBDatabaseParameters) { + return createUpdateMongoDBDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName, createUpdateMongoDBDatabaseParameters).map(new Func1, MongoDBDatabaseInner>() { @Override - public MongoDatabaseInner call(ServiceResponse response) { + public MongoDBDatabaseInner call(ServiceResponse response) { return response.body(); } }); } /** - * Create or updates Azure Cosmos DB Mongo database. + * Create or updates Azure Cosmos DB MongoDB database. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param createUpdateMongoDatabaseParameters The parameters to provide for the current Mongo database. + * @param databaseName Cosmos DB database name. + * @param createUpdateMongoDBDatabaseParameters The parameters to provide for the current MongoDB database. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable> createUpdateMongoDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid, MongoDatabaseCreateUpdateParameters createUpdateMongoDatabaseParameters) { + public Observable> createUpdateMongoDBDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName, MongoDBDatabaseCreateUpdateParameters createUpdateMongoDBDatabaseParameters) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -4001,81 +4002,81 @@ public Observable> createUpdateMongoDatabase if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - if (createUpdateMongoDatabaseParameters == null) { - throw new IllegalArgumentException("Parameter createUpdateMongoDatabaseParameters is required and cannot be null."); + if (createUpdateMongoDBDatabaseParameters == null) { + throw new IllegalArgumentException("Parameter createUpdateMongoDBDatabaseParameters is required and cannot be null."); } - Validator.validate(createUpdateMongoDatabaseParameters); - Observable> observable = service.createUpdateMongoDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, this.client.apiVersion(), createUpdateMongoDatabaseParameters, this.client.acceptLanguage(), this.client.userAgent()); - return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + Validator.validate(createUpdateMongoDBDatabaseParameters); + Observable> observable = service.createUpdateMongoDBDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, this.client.apiVersion(), createUpdateMongoDBDatabaseParameters, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } /** - * Create or updates Azure Cosmos DB Mongo database. + * Create or updates Azure Cosmos DB MongoDB database. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param createUpdateMongoDatabaseParameters The parameters to provide for the current Mongo database. + * @param databaseName Cosmos DB database name. + * @param createUpdateMongoDBDatabaseParameters The parameters to provide for the current MongoDB database. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the MongoDatabaseInner object if successful. + * @return the MongoDBDatabaseInner object if successful. */ - public MongoDatabaseInner beginCreateUpdateMongoDatabase(String resourceGroupName, String accountName, String databaseRid, MongoDatabaseCreateUpdateParameters createUpdateMongoDatabaseParameters) { - return beginCreateUpdateMongoDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, createUpdateMongoDatabaseParameters).toBlocking().single().body(); + public MongoDBDatabaseInner beginCreateUpdateMongoDBDatabase(String resourceGroupName, String accountName, String databaseName, MongoDBDatabaseCreateUpdateParameters createUpdateMongoDBDatabaseParameters) { + return beginCreateUpdateMongoDBDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName, createUpdateMongoDBDatabaseParameters).toBlocking().single().body(); } /** - * Create or updates Azure Cosmos DB Mongo database. + * Create or updates Azure Cosmos DB MongoDB database. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param createUpdateMongoDatabaseParameters The parameters to provide for the current Mongo database. + * @param databaseName Cosmos DB database name. + * @param createUpdateMongoDBDatabaseParameters The parameters to provide for the current MongoDB database. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginCreateUpdateMongoDatabaseAsync(String resourceGroupName, String accountName, String databaseRid, MongoDatabaseCreateUpdateParameters createUpdateMongoDatabaseParameters, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginCreateUpdateMongoDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, createUpdateMongoDatabaseParameters), serviceCallback); + public ServiceFuture beginCreateUpdateMongoDBDatabaseAsync(String resourceGroupName, String accountName, String databaseName, MongoDBDatabaseCreateUpdateParameters createUpdateMongoDBDatabaseParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateUpdateMongoDBDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName, createUpdateMongoDBDatabaseParameters), serviceCallback); } /** - * Create or updates Azure Cosmos DB Mongo database. + * Create or updates Azure Cosmos DB MongoDB database. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param createUpdateMongoDatabaseParameters The parameters to provide for the current Mongo database. + * @param databaseName Cosmos DB database name. + * @param createUpdateMongoDBDatabaseParameters The parameters to provide for the current MongoDB database. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the MongoDatabaseInner object + * @return the observable to the MongoDBDatabaseInner object */ - public Observable beginCreateUpdateMongoDatabaseAsync(String resourceGroupName, String accountName, String databaseRid, MongoDatabaseCreateUpdateParameters createUpdateMongoDatabaseParameters) { - return beginCreateUpdateMongoDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, createUpdateMongoDatabaseParameters).map(new Func1, MongoDatabaseInner>() { + public Observable beginCreateUpdateMongoDBDatabaseAsync(String resourceGroupName, String accountName, String databaseName, MongoDBDatabaseCreateUpdateParameters createUpdateMongoDBDatabaseParameters) { + return beginCreateUpdateMongoDBDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName, createUpdateMongoDBDatabaseParameters).map(new Func1, MongoDBDatabaseInner>() { @Override - public MongoDatabaseInner call(ServiceResponse response) { + public MongoDBDatabaseInner call(ServiceResponse response) { return response.body(); } }); } /** - * Create or updates Azure Cosmos DB Mongo database. + * Create or updates Azure Cosmos DB MongoDB database. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param createUpdateMongoDatabaseParameters The parameters to provide for the current Mongo database. + * @param databaseName Cosmos DB database name. + * @param createUpdateMongoDBDatabaseParameters The parameters to provide for the current MongoDB database. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the MongoDatabaseInner object + * @return the observable to the MongoDBDatabaseInner object */ - public Observable> beginCreateUpdateMongoDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid, MongoDatabaseCreateUpdateParameters createUpdateMongoDatabaseParameters) { + public Observable> beginCreateUpdateMongoDBDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName, MongoDBDatabaseCreateUpdateParameters createUpdateMongoDBDatabaseParameters) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -4085,22 +4086,22 @@ public Observable> beginCreateUpdateMongoDat if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - if (createUpdateMongoDatabaseParameters == null) { - throw new IllegalArgumentException("Parameter createUpdateMongoDatabaseParameters is required and cannot be null."); + if (createUpdateMongoDBDatabaseParameters == null) { + throw new IllegalArgumentException("Parameter createUpdateMongoDBDatabaseParameters is required and cannot be null."); } - Validator.validate(createUpdateMongoDatabaseParameters); - return service.beginCreateUpdateMongoDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, this.client.apiVersion(), createUpdateMongoDatabaseParameters, this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(createUpdateMongoDBDatabaseParameters); + return service.beginCreateUpdateMongoDBDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, this.client.apiVersion(), createUpdateMongoDBDatabaseParameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = beginCreateUpdateMongoDatabaseDelegate(response); + ServiceResponse clientResponse = beginCreateUpdateMongoDBDatabaseDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -4109,53 +4110,53 @@ public Observable> call(Response beginCreateUpdateMongoDatabaseDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse beginCreateUpdateMongoDBDatabaseDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .register(202, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } /** - * Deletes an existing Azure Cosmos DB Mongo database. + * Deletes an existing Azure Cosmos DB MongoDB database. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void deleteMongoDatabase(String resourceGroupName, String accountName, String databaseRid) { - deleteMongoDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid).toBlocking().last().body(); + public void deleteMongoDBDatabase(String resourceGroupName, String accountName, String databaseName) { + deleteMongoDBDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName).toBlocking().last().body(); } /** - * Deletes an existing Azure Cosmos DB Mongo database. + * Deletes an existing Azure Cosmos DB MongoDB database. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deleteMongoDatabaseAsync(String resourceGroupName, String accountName, String databaseRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deleteMongoDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid), serviceCallback); + public ServiceFuture deleteMongoDBDatabaseAsync(String resourceGroupName, String accountName, String databaseName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteMongoDBDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName), serviceCallback); } /** - * Deletes an existing Azure Cosmos DB Mongo database. + * Deletes an existing Azure Cosmos DB MongoDB database. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable deleteMongoDatabaseAsync(String resourceGroupName, String accountName, String databaseRid) { - return deleteMongoDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid).map(new Func1, Void>() { + public Observable deleteMongoDBDatabaseAsync(String resourceGroupName, String accountName, String databaseName) { + return deleteMongoDBDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -4164,15 +4165,15 @@ public Void call(ServiceResponse response) { } /** - * Deletes an existing Azure Cosmos DB Mongo database. + * Deletes an existing Azure Cosmos DB MongoDB database. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable> deleteMongoDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid) { + public Observable> deleteMongoDBDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -4182,55 +4183,55 @@ public Observable> deleteMongoDatabaseWithServiceResponseA if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Observable> observable = service.deleteMongoDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + Observable> observable = service.deleteMongoDBDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } /** - * Deletes an existing Azure Cosmos DB Mongo database. + * Deletes an existing Azure Cosmos DB MongoDB database. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void beginDeleteMongoDatabase(String resourceGroupName, String accountName, String databaseRid) { - beginDeleteMongoDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid).toBlocking().single().body(); + public void beginDeleteMongoDBDatabase(String resourceGroupName, String accountName, String databaseName) { + beginDeleteMongoDBDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName).toBlocking().single().body(); } /** - * Deletes an existing Azure Cosmos DB Mongo database. + * Deletes an existing Azure Cosmos DB MongoDB database. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginDeleteMongoDatabaseAsync(String resourceGroupName, String accountName, String databaseRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginDeleteMongoDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid), serviceCallback); + public ServiceFuture beginDeleteMongoDBDatabaseAsync(String resourceGroupName, String accountName, String databaseName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteMongoDBDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName), serviceCallback); } /** - * Deletes an existing Azure Cosmos DB Mongo database. + * Deletes an existing Azure Cosmos DB MongoDB database. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable beginDeleteMongoDatabaseAsync(String resourceGroupName, String accountName, String databaseRid) { - return beginDeleteMongoDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid).map(new Func1, Void>() { + public Observable beginDeleteMongoDBDatabaseAsync(String resourceGroupName, String accountName, String databaseName) { + return beginDeleteMongoDBDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -4239,15 +4240,15 @@ public Void call(ServiceResponse response) { } /** - * Deletes an existing Azure Cosmos DB Mongo database. + * Deletes an existing Azure Cosmos DB MongoDB database. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable> beginDeleteMongoDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid) { + public Observable> beginDeleteMongoDBDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -4257,18 +4258,18 @@ public Observable> beginDeleteMongoDatabaseWithServiceResp if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.beginDeleteMongoDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.beginDeleteMongoDBDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { try { - ServiceResponse clientResponse = beginDeleteMongoDatabaseDelegate(response); + ServiceResponse clientResponse = beginDeleteMongoDBDatabaseDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -4277,7 +4278,7 @@ public Observable> call(Response response) { }); } - private ServiceResponse beginDeleteMongoDatabaseDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + private ServiceResponse beginDeleteMongoDBDatabaseDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(202, new TypeToken() { }.getType()) .register(204, new TypeToken() { }.getType()) @@ -4286,62 +4287,62 @@ private ServiceResponse beginDeleteMongoDatabaseDelegate(Response listMongoCollections(String resourceGroupName, String accountName, String databaseRid) { - return listMongoCollectionsWithServiceResponseAsync(resourceGroupName, accountName, databaseRid).toBlocking().single().body(); + public List listMongoDBCollections(String resourceGroupName, String accountName, String databaseName) { + return listMongoDBCollectionsWithServiceResponseAsync(resourceGroupName, accountName, databaseName).toBlocking().single().body(); } /** - * Lists the Mongo collection under an existing Azure Cosmos DB database account. + * Lists the MongoDB collection under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listMongoCollectionsAsync(String resourceGroupName, String accountName, String databaseRid, final ServiceCallback> serviceCallback) { - return ServiceFuture.fromResponse(listMongoCollectionsWithServiceResponseAsync(resourceGroupName, accountName, databaseRid), serviceCallback); + public ServiceFuture> listMongoDBCollectionsAsync(String resourceGroupName, String accountName, String databaseName, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listMongoDBCollectionsWithServiceResponseAsync(resourceGroupName, accountName, databaseName), serviceCallback); } /** - * Lists the Mongo collection under an existing Azure Cosmos DB database account. + * Lists the MongoDB collection under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the List<MongoCollectionInner> object + * @return the observable to the List<MongoDBCollectionInner> object */ - public Observable> listMongoCollectionsAsync(String resourceGroupName, String accountName, String databaseRid) { - return listMongoCollectionsWithServiceResponseAsync(resourceGroupName, accountName, databaseRid).map(new Func1>, List>() { + public Observable> listMongoDBCollectionsAsync(String resourceGroupName, String accountName, String databaseName) { + return listMongoDBCollectionsWithServiceResponseAsync(resourceGroupName, accountName, databaseName).map(new Func1>, List>() { @Override - public List call(ServiceResponse> response) { + public List call(ServiceResponse> response) { return response.body(); } }); } /** - * Lists the Mongo collection under an existing Azure Cosmos DB database account. + * Lists the MongoDB collection under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the List<MongoCollectionInner> object + * @return the observable to the List<MongoDBCollectionInner> object */ - public Observable>> listMongoCollectionsWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid) { + public Observable>> listMongoDBCollectionsWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -4351,23 +4352,23 @@ public Observable>> listMongoCollecti if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listMongoCollections(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + return service.listMongoDBCollections(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable>> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse> result = listMongoCollectionsDelegate(response); - List items = null; + ServiceResponse> result = listMongoDBCollectionsDelegate(response); + List items = null; if (result.body() != null) { items = result.body().items(); } - ServiceResponse> clientResponse = new ServiceResponse>(items, result.response()); + ServiceResponse> clientResponse = new ServiceResponse>(items, result.response()); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -4376,74 +4377,74 @@ public Observable>> call(Response> listMongoCollectionsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listMongoDBCollectionsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } /** - * Gets the Mongo collection under an existing Azure Cosmos DB database account. + * Gets the MongoDB collection under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param collectionRid Cosmos DB collection rid. + * @param databaseName Cosmos DB database name. + * @param collectionName Cosmos DB collection name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the MongoCollectionInner object if successful. + * @return the MongoDBCollectionInner object if successful. */ - public MongoCollectionInner getMongoCollection(String resourceGroupName, String accountName, String databaseRid, String collectionRid) { - return getMongoCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, collectionRid).toBlocking().single().body(); + public MongoDBCollectionInner getMongoDBCollection(String resourceGroupName, String accountName, String databaseName, String collectionName) { + return getMongoDBCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseName, collectionName).toBlocking().single().body(); } /** - * Gets the Mongo collection under an existing Azure Cosmos DB database account. + * Gets the MongoDB collection under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param collectionRid Cosmos DB collection rid. + * @param databaseName Cosmos DB database name. + * @param collectionName Cosmos DB collection name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getMongoCollectionAsync(String resourceGroupName, String accountName, String databaseRid, String collectionRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getMongoCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, collectionRid), serviceCallback); + public ServiceFuture getMongoDBCollectionAsync(String resourceGroupName, String accountName, String databaseName, String collectionName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getMongoDBCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseName, collectionName), serviceCallback); } /** - * Gets the Mongo collection under an existing Azure Cosmos DB database account. + * Gets the MongoDB collection under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param collectionRid Cosmos DB collection rid. + * @param databaseName Cosmos DB database name. + * @param collectionName Cosmos DB collection name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the MongoCollectionInner object + * @return the observable to the MongoDBCollectionInner object */ - public Observable getMongoCollectionAsync(String resourceGroupName, String accountName, String databaseRid, String collectionRid) { - return getMongoCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, collectionRid).map(new Func1, MongoCollectionInner>() { + public Observable getMongoDBCollectionAsync(String resourceGroupName, String accountName, String databaseName, String collectionName) { + return getMongoDBCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseName, collectionName).map(new Func1, MongoDBCollectionInner>() { @Override - public MongoCollectionInner call(ServiceResponse response) { + public MongoDBCollectionInner call(ServiceResponse response) { return response.body(); } }); } /** - * Gets the Mongo collection under an existing Azure Cosmos DB database account. + * Gets the MongoDB collection under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param collectionRid Cosmos DB collection rid. + * @param databaseName Cosmos DB database name. + * @param collectionName Cosmos DB collection name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the MongoCollectionInner object + * @return the observable to the MongoDBCollectionInner object */ - public Observable> getMongoCollectionWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid, String collectionRid) { + public Observable> getMongoDBCollectionWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName, String collectionName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -4453,21 +4454,21 @@ public Observable> getMongoCollectionWithS if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } - if (collectionRid == null) { - throw new IllegalArgumentException("Parameter collectionRid is required and cannot be null."); + if (collectionName == null) { + throw new IllegalArgumentException("Parameter collectionName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getMongoCollection(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, collectionRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getMongoDBCollection(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, collectionName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getMongoCollectionDelegate(response); + ServiceResponse clientResponse = getMongoDBCollectionDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -4476,78 +4477,78 @@ public Observable> call(Response getMongoCollectionDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getMongoDBCollectionDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } /** - * Create or update an Azure Cosmos DB Mongo Collection. + * Create or update an Azure Cosmos DB MongoDB Collection. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param collectionRid Cosmos DB collection rid. - * @param createUpdateMongoCollectionParameters The parameters to provide for the current Mongo Collection. + * @param databaseName Cosmos DB database name. + * @param collectionName Cosmos DB collection name. + * @param createUpdateMongoDBCollectionParameters The parameters to provide for the current MongoDB Collection. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the MongoCollectionInner object if successful. + * @return the MongoDBCollectionInner object if successful. */ - public MongoCollectionInner createUpdateMongoCollection(String resourceGroupName, String accountName, String databaseRid, String collectionRid, MongoCollectionCreateUpdateParameters createUpdateMongoCollectionParameters) { - return createUpdateMongoCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, collectionRid, createUpdateMongoCollectionParameters).toBlocking().last().body(); + public MongoDBCollectionInner createUpdateMongoDBCollection(String resourceGroupName, String accountName, String databaseName, String collectionName, MongoDBCollectionCreateUpdateParameters createUpdateMongoDBCollectionParameters) { + return createUpdateMongoDBCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseName, collectionName, createUpdateMongoDBCollectionParameters).toBlocking().last().body(); } /** - * Create or update an Azure Cosmos DB Mongo Collection. + * Create or update an Azure Cosmos DB MongoDB Collection. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param collectionRid Cosmos DB collection rid. - * @param createUpdateMongoCollectionParameters The parameters to provide for the current Mongo Collection. + * @param databaseName Cosmos DB database name. + * @param collectionName Cosmos DB collection name. + * @param createUpdateMongoDBCollectionParameters The parameters to provide for the current MongoDB Collection. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture createUpdateMongoCollectionAsync(String resourceGroupName, String accountName, String databaseRid, String collectionRid, MongoCollectionCreateUpdateParameters createUpdateMongoCollectionParameters, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(createUpdateMongoCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, collectionRid, createUpdateMongoCollectionParameters), serviceCallback); + public ServiceFuture createUpdateMongoDBCollectionAsync(String resourceGroupName, String accountName, String databaseName, String collectionName, MongoDBCollectionCreateUpdateParameters createUpdateMongoDBCollectionParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createUpdateMongoDBCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseName, collectionName, createUpdateMongoDBCollectionParameters), serviceCallback); } /** - * Create or update an Azure Cosmos DB Mongo Collection. + * Create or update an Azure Cosmos DB MongoDB Collection. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param collectionRid Cosmos DB collection rid. - * @param createUpdateMongoCollectionParameters The parameters to provide for the current Mongo Collection. + * @param databaseName Cosmos DB database name. + * @param collectionName Cosmos DB collection name. + * @param createUpdateMongoDBCollectionParameters The parameters to provide for the current MongoDB Collection. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable createUpdateMongoCollectionAsync(String resourceGroupName, String accountName, String databaseRid, String collectionRid, MongoCollectionCreateUpdateParameters createUpdateMongoCollectionParameters) { - return createUpdateMongoCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, collectionRid, createUpdateMongoCollectionParameters).map(new Func1, MongoCollectionInner>() { + public Observable createUpdateMongoDBCollectionAsync(String resourceGroupName, String accountName, String databaseName, String collectionName, MongoDBCollectionCreateUpdateParameters createUpdateMongoDBCollectionParameters) { + return createUpdateMongoDBCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseName, collectionName, createUpdateMongoDBCollectionParameters).map(new Func1, MongoDBCollectionInner>() { @Override - public MongoCollectionInner call(ServiceResponse response) { + public MongoDBCollectionInner call(ServiceResponse response) { return response.body(); } }); } /** - * Create or update an Azure Cosmos DB Mongo Collection. + * Create or update an Azure Cosmos DB MongoDB Collection. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param collectionRid Cosmos DB collection rid. - * @param createUpdateMongoCollectionParameters The parameters to provide for the current Mongo Collection. + * @param databaseName Cosmos DB database name. + * @param collectionName Cosmos DB collection name. + * @param createUpdateMongoDBCollectionParameters The parameters to provide for the current MongoDB Collection. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable> createUpdateMongoCollectionWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid, String collectionRid, MongoCollectionCreateUpdateParameters createUpdateMongoCollectionParameters) { + public Observable> createUpdateMongoDBCollectionWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName, String collectionName, MongoDBCollectionCreateUpdateParameters createUpdateMongoDBCollectionParameters) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -4557,88 +4558,88 @@ public Observable> createUpdateMongoCollec if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } - if (collectionRid == null) { - throw new IllegalArgumentException("Parameter collectionRid is required and cannot be null."); + if (collectionName == null) { + throw new IllegalArgumentException("Parameter collectionName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - if (createUpdateMongoCollectionParameters == null) { - throw new IllegalArgumentException("Parameter createUpdateMongoCollectionParameters is required and cannot be null."); + if (createUpdateMongoDBCollectionParameters == null) { + throw new IllegalArgumentException("Parameter createUpdateMongoDBCollectionParameters is required and cannot be null."); } - Validator.validate(createUpdateMongoCollectionParameters); - Observable> observable = service.createUpdateMongoCollection(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, collectionRid, this.client.apiVersion(), createUpdateMongoCollectionParameters, this.client.acceptLanguage(), this.client.userAgent()); - return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + Validator.validate(createUpdateMongoDBCollectionParameters); + Observable> observable = service.createUpdateMongoDBCollection(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, collectionName, this.client.apiVersion(), createUpdateMongoDBCollectionParameters, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } /** - * Create or update an Azure Cosmos DB Mongo Collection. + * Create or update an Azure Cosmos DB MongoDB Collection. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param collectionRid Cosmos DB collection rid. - * @param createUpdateMongoCollectionParameters The parameters to provide for the current Mongo Collection. + * @param databaseName Cosmos DB database name. + * @param collectionName Cosmos DB collection name. + * @param createUpdateMongoDBCollectionParameters The parameters to provide for the current MongoDB Collection. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the MongoCollectionInner object if successful. + * @return the MongoDBCollectionInner object if successful. */ - public MongoCollectionInner beginCreateUpdateMongoCollection(String resourceGroupName, String accountName, String databaseRid, String collectionRid, MongoCollectionCreateUpdateParameters createUpdateMongoCollectionParameters) { - return beginCreateUpdateMongoCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, collectionRid, createUpdateMongoCollectionParameters).toBlocking().single().body(); + public MongoDBCollectionInner beginCreateUpdateMongoDBCollection(String resourceGroupName, String accountName, String databaseName, String collectionName, MongoDBCollectionCreateUpdateParameters createUpdateMongoDBCollectionParameters) { + return beginCreateUpdateMongoDBCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseName, collectionName, createUpdateMongoDBCollectionParameters).toBlocking().single().body(); } /** - * Create or update an Azure Cosmos DB Mongo Collection. + * Create or update an Azure Cosmos DB MongoDB Collection. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param collectionRid Cosmos DB collection rid. - * @param createUpdateMongoCollectionParameters The parameters to provide for the current Mongo Collection. + * @param databaseName Cosmos DB database name. + * @param collectionName Cosmos DB collection name. + * @param createUpdateMongoDBCollectionParameters The parameters to provide for the current MongoDB Collection. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginCreateUpdateMongoCollectionAsync(String resourceGroupName, String accountName, String databaseRid, String collectionRid, MongoCollectionCreateUpdateParameters createUpdateMongoCollectionParameters, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginCreateUpdateMongoCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, collectionRid, createUpdateMongoCollectionParameters), serviceCallback); + public ServiceFuture beginCreateUpdateMongoDBCollectionAsync(String resourceGroupName, String accountName, String databaseName, String collectionName, MongoDBCollectionCreateUpdateParameters createUpdateMongoDBCollectionParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateUpdateMongoDBCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseName, collectionName, createUpdateMongoDBCollectionParameters), serviceCallback); } /** - * Create or update an Azure Cosmos DB Mongo Collection. + * Create or update an Azure Cosmos DB MongoDB Collection. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param collectionRid Cosmos DB collection rid. - * @param createUpdateMongoCollectionParameters The parameters to provide for the current Mongo Collection. + * @param databaseName Cosmos DB database name. + * @param collectionName Cosmos DB collection name. + * @param createUpdateMongoDBCollectionParameters The parameters to provide for the current MongoDB Collection. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the MongoCollectionInner object + * @return the observable to the MongoDBCollectionInner object */ - public Observable beginCreateUpdateMongoCollectionAsync(String resourceGroupName, String accountName, String databaseRid, String collectionRid, MongoCollectionCreateUpdateParameters createUpdateMongoCollectionParameters) { - return beginCreateUpdateMongoCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, collectionRid, createUpdateMongoCollectionParameters).map(new Func1, MongoCollectionInner>() { + public Observable beginCreateUpdateMongoDBCollectionAsync(String resourceGroupName, String accountName, String databaseName, String collectionName, MongoDBCollectionCreateUpdateParameters createUpdateMongoDBCollectionParameters) { + return beginCreateUpdateMongoDBCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseName, collectionName, createUpdateMongoDBCollectionParameters).map(new Func1, MongoDBCollectionInner>() { @Override - public MongoCollectionInner call(ServiceResponse response) { + public MongoDBCollectionInner call(ServiceResponse response) { return response.body(); } }); } /** - * Create or update an Azure Cosmos DB Mongo Collection. + * Create or update an Azure Cosmos DB MongoDB Collection. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param collectionRid Cosmos DB collection rid. - * @param createUpdateMongoCollectionParameters The parameters to provide for the current Mongo Collection. + * @param databaseName Cosmos DB database name. + * @param collectionName Cosmos DB collection name. + * @param createUpdateMongoDBCollectionParameters The parameters to provide for the current MongoDB Collection. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the MongoCollectionInner object + * @return the observable to the MongoDBCollectionInner object */ - public Observable> beginCreateUpdateMongoCollectionWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid, String collectionRid, MongoCollectionCreateUpdateParameters createUpdateMongoCollectionParameters) { + public Observable> beginCreateUpdateMongoDBCollectionWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName, String collectionName, MongoDBCollectionCreateUpdateParameters createUpdateMongoDBCollectionParameters) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -4648,25 +4649,25 @@ public Observable> beginCreateUpdateMongoC if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } - if (collectionRid == null) { - throw new IllegalArgumentException("Parameter collectionRid is required and cannot be null."); + if (collectionName == null) { + throw new IllegalArgumentException("Parameter collectionName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - if (createUpdateMongoCollectionParameters == null) { - throw new IllegalArgumentException("Parameter createUpdateMongoCollectionParameters is required and cannot be null."); + if (createUpdateMongoDBCollectionParameters == null) { + throw new IllegalArgumentException("Parameter createUpdateMongoDBCollectionParameters is required and cannot be null."); } - Validator.validate(createUpdateMongoCollectionParameters); - return service.beginCreateUpdateMongoCollection(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, collectionRid, this.client.apiVersion(), createUpdateMongoCollectionParameters, this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(createUpdateMongoDBCollectionParameters); + return service.beginCreateUpdateMongoDBCollection(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, collectionName, this.client.apiVersion(), createUpdateMongoDBCollectionParameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = beginCreateUpdateMongoCollectionDelegate(response); + ServiceResponse clientResponse = beginCreateUpdateMongoDBCollectionDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -4675,56 +4676,56 @@ public Observable> call(Response beginCreateUpdateMongoCollectionDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse beginCreateUpdateMongoDBCollectionDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .register(202, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } /** - * Deletes an existing Azure Cosmos DB Mongo Collection. + * Deletes an existing Azure Cosmos DB MongoDB Collection. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param collectionRid Cosmos DB collection rid. + * @param databaseName Cosmos DB database name. + * @param collectionName Cosmos DB collection name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void deleteMongoCollection(String resourceGroupName, String accountName, String databaseRid, String collectionRid) { - deleteMongoCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, collectionRid).toBlocking().last().body(); + public void deleteMongoDBCollection(String resourceGroupName, String accountName, String databaseName, String collectionName) { + deleteMongoDBCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseName, collectionName).toBlocking().last().body(); } /** - * Deletes an existing Azure Cosmos DB Mongo Collection. + * Deletes an existing Azure Cosmos DB MongoDB Collection. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param collectionRid Cosmos DB collection rid. + * @param databaseName Cosmos DB database name. + * @param collectionName Cosmos DB collection name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deleteMongoCollectionAsync(String resourceGroupName, String accountName, String databaseRid, String collectionRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deleteMongoCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, collectionRid), serviceCallback); + public ServiceFuture deleteMongoDBCollectionAsync(String resourceGroupName, String accountName, String databaseName, String collectionName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteMongoDBCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseName, collectionName), serviceCallback); } /** - * Deletes an existing Azure Cosmos DB Mongo Collection. + * Deletes an existing Azure Cosmos DB MongoDB Collection. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param collectionRid Cosmos DB collection rid. + * @param databaseName Cosmos DB database name. + * @param collectionName Cosmos DB collection name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable deleteMongoCollectionAsync(String resourceGroupName, String accountName, String databaseRid, String collectionRid) { - return deleteMongoCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, collectionRid).map(new Func1, Void>() { + public Observable deleteMongoDBCollectionAsync(String resourceGroupName, String accountName, String databaseName, String collectionName) { + return deleteMongoDBCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseName, collectionName).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -4733,16 +4734,16 @@ public Void call(ServiceResponse response) { } /** - * Deletes an existing Azure Cosmos DB Mongo Collection. + * Deletes an existing Azure Cosmos DB MongoDB Collection. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param collectionRid Cosmos DB collection rid. + * @param databaseName Cosmos DB database name. + * @param collectionName Cosmos DB collection name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable> deleteMongoCollectionWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid, String collectionRid) { + public Observable> deleteMongoDBCollectionWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName, String collectionName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -4752,61 +4753,61 @@ public Observable> deleteMongoCollectionWithServiceRespons if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } - if (collectionRid == null) { - throw new IllegalArgumentException("Parameter collectionRid is required and cannot be null."); + if (collectionName == null) { + throw new IllegalArgumentException("Parameter collectionName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Observable> observable = service.deleteMongoCollection(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, collectionRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + Observable> observable = service.deleteMongoDBCollection(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, collectionName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } /** - * Deletes an existing Azure Cosmos DB Mongo Collection. + * Deletes an existing Azure Cosmos DB MongoDB Collection. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param collectionRid Cosmos DB collection rid. + * @param databaseName Cosmos DB database name. + * @param collectionName Cosmos DB collection name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void beginDeleteMongoCollection(String resourceGroupName, String accountName, String databaseRid, String collectionRid) { - beginDeleteMongoCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, collectionRid).toBlocking().single().body(); + public void beginDeleteMongoDBCollection(String resourceGroupName, String accountName, String databaseName, String collectionName) { + beginDeleteMongoDBCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseName, collectionName).toBlocking().single().body(); } /** - * Deletes an existing Azure Cosmos DB Mongo Collection. + * Deletes an existing Azure Cosmos DB MongoDB Collection. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param collectionRid Cosmos DB collection rid. + * @param databaseName Cosmos DB database name. + * @param collectionName Cosmos DB collection name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginDeleteMongoCollectionAsync(String resourceGroupName, String accountName, String databaseRid, String collectionRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginDeleteMongoCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, collectionRid), serviceCallback); + public ServiceFuture beginDeleteMongoDBCollectionAsync(String resourceGroupName, String accountName, String databaseName, String collectionName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteMongoDBCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseName, collectionName), serviceCallback); } /** - * Deletes an existing Azure Cosmos DB Mongo Collection. + * Deletes an existing Azure Cosmos DB MongoDB Collection. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param collectionRid Cosmos DB collection rid. + * @param databaseName Cosmos DB database name. + * @param collectionName Cosmos DB collection name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable beginDeleteMongoCollectionAsync(String resourceGroupName, String accountName, String databaseRid, String collectionRid) { - return beginDeleteMongoCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, collectionRid).map(new Func1, Void>() { + public Observable beginDeleteMongoDBCollectionAsync(String resourceGroupName, String accountName, String databaseName, String collectionName) { + return beginDeleteMongoDBCollectionWithServiceResponseAsync(resourceGroupName, accountName, databaseName, collectionName).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -4815,16 +4816,16 @@ public Void call(ServiceResponse response) { } /** - * Deletes an existing Azure Cosmos DB Mongo Collection. + * Deletes an existing Azure Cosmos DB MongoDB Collection. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param collectionRid Cosmos DB collection rid. + * @param databaseName Cosmos DB database name. + * @param collectionName Cosmos DB collection name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable> beginDeleteMongoCollectionWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid, String collectionRid) { + public Observable> beginDeleteMongoDBCollectionWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName, String collectionName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -4834,21 +4835,21 @@ public Observable> beginDeleteMongoCollectionWithServiceRe if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } - if (collectionRid == null) { - throw new IllegalArgumentException("Parameter collectionRid is required and cannot be null."); + if (collectionName == null) { + throw new IllegalArgumentException("Parameter collectionName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.beginDeleteMongoCollection(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, collectionRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.beginDeleteMongoDBCollection(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, collectionName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { try { - ServiceResponse clientResponse = beginDeleteMongoCollectionDelegate(response); + ServiceResponse clientResponse = beginDeleteMongoDBCollectionDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -4857,7 +4858,7 @@ public Observable> call(Response response) { }); } - private ServiceResponse beginDeleteMongoCollectionDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + private ServiceResponse beginDeleteMongoDBCollectionDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(202, new TypeToken() { }.getType()) .register(204, new TypeToken() { }.getType()) @@ -4957,45 +4958,45 @@ private ServiceResponse> listTablesDelegate(Response getTableAsync(String resourceGroupName, String accountName, String tableRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getTableWithServiceResponseAsync(resourceGroupName, accountName, tableRid), serviceCallback); + public ServiceFuture getTableAsync(String resourceGroupName, String accountName, String tableName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getTableWithServiceResponseAsync(resourceGroupName, accountName, tableName), serviceCallback); } /** - * Gets the Tables under an existing Azure Cosmos DB database account with the provided id. + * Gets the Tables under an existing Azure Cosmos DB database account with the provided name. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param tableRid Cosmos DB table rid. + * @param tableName Cosmos DB table name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the TableInner object */ - public Observable getTableAsync(String resourceGroupName, String accountName, String tableRid) { - return getTableWithServiceResponseAsync(resourceGroupName, accountName, tableRid).map(new Func1, TableInner>() { + public Observable getTableAsync(String resourceGroupName, String accountName, String tableName) { + return getTableWithServiceResponseAsync(resourceGroupName, accountName, tableName).map(new Func1, TableInner>() { @Override public TableInner call(ServiceResponse response) { return response.body(); @@ -5004,15 +5005,15 @@ public TableInner call(ServiceResponse response) { } /** - * Gets the Tables under an existing Azure Cosmos DB database account with the provided id. + * Gets the Tables under an existing Azure Cosmos DB database account with the provided name. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param tableRid Cosmos DB table rid. + * @param tableName Cosmos DB table name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the TableInner object */ - public Observable> getTableWithServiceResponseAsync(String resourceGroupName, String accountName, String tableRid) { + public Observable> getTableWithServiceResponseAsync(String resourceGroupName, String accountName, String tableName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -5022,13 +5023,13 @@ public Observable> getTableWithServiceResponseAsync( if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (tableRid == null) { - throw new IllegalArgumentException("Parameter tableRid is required and cannot be null."); + if (tableName == null) { + throw new IllegalArgumentException("Parameter tableName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getTable(this.client.subscriptionId(), resourceGroupName, accountName, tableRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.getTable(this.client.subscriptionId(), resourceGroupName, accountName, tableName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -5054,15 +5055,15 @@ private ServiceResponse getTableDelegate(Response resp * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param tableRid Cosmos DB table rid. + * @param tableName Cosmos DB table name. * @param createUpdateTableParameters The parameters to provide for the current Table. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the TableInner object if successful. */ - public TableInner createUpdateTable(String resourceGroupName, String accountName, String tableRid, TableCreateUpdateParameters createUpdateTableParameters) { - return createUpdateTableWithServiceResponseAsync(resourceGroupName, accountName, tableRid, createUpdateTableParameters).toBlocking().last().body(); + public TableInner createUpdateTable(String resourceGroupName, String accountName, String tableName, TableCreateUpdateParameters createUpdateTableParameters) { + return createUpdateTableWithServiceResponseAsync(resourceGroupName, accountName, tableName, createUpdateTableParameters).toBlocking().last().body(); } /** @@ -5070,14 +5071,14 @@ public TableInner createUpdateTable(String resourceGroupName, String accountName * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param tableRid Cosmos DB table rid. + * @param tableName Cosmos DB table name. * @param createUpdateTableParameters The parameters to provide for the current Table. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture createUpdateTableAsync(String resourceGroupName, String accountName, String tableRid, TableCreateUpdateParameters createUpdateTableParameters, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(createUpdateTableWithServiceResponseAsync(resourceGroupName, accountName, tableRid, createUpdateTableParameters), serviceCallback); + public ServiceFuture createUpdateTableAsync(String resourceGroupName, String accountName, String tableName, TableCreateUpdateParameters createUpdateTableParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createUpdateTableWithServiceResponseAsync(resourceGroupName, accountName, tableName, createUpdateTableParameters), serviceCallback); } /** @@ -5085,13 +5086,13 @@ public ServiceFuture createUpdateTableAsync(String resourceGroupName * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param tableRid Cosmos DB table rid. + * @param tableName Cosmos DB table name. * @param createUpdateTableParameters The parameters to provide for the current Table. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable createUpdateTableAsync(String resourceGroupName, String accountName, String tableRid, TableCreateUpdateParameters createUpdateTableParameters) { - return createUpdateTableWithServiceResponseAsync(resourceGroupName, accountName, tableRid, createUpdateTableParameters).map(new Func1, TableInner>() { + public Observable createUpdateTableAsync(String resourceGroupName, String accountName, String tableName, TableCreateUpdateParameters createUpdateTableParameters) { + return createUpdateTableWithServiceResponseAsync(resourceGroupName, accountName, tableName, createUpdateTableParameters).map(new Func1, TableInner>() { @Override public TableInner call(ServiceResponse response) { return response.body(); @@ -5104,12 +5105,12 @@ public TableInner call(ServiceResponse response) { * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param tableRid Cosmos DB table rid. + * @param tableName Cosmos DB table name. * @param createUpdateTableParameters The parameters to provide for the current Table. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable> createUpdateTableWithServiceResponseAsync(String resourceGroupName, String accountName, String tableRid, TableCreateUpdateParameters createUpdateTableParameters) { + public Observable> createUpdateTableWithServiceResponseAsync(String resourceGroupName, String accountName, String tableName, TableCreateUpdateParameters createUpdateTableParameters) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -5119,8 +5120,8 @@ public Observable> createUpdateTableWithServiceRespo if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (tableRid == null) { - throw new IllegalArgumentException("Parameter tableRid is required and cannot be null."); + if (tableName == null) { + throw new IllegalArgumentException("Parameter tableName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); @@ -5129,7 +5130,7 @@ public Observable> createUpdateTableWithServiceRespo throw new IllegalArgumentException("Parameter createUpdateTableParameters is required and cannot be null."); } Validator.validate(createUpdateTableParameters); - Observable> observable = service.createUpdateTable(this.client.subscriptionId(), resourceGroupName, accountName, tableRid, this.client.apiVersion(), createUpdateTableParameters, this.client.acceptLanguage(), this.client.userAgent()); + Observable> observable = service.createUpdateTable(this.client.subscriptionId(), resourceGroupName, accountName, tableName, this.client.apiVersion(), createUpdateTableParameters, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -5138,15 +5139,15 @@ public Observable> createUpdateTableWithServiceRespo * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param tableRid Cosmos DB table rid. + * @param tableName Cosmos DB table name. * @param createUpdateTableParameters The parameters to provide for the current Table. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the TableInner object if successful. */ - public TableInner beginCreateUpdateTable(String resourceGroupName, String accountName, String tableRid, TableCreateUpdateParameters createUpdateTableParameters) { - return beginCreateUpdateTableWithServiceResponseAsync(resourceGroupName, accountName, tableRid, createUpdateTableParameters).toBlocking().single().body(); + public TableInner beginCreateUpdateTable(String resourceGroupName, String accountName, String tableName, TableCreateUpdateParameters createUpdateTableParameters) { + return beginCreateUpdateTableWithServiceResponseAsync(resourceGroupName, accountName, tableName, createUpdateTableParameters).toBlocking().single().body(); } /** @@ -5154,14 +5155,14 @@ public TableInner beginCreateUpdateTable(String resourceGroupName, String accoun * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param tableRid Cosmos DB table rid. + * @param tableName Cosmos DB table name. * @param createUpdateTableParameters The parameters to provide for the current Table. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginCreateUpdateTableAsync(String resourceGroupName, String accountName, String tableRid, TableCreateUpdateParameters createUpdateTableParameters, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginCreateUpdateTableWithServiceResponseAsync(resourceGroupName, accountName, tableRid, createUpdateTableParameters), serviceCallback); + public ServiceFuture beginCreateUpdateTableAsync(String resourceGroupName, String accountName, String tableName, TableCreateUpdateParameters createUpdateTableParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateUpdateTableWithServiceResponseAsync(resourceGroupName, accountName, tableName, createUpdateTableParameters), serviceCallback); } /** @@ -5169,13 +5170,13 @@ public ServiceFuture beginCreateUpdateTableAsync(String resourceGrou * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param tableRid Cosmos DB table rid. + * @param tableName Cosmos DB table name. * @param createUpdateTableParameters The parameters to provide for the current Table. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the TableInner object */ - public Observable beginCreateUpdateTableAsync(String resourceGroupName, String accountName, String tableRid, TableCreateUpdateParameters createUpdateTableParameters) { - return beginCreateUpdateTableWithServiceResponseAsync(resourceGroupName, accountName, tableRid, createUpdateTableParameters).map(new Func1, TableInner>() { + public Observable beginCreateUpdateTableAsync(String resourceGroupName, String accountName, String tableName, TableCreateUpdateParameters createUpdateTableParameters) { + return beginCreateUpdateTableWithServiceResponseAsync(resourceGroupName, accountName, tableName, createUpdateTableParameters).map(new Func1, TableInner>() { @Override public TableInner call(ServiceResponse response) { return response.body(); @@ -5188,12 +5189,12 @@ public TableInner call(ServiceResponse response) { * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param tableRid Cosmos DB table rid. + * @param tableName Cosmos DB table name. * @param createUpdateTableParameters The parameters to provide for the current Table. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the TableInner object */ - public Observable> beginCreateUpdateTableWithServiceResponseAsync(String resourceGroupName, String accountName, String tableRid, TableCreateUpdateParameters createUpdateTableParameters) { + public Observable> beginCreateUpdateTableWithServiceResponseAsync(String resourceGroupName, String accountName, String tableName, TableCreateUpdateParameters createUpdateTableParameters) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -5203,8 +5204,8 @@ public Observable> beginCreateUpdateTableWithService if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (tableRid == null) { - throw new IllegalArgumentException("Parameter tableRid is required and cannot be null."); + if (tableName == null) { + throw new IllegalArgumentException("Parameter tableName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); @@ -5213,7 +5214,7 @@ public Observable> beginCreateUpdateTableWithService throw new IllegalArgumentException("Parameter createUpdateTableParameters is required and cannot be null."); } Validator.validate(createUpdateTableParameters); - return service.beginCreateUpdateTable(this.client.subscriptionId(), resourceGroupName, accountName, tableRid, this.client.apiVersion(), createUpdateTableParameters, this.client.acceptLanguage(), this.client.userAgent()) + return service.beginCreateUpdateTable(this.client.subscriptionId(), resourceGroupName, accountName, tableName, this.client.apiVersion(), createUpdateTableParameters, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -5240,13 +5241,13 @@ private ServiceResponse beginCreateUpdateTableDelegate(Response deleteTableAsync(String resourceGroupName, String accountName, String tableRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deleteTableWithServiceResponseAsync(resourceGroupName, accountName, tableRid), serviceCallback); + public ServiceFuture deleteTableAsync(String resourceGroupName, String accountName, String tableName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteTableWithServiceResponseAsync(resourceGroupName, accountName, tableName), serviceCallback); } /** @@ -5268,12 +5269,12 @@ public ServiceFuture deleteTableAsync(String resourceGroupName, String acc * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param tableRid Cosmos DB table rid. + * @param tableName Cosmos DB table name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable deleteTableAsync(String resourceGroupName, String accountName, String tableRid) { - return deleteTableWithServiceResponseAsync(resourceGroupName, accountName, tableRid).map(new Func1, Void>() { + public Observable deleteTableAsync(String resourceGroupName, String accountName, String tableName) { + return deleteTableWithServiceResponseAsync(resourceGroupName, accountName, tableName).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -5286,11 +5287,11 @@ public Void call(ServiceResponse response) { * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param tableRid Cosmos DB table rid. + * @param tableName Cosmos DB table name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable> deleteTableWithServiceResponseAsync(String resourceGroupName, String accountName, String tableRid) { + public Observable> deleteTableWithServiceResponseAsync(String resourceGroupName, String accountName, String tableName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -5300,13 +5301,13 @@ public Observable> deleteTableWithServiceResponseAsync(Str if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (tableRid == null) { - throw new IllegalArgumentException("Parameter tableRid is required and cannot be null."); + if (tableName == null) { + throw new IllegalArgumentException("Parameter tableName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Observable> observable = service.deleteTable(this.client.subscriptionId(), resourceGroupName, accountName, tableRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + Observable> observable = service.deleteTable(this.client.subscriptionId(), resourceGroupName, accountName, tableName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -5315,13 +5316,13 @@ public Observable> deleteTableWithServiceResponseAsync(Str * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param tableRid Cosmos DB table rid. + * @param tableName Cosmos DB table name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void beginDeleteTable(String resourceGroupName, String accountName, String tableRid) { - beginDeleteTableWithServiceResponseAsync(resourceGroupName, accountName, tableRid).toBlocking().single().body(); + public void beginDeleteTable(String resourceGroupName, String accountName, String tableName) { + beginDeleteTableWithServiceResponseAsync(resourceGroupName, accountName, tableName).toBlocking().single().body(); } /** @@ -5329,13 +5330,13 @@ public void beginDeleteTable(String resourceGroupName, String accountName, Strin * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param tableRid Cosmos DB table rid. + * @param tableName Cosmos DB table name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginDeleteTableAsync(String resourceGroupName, String accountName, String tableRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginDeleteTableWithServiceResponseAsync(resourceGroupName, accountName, tableRid), serviceCallback); + public ServiceFuture beginDeleteTableAsync(String resourceGroupName, String accountName, String tableName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteTableWithServiceResponseAsync(resourceGroupName, accountName, tableName), serviceCallback); } /** @@ -5343,12 +5344,12 @@ public ServiceFuture beginDeleteTableAsync(String resourceGroupName, Strin * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param tableRid Cosmos DB table rid. + * @param tableName Cosmos DB table name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable beginDeleteTableAsync(String resourceGroupName, String accountName, String tableRid) { - return beginDeleteTableWithServiceResponseAsync(resourceGroupName, accountName, tableRid).map(new Func1, Void>() { + public Observable beginDeleteTableAsync(String resourceGroupName, String accountName, String tableName) { + return beginDeleteTableWithServiceResponseAsync(resourceGroupName, accountName, tableName).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -5361,11 +5362,11 @@ public Void call(ServiceResponse response) { * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param tableRid Cosmos DB table rid. + * @param tableName Cosmos DB table name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable> beginDeleteTableWithServiceResponseAsync(String resourceGroupName, String accountName, String tableRid) { + public Observable> beginDeleteTableWithServiceResponseAsync(String resourceGroupName, String accountName, String tableName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -5375,13 +5376,13 @@ public Observable> beginDeleteTableWithServiceResponseAsyn if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (tableRid == null) { - throw new IllegalArgumentException("Parameter tableRid is required and cannot be null."); + if (tableName == null) { + throw new IllegalArgumentException("Parameter tableName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.beginDeleteTable(this.client.subscriptionId(), resourceGroupName, accountName, tableRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.beginDeleteTable(this.client.subscriptionId(), resourceGroupName, accountName, tableName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -5495,45 +5496,45 @@ private ServiceResponse> listCassandraKeyspaces } /** - * Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided id. + * Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. + * @param keyspaceName Cosmos DB keyspace name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the CassandraKeyspaceInner object if successful. */ - public CassandraKeyspaceInner getCassandraKeyspace(String resourceGroupName, String accountName, String keyspaceRid) { - return getCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid).toBlocking().single().body(); + public CassandraKeyspaceInner getCassandraKeyspace(String resourceGroupName, String accountName, String keyspaceName) { + return getCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName).toBlocking().single().body(); } /** - * Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided id. + * Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. + * @param keyspaceName Cosmos DB keyspace name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid), serviceCallback); + public ServiceFuture getCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName), serviceCallback); } /** - * Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided id. + * Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. + * @param keyspaceName Cosmos DB keyspace name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the CassandraKeyspaceInner object */ - public Observable getCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceRid) { - return getCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid).map(new Func1, CassandraKeyspaceInner>() { + public Observable getCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceName) { + return getCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName).map(new Func1, CassandraKeyspaceInner>() { @Override public CassandraKeyspaceInner call(ServiceResponse response) { return response.body(); @@ -5542,15 +5543,15 @@ public CassandraKeyspaceInner call(ServiceResponse respo } /** - * Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided id. + * Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. + * @param keyspaceName Cosmos DB keyspace name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the CassandraKeyspaceInner object */ - public Observable> getCassandraKeyspaceWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceRid) { + public Observable> getCassandraKeyspaceWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -5560,13 +5561,13 @@ public Observable> getCassandraKeyspaceW if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (keyspaceRid == null) { - throw new IllegalArgumentException("Parameter keyspaceRid is required and cannot be null."); + if (keyspaceName == null) { + throw new IllegalArgumentException("Parameter keyspaceName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getCassandraKeyspace(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.getCassandraKeyspace(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -5592,15 +5593,15 @@ private ServiceResponse getCassandraKeyspaceDelegate(Res * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. + * @param keyspaceName Cosmos DB keyspace name. * @param createUpdateCassandraKeyspaceParameters The parameters to provide for the current Cassandra keyspace. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the CassandraKeyspaceInner object if successful. */ - public CassandraKeyspaceInner createUpdateCassandraKeyspace(String resourceGroupName, String accountName, String keyspaceRid, CassandraKeyspaceCreateUpdateParameters createUpdateCassandraKeyspaceParameters) { - return createUpdateCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid, createUpdateCassandraKeyspaceParameters).toBlocking().last().body(); + public CassandraKeyspaceInner createUpdateCassandraKeyspace(String resourceGroupName, String accountName, String keyspaceName, CassandraKeyspaceCreateUpdateParameters createUpdateCassandraKeyspaceParameters) { + return createUpdateCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, createUpdateCassandraKeyspaceParameters).toBlocking().last().body(); } /** @@ -5608,14 +5609,14 @@ public CassandraKeyspaceInner createUpdateCassandraKeyspace(String resourceGroup * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. + * @param keyspaceName Cosmos DB keyspace name. * @param createUpdateCassandraKeyspaceParameters The parameters to provide for the current Cassandra keyspace. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture createUpdateCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceRid, CassandraKeyspaceCreateUpdateParameters createUpdateCassandraKeyspaceParameters, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(createUpdateCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid, createUpdateCassandraKeyspaceParameters), serviceCallback); + public ServiceFuture createUpdateCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceName, CassandraKeyspaceCreateUpdateParameters createUpdateCassandraKeyspaceParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createUpdateCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, createUpdateCassandraKeyspaceParameters), serviceCallback); } /** @@ -5623,13 +5624,13 @@ public ServiceFuture createUpdateCassandraKeyspaceAsync( * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. + * @param keyspaceName Cosmos DB keyspace name. * @param createUpdateCassandraKeyspaceParameters The parameters to provide for the current Cassandra keyspace. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable createUpdateCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceRid, CassandraKeyspaceCreateUpdateParameters createUpdateCassandraKeyspaceParameters) { - return createUpdateCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid, createUpdateCassandraKeyspaceParameters).map(new Func1, CassandraKeyspaceInner>() { + public Observable createUpdateCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceName, CassandraKeyspaceCreateUpdateParameters createUpdateCassandraKeyspaceParameters) { + return createUpdateCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, createUpdateCassandraKeyspaceParameters).map(new Func1, CassandraKeyspaceInner>() { @Override public CassandraKeyspaceInner call(ServiceResponse response) { return response.body(); @@ -5642,12 +5643,12 @@ public CassandraKeyspaceInner call(ServiceResponse respo * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. + * @param keyspaceName Cosmos DB keyspace name. * @param createUpdateCassandraKeyspaceParameters The parameters to provide for the current Cassandra keyspace. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable> createUpdateCassandraKeyspaceWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceRid, CassandraKeyspaceCreateUpdateParameters createUpdateCassandraKeyspaceParameters) { + public Observable> createUpdateCassandraKeyspaceWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceName, CassandraKeyspaceCreateUpdateParameters createUpdateCassandraKeyspaceParameters) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -5657,8 +5658,8 @@ public Observable> createUpdateCassandra if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (keyspaceRid == null) { - throw new IllegalArgumentException("Parameter keyspaceRid is required and cannot be null."); + if (keyspaceName == null) { + throw new IllegalArgumentException("Parameter keyspaceName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); @@ -5667,7 +5668,7 @@ public Observable> createUpdateCassandra throw new IllegalArgumentException("Parameter createUpdateCassandraKeyspaceParameters is required and cannot be null."); } Validator.validate(createUpdateCassandraKeyspaceParameters); - Observable> observable = service.createUpdateCassandraKeyspace(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceRid, this.client.apiVersion(), createUpdateCassandraKeyspaceParameters, this.client.acceptLanguage(), this.client.userAgent()); + Observable> observable = service.createUpdateCassandraKeyspace(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceName, this.client.apiVersion(), createUpdateCassandraKeyspaceParameters, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -5676,15 +5677,15 @@ public Observable> createUpdateCassandra * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. + * @param keyspaceName Cosmos DB keyspace name. * @param createUpdateCassandraKeyspaceParameters The parameters to provide for the current Cassandra keyspace. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the CassandraKeyspaceInner object if successful. */ - public CassandraKeyspaceInner beginCreateUpdateCassandraKeyspace(String resourceGroupName, String accountName, String keyspaceRid, CassandraKeyspaceCreateUpdateParameters createUpdateCassandraKeyspaceParameters) { - return beginCreateUpdateCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid, createUpdateCassandraKeyspaceParameters).toBlocking().single().body(); + public CassandraKeyspaceInner beginCreateUpdateCassandraKeyspace(String resourceGroupName, String accountName, String keyspaceName, CassandraKeyspaceCreateUpdateParameters createUpdateCassandraKeyspaceParameters) { + return beginCreateUpdateCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, createUpdateCassandraKeyspaceParameters).toBlocking().single().body(); } /** @@ -5692,14 +5693,14 @@ public CassandraKeyspaceInner beginCreateUpdateCassandraKeyspace(String resource * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. + * @param keyspaceName Cosmos DB keyspace name. * @param createUpdateCassandraKeyspaceParameters The parameters to provide for the current Cassandra keyspace. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginCreateUpdateCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceRid, CassandraKeyspaceCreateUpdateParameters createUpdateCassandraKeyspaceParameters, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginCreateUpdateCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid, createUpdateCassandraKeyspaceParameters), serviceCallback); + public ServiceFuture beginCreateUpdateCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceName, CassandraKeyspaceCreateUpdateParameters createUpdateCassandraKeyspaceParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateUpdateCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, createUpdateCassandraKeyspaceParameters), serviceCallback); } /** @@ -5707,13 +5708,13 @@ public ServiceFuture beginCreateUpdateCassandraKeyspaceA * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. + * @param keyspaceName Cosmos DB keyspace name. * @param createUpdateCassandraKeyspaceParameters The parameters to provide for the current Cassandra keyspace. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the CassandraKeyspaceInner object */ - public Observable beginCreateUpdateCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceRid, CassandraKeyspaceCreateUpdateParameters createUpdateCassandraKeyspaceParameters) { - return beginCreateUpdateCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid, createUpdateCassandraKeyspaceParameters).map(new Func1, CassandraKeyspaceInner>() { + public Observable beginCreateUpdateCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceName, CassandraKeyspaceCreateUpdateParameters createUpdateCassandraKeyspaceParameters) { + return beginCreateUpdateCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, createUpdateCassandraKeyspaceParameters).map(new Func1, CassandraKeyspaceInner>() { @Override public CassandraKeyspaceInner call(ServiceResponse response) { return response.body(); @@ -5726,12 +5727,12 @@ public CassandraKeyspaceInner call(ServiceResponse respo * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. + * @param keyspaceName Cosmos DB keyspace name. * @param createUpdateCassandraKeyspaceParameters The parameters to provide for the current Cassandra keyspace. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the CassandraKeyspaceInner object */ - public Observable> beginCreateUpdateCassandraKeyspaceWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceRid, CassandraKeyspaceCreateUpdateParameters createUpdateCassandraKeyspaceParameters) { + public Observable> beginCreateUpdateCassandraKeyspaceWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceName, CassandraKeyspaceCreateUpdateParameters createUpdateCassandraKeyspaceParameters) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -5741,8 +5742,8 @@ public Observable> beginCreateUpdateCass if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (keyspaceRid == null) { - throw new IllegalArgumentException("Parameter keyspaceRid is required and cannot be null."); + if (keyspaceName == null) { + throw new IllegalArgumentException("Parameter keyspaceName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); @@ -5751,7 +5752,7 @@ public Observable> beginCreateUpdateCass throw new IllegalArgumentException("Parameter createUpdateCassandraKeyspaceParameters is required and cannot be null."); } Validator.validate(createUpdateCassandraKeyspaceParameters); - return service.beginCreateUpdateCassandraKeyspace(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceRid, this.client.apiVersion(), createUpdateCassandraKeyspaceParameters, this.client.acceptLanguage(), this.client.userAgent()) + return service.beginCreateUpdateCassandraKeyspace(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceName, this.client.apiVersion(), createUpdateCassandraKeyspaceParameters, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -5778,13 +5779,13 @@ private ServiceResponse beginCreateUpdateCassandraKeyspa * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. + * @param keyspaceName Cosmos DB keyspace name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void deleteCassandraKeyspace(String resourceGroupName, String accountName, String keyspaceRid) { - deleteCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid).toBlocking().last().body(); + public void deleteCassandraKeyspace(String resourceGroupName, String accountName, String keyspaceName) { + deleteCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName).toBlocking().last().body(); } /** @@ -5792,13 +5793,13 @@ public void deleteCassandraKeyspace(String resourceGroupName, String accountName * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. + * @param keyspaceName Cosmos DB keyspace name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deleteCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deleteCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid), serviceCallback); + public ServiceFuture deleteCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName), serviceCallback); } /** @@ -5806,12 +5807,12 @@ public ServiceFuture deleteCassandraKeyspaceAsync(String resourceGroupName * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. + * @param keyspaceName Cosmos DB keyspace name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable deleteCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceRid) { - return deleteCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid).map(new Func1, Void>() { + public Observable deleteCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceName) { + return deleteCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -5824,11 +5825,11 @@ public Void call(ServiceResponse response) { * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. + * @param keyspaceName Cosmos DB keyspace name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable> deleteCassandraKeyspaceWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceRid) { + public Observable> deleteCassandraKeyspaceWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -5838,13 +5839,13 @@ public Observable> deleteCassandraKeyspaceWithServiceRespo if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (keyspaceRid == null) { - throw new IllegalArgumentException("Parameter keyspaceRid is required and cannot be null."); + if (keyspaceName == null) { + throw new IllegalArgumentException("Parameter keyspaceName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Observable> observable = service.deleteCassandraKeyspace(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + Observable> observable = service.deleteCassandraKeyspace(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -5853,13 +5854,13 @@ public Observable> deleteCassandraKeyspaceWithServiceRespo * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. + * @param keyspaceName Cosmos DB keyspace name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void beginDeleteCassandraKeyspace(String resourceGroupName, String accountName, String keyspaceRid) { - beginDeleteCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid).toBlocking().single().body(); + public void beginDeleteCassandraKeyspace(String resourceGroupName, String accountName, String keyspaceName) { + beginDeleteCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName).toBlocking().single().body(); } /** @@ -5867,13 +5868,13 @@ public void beginDeleteCassandraKeyspace(String resourceGroupName, String accoun * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. + * @param keyspaceName Cosmos DB keyspace name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginDeleteCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginDeleteCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid), serviceCallback); + public ServiceFuture beginDeleteCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName), serviceCallback); } /** @@ -5881,12 +5882,12 @@ public ServiceFuture beginDeleteCassandraKeyspaceAsync(String resourceGrou * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. + * @param keyspaceName Cosmos DB keyspace name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable beginDeleteCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceRid) { - return beginDeleteCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid).map(new Func1, Void>() { + public Observable beginDeleteCassandraKeyspaceAsync(String resourceGroupName, String accountName, String keyspaceName) { + return beginDeleteCassandraKeyspaceWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -5899,11 +5900,11 @@ public Void call(ServiceResponse response) { * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. + * @param keyspaceName Cosmos DB keyspace name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable> beginDeleteCassandraKeyspaceWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceRid) { + public Observable> beginDeleteCassandraKeyspaceWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -5913,13 +5914,13 @@ public Observable> beginDeleteCassandraKeyspaceWithService if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (keyspaceRid == null) { - throw new IllegalArgumentException("Parameter keyspaceRid is required and cannot be null."); + if (keyspaceName == null) { + throw new IllegalArgumentException("Parameter keyspaceName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.beginDeleteCassandraKeyspace(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.beginDeleteCassandraKeyspace(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -5946,14 +5947,14 @@ private ServiceResponse beginDeleteCassandraKeyspaceDelegate(Response listCassandraTables(String resourceGroupName, String accountName, String keyspaceRid) { - return listCassandraTablesWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid).toBlocking().single().body(); + public List listCassandraTables(String resourceGroupName, String accountName, String keyspaceName) { + return listCassandraTablesWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName).toBlocking().single().body(); } /** @@ -5961,13 +5962,13 @@ public List listCassandraTables(String resourceGroupName, S * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. + * @param keyspaceName Cosmos DB keyspace name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listCassandraTablesAsync(String resourceGroupName, String accountName, String keyspaceRid, final ServiceCallback> serviceCallback) { - return ServiceFuture.fromResponse(listCassandraTablesWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid), serviceCallback); + public ServiceFuture> listCassandraTablesAsync(String resourceGroupName, String accountName, String keyspaceName, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listCassandraTablesWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName), serviceCallback); } /** @@ -5975,12 +5976,12 @@ public ServiceFuture> listCassandraTablesAsync(String * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. + * @param keyspaceName Cosmos DB keyspace name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<CassandraTableInner> object */ - public Observable> listCassandraTablesAsync(String resourceGroupName, String accountName, String keyspaceRid) { - return listCassandraTablesWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid).map(new Func1>, List>() { + public Observable> listCassandraTablesAsync(String resourceGroupName, String accountName, String keyspaceName) { + return listCassandraTablesWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName).map(new Func1>, List>() { @Override public List call(ServiceResponse> response) { return response.body(); @@ -5993,11 +5994,11 @@ public List call(ServiceResponse> * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. + * @param keyspaceName Cosmos DB keyspace name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<CassandraTableInner> object */ - public Observable>> listCassandraTablesWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceRid) { + public Observable>> listCassandraTablesWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -6007,13 +6008,13 @@ public Observable>> listCassandraTable if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (keyspaceRid == null) { - throw new IllegalArgumentException("Parameter keyspaceRid is required and cannot be null."); + if (keyspaceName == null) { + throw new IllegalArgumentException("Parameter keyspaceName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listCassandraTables(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.listCassandraTables(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -6044,15 +6045,15 @@ private ServiceResponse> listCassandraTablesDelega * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. - * @param tableRid Cosmos DB table rid. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the CassandraTableInner object if successful. */ - public CassandraTableInner getCassandraTable(String resourceGroupName, String accountName, String keyspaceRid, String tableRid) { - return getCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid, tableRid).toBlocking().single().body(); + public CassandraTableInner getCassandraTable(String resourceGroupName, String accountName, String keyspaceName, String tableName) { + return getCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName).toBlocking().single().body(); } /** @@ -6060,14 +6061,14 @@ public CassandraTableInner getCassandraTable(String resourceGroupName, String ac * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. - * @param tableRid Cosmos DB table rid. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceRid, String tableRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid, tableRid), serviceCallback); + public ServiceFuture getCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName), serviceCallback); } /** @@ -6075,13 +6076,13 @@ public ServiceFuture getCassandraTableAsync(String resource * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. - * @param tableRid Cosmos DB table rid. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the CassandraTableInner object */ - public Observable getCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceRid, String tableRid) { - return getCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid, tableRid).map(new Func1, CassandraTableInner>() { + public Observable getCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName) { + return getCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName).map(new Func1, CassandraTableInner>() { @Override public CassandraTableInner call(ServiceResponse response) { return response.body(); @@ -6094,12 +6095,12 @@ public CassandraTableInner call(ServiceResponse response) { * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. - * @param tableRid Cosmos DB table rid. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the CassandraTableInner object */ - public Observable> getCassandraTableWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceRid, String tableRid) { + public Observable> getCassandraTableWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -6109,16 +6110,16 @@ public Observable> getCassandraTableWithSer if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (keyspaceRid == null) { - throw new IllegalArgumentException("Parameter keyspaceRid is required and cannot be null."); + if (keyspaceName == null) { + throw new IllegalArgumentException("Parameter keyspaceName is required and cannot be null."); } - if (tableRid == null) { - throw new IllegalArgumentException("Parameter tableRid is required and cannot be null."); + if (tableName == null) { + throw new IllegalArgumentException("Parameter tableName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getCassandraTable(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceRid, tableRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.getCassandraTable(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceName, tableName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -6144,16 +6145,16 @@ private ServiceResponse getCassandraTableDelegate(Response< * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. - * @param tableRid Cosmos DB table rid. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. * @param createUpdateCassandraTableParameters The parameters to provide for the current Cassandra Table. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the CassandraTableInner object if successful. */ - public CassandraTableInner createUpdateCassandraTable(String resourceGroupName, String accountName, String keyspaceRid, String tableRid, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters) { - return createUpdateCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid, tableRid, createUpdateCassandraTableParameters).toBlocking().last().body(); + public CassandraTableInner createUpdateCassandraTable(String resourceGroupName, String accountName, String keyspaceName, String tableName, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters) { + return createUpdateCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName, createUpdateCassandraTableParameters).toBlocking().last().body(); } /** @@ -6161,15 +6162,15 @@ public CassandraTableInner createUpdateCassandraTable(String resourceGroupName, * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. - * @param tableRid Cosmos DB table rid. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. * @param createUpdateCassandraTableParameters The parameters to provide for the current Cassandra Table. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture createUpdateCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceRid, String tableRid, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(createUpdateCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid, tableRid, createUpdateCassandraTableParameters), serviceCallback); + public ServiceFuture createUpdateCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createUpdateCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName, createUpdateCassandraTableParameters), serviceCallback); } /** @@ -6177,14 +6178,14 @@ public ServiceFuture createUpdateCassandraTableAsync(String * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. - * @param tableRid Cosmos DB table rid. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. * @param createUpdateCassandraTableParameters The parameters to provide for the current Cassandra Table. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable createUpdateCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceRid, String tableRid, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters) { - return createUpdateCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid, tableRid, createUpdateCassandraTableParameters).map(new Func1, CassandraTableInner>() { + public Observable createUpdateCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters) { + return createUpdateCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName, createUpdateCassandraTableParameters).map(new Func1, CassandraTableInner>() { @Override public CassandraTableInner call(ServiceResponse response) { return response.body(); @@ -6197,13 +6198,13 @@ public CassandraTableInner call(ServiceResponse response) { * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. - * @param tableRid Cosmos DB table rid. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. * @param createUpdateCassandraTableParameters The parameters to provide for the current Cassandra Table. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable> createUpdateCassandraTableWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceRid, String tableRid, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters) { + public Observable> createUpdateCassandraTableWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -6213,11 +6214,11 @@ public Observable> createUpdateCassandraTab if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (keyspaceRid == null) { - throw new IllegalArgumentException("Parameter keyspaceRid is required and cannot be null."); + if (keyspaceName == null) { + throw new IllegalArgumentException("Parameter keyspaceName is required and cannot be null."); } - if (tableRid == null) { - throw new IllegalArgumentException("Parameter tableRid is required and cannot be null."); + if (tableName == null) { + throw new IllegalArgumentException("Parameter tableName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); @@ -6226,7 +6227,7 @@ public Observable> createUpdateCassandraTab throw new IllegalArgumentException("Parameter createUpdateCassandraTableParameters is required and cannot be null."); } Validator.validate(createUpdateCassandraTableParameters); - Observable> observable = service.createUpdateCassandraTable(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceRid, tableRid, this.client.apiVersion(), createUpdateCassandraTableParameters, this.client.acceptLanguage(), this.client.userAgent()); + Observable> observable = service.createUpdateCassandraTable(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceName, tableName, this.client.apiVersion(), createUpdateCassandraTableParameters, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -6235,16 +6236,16 @@ public Observable> createUpdateCassandraTab * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. - * @param tableRid Cosmos DB table rid. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. * @param createUpdateCassandraTableParameters The parameters to provide for the current Cassandra Table. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the CassandraTableInner object if successful. */ - public CassandraTableInner beginCreateUpdateCassandraTable(String resourceGroupName, String accountName, String keyspaceRid, String tableRid, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters) { - return beginCreateUpdateCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid, tableRid, createUpdateCassandraTableParameters).toBlocking().single().body(); + public CassandraTableInner beginCreateUpdateCassandraTable(String resourceGroupName, String accountName, String keyspaceName, String tableName, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters) { + return beginCreateUpdateCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName, createUpdateCassandraTableParameters).toBlocking().single().body(); } /** @@ -6252,15 +6253,15 @@ public CassandraTableInner beginCreateUpdateCassandraTable(String resourceGroupN * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. - * @param tableRid Cosmos DB table rid. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. * @param createUpdateCassandraTableParameters The parameters to provide for the current Cassandra Table. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginCreateUpdateCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceRid, String tableRid, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginCreateUpdateCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid, tableRid, createUpdateCassandraTableParameters), serviceCallback); + public ServiceFuture beginCreateUpdateCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateUpdateCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName, createUpdateCassandraTableParameters), serviceCallback); } /** @@ -6268,14 +6269,14 @@ public ServiceFuture beginCreateUpdateCassandraTableAsync(S * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. - * @param tableRid Cosmos DB table rid. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. * @param createUpdateCassandraTableParameters The parameters to provide for the current Cassandra Table. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the CassandraTableInner object */ - public Observable beginCreateUpdateCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceRid, String tableRid, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters) { - return beginCreateUpdateCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid, tableRid, createUpdateCassandraTableParameters).map(new Func1, CassandraTableInner>() { + public Observable beginCreateUpdateCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters) { + return beginCreateUpdateCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName, createUpdateCassandraTableParameters).map(new Func1, CassandraTableInner>() { @Override public CassandraTableInner call(ServiceResponse response) { return response.body(); @@ -6288,13 +6289,13 @@ public CassandraTableInner call(ServiceResponse response) { * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. - * @param tableRid Cosmos DB table rid. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. * @param createUpdateCassandraTableParameters The parameters to provide for the current Cassandra Table. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the CassandraTableInner object */ - public Observable> beginCreateUpdateCassandraTableWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceRid, String tableRid, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters) { + public Observable> beginCreateUpdateCassandraTableWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -6304,11 +6305,11 @@ public Observable> beginCreateUpdateCassand if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (keyspaceRid == null) { - throw new IllegalArgumentException("Parameter keyspaceRid is required and cannot be null."); + if (keyspaceName == null) { + throw new IllegalArgumentException("Parameter keyspaceName is required and cannot be null."); } - if (tableRid == null) { - throw new IllegalArgumentException("Parameter tableRid is required and cannot be null."); + if (tableName == null) { + throw new IllegalArgumentException("Parameter tableName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); @@ -6317,7 +6318,7 @@ public Observable> beginCreateUpdateCassand throw new IllegalArgumentException("Parameter createUpdateCassandraTableParameters is required and cannot be null."); } Validator.validate(createUpdateCassandraTableParameters); - return service.beginCreateUpdateCassandraTable(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceRid, tableRid, this.client.apiVersion(), createUpdateCassandraTableParameters, this.client.acceptLanguage(), this.client.userAgent()) + return service.beginCreateUpdateCassandraTable(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceName, tableName, this.client.apiVersion(), createUpdateCassandraTableParameters, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -6344,14 +6345,14 @@ private ServiceResponse beginCreateUpdateCassandraTableDele * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. - * @param tableRid Cosmos DB table rid. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void deleteCassandraTable(String resourceGroupName, String accountName, String keyspaceRid, String tableRid) { - deleteCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid, tableRid).toBlocking().last().body(); + public void deleteCassandraTable(String resourceGroupName, String accountName, String keyspaceName, String tableName) { + deleteCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName).toBlocking().last().body(); } /** @@ -6359,14 +6360,14 @@ public void deleteCassandraTable(String resourceGroupName, String accountName, S * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. - * @param tableRid Cosmos DB table rid. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deleteCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceRid, String tableRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deleteCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid, tableRid), serviceCallback); + public ServiceFuture deleteCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName), serviceCallback); } /** @@ -6374,13 +6375,13 @@ public ServiceFuture deleteCassandraTableAsync(String resourceGroupName, S * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. - * @param tableRid Cosmos DB table rid. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable deleteCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceRid, String tableRid) { - return deleteCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid, tableRid).map(new Func1, Void>() { + public Observable deleteCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName) { + return deleteCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -6393,12 +6394,12 @@ public Void call(ServiceResponse response) { * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. - * @param tableRid Cosmos DB table rid. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable> deleteCassandraTableWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceRid, String tableRid) { + public Observable> deleteCassandraTableWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -6408,16 +6409,16 @@ public Observable> deleteCassandraTableWithServiceResponse if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (keyspaceRid == null) { - throw new IllegalArgumentException("Parameter keyspaceRid is required and cannot be null."); + if (keyspaceName == null) { + throw new IllegalArgumentException("Parameter keyspaceName is required and cannot be null."); } - if (tableRid == null) { - throw new IllegalArgumentException("Parameter tableRid is required and cannot be null."); + if (tableName == null) { + throw new IllegalArgumentException("Parameter tableName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Observable> observable = service.deleteCassandraTable(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceRid, tableRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + Observable> observable = service.deleteCassandraTable(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceName, tableName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -6426,14 +6427,14 @@ public Observable> deleteCassandraTableWithServiceResponse * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. - * @param tableRid Cosmos DB table rid. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void beginDeleteCassandraTable(String resourceGroupName, String accountName, String keyspaceRid, String tableRid) { - beginDeleteCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid, tableRid).toBlocking().single().body(); + public void beginDeleteCassandraTable(String resourceGroupName, String accountName, String keyspaceName, String tableName) { + beginDeleteCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName).toBlocking().single().body(); } /** @@ -6441,14 +6442,14 @@ public void beginDeleteCassandraTable(String resourceGroupName, String accountNa * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. - * @param tableRid Cosmos DB table rid. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginDeleteCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceRid, String tableRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginDeleteCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid, tableRid), serviceCallback); + public ServiceFuture beginDeleteCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName), serviceCallback); } /** @@ -6456,13 +6457,13 @@ public ServiceFuture beginDeleteCassandraTableAsync(String resourceGroupNa * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. - * @param tableRid Cosmos DB table rid. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable beginDeleteCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceRid, String tableRid) { - return beginDeleteCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceRid, tableRid).map(new Func1, Void>() { + public Observable beginDeleteCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName) { + return beginDeleteCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -6475,12 +6476,12 @@ public Void call(ServiceResponse response) { * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param keyspaceRid Cosmos DB keyspace rid. - * @param tableRid Cosmos DB table rid. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable> beginDeleteCassandraTableWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceRid, String tableRid) { + public Observable> beginDeleteCassandraTableWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -6490,16 +6491,16 @@ public Observable> beginDeleteCassandraTableWithServiceRes if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (keyspaceRid == null) { - throw new IllegalArgumentException("Parameter keyspaceRid is required and cannot be null."); + if (keyspaceName == null) { + throw new IllegalArgumentException("Parameter keyspaceName is required and cannot be null."); } - if (tableRid == null) { - throw new IllegalArgumentException("Parameter tableRid is required and cannot be null."); + if (tableName == null) { + throw new IllegalArgumentException("Parameter tableName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.beginDeleteCassandraTable(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceRid, tableRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.beginDeleteCassandraTable(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceName, tableName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -6613,45 +6614,45 @@ private ServiceResponse> listGremlinDatabasesDele } /** - * Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided id. + * Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the GremlinDatabaseInner object if successful. */ - public GremlinDatabaseInner getGremlinDatabase(String resourceGroupName, String accountName, String databaseRid) { - return getGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid).toBlocking().single().body(); + public GremlinDatabaseInner getGremlinDatabase(String resourceGroupName, String accountName, String databaseName) { + return getGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName).toBlocking().single().body(); } /** - * Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided id. + * Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid), serviceCallback); + public ServiceFuture getGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName), serviceCallback); } /** - * Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided id. + * Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the GremlinDatabaseInner object */ - public Observable getGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseRid) { - return getGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid).map(new Func1, GremlinDatabaseInner>() { + public Observable getGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseName) { + return getGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName).map(new Func1, GremlinDatabaseInner>() { @Override public GremlinDatabaseInner call(ServiceResponse response) { return response.body(); @@ -6660,15 +6661,15 @@ public GremlinDatabaseInner call(ServiceResponse response) } /** - * Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided id. + * Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the GremlinDatabaseInner object */ - public Observable> getGremlinDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid) { + public Observable> getGremlinDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -6678,13 +6679,13 @@ public Observable> getGremlinDatabaseWithS if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getGremlinDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.getGremlinDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -6710,15 +6711,15 @@ private ServiceResponse getGremlinDatabaseDelegate(Respons * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param createUpdateGremlinDatabaseParameters The parameters to provide for the current Gremlin database. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the GremlinDatabaseInner object if successful. */ - public GremlinDatabaseInner createUpdateGremlinDatabase(String resourceGroupName, String accountName, String databaseRid, GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters) { - return createUpdateGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, createUpdateGremlinDatabaseParameters).toBlocking().last().body(); + public GremlinDatabaseInner createUpdateGremlinDatabase(String resourceGroupName, String accountName, String databaseName, GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters) { + return createUpdateGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName, createUpdateGremlinDatabaseParameters).toBlocking().last().body(); } /** @@ -6726,14 +6727,14 @@ public GremlinDatabaseInner createUpdateGremlinDatabase(String resourceGroupName * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param createUpdateGremlinDatabaseParameters The parameters to provide for the current Gremlin database. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture createUpdateGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseRid, GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(createUpdateGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, createUpdateGremlinDatabaseParameters), serviceCallback); + public ServiceFuture createUpdateGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseName, GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createUpdateGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName, createUpdateGremlinDatabaseParameters), serviceCallback); } /** @@ -6741,13 +6742,13 @@ public ServiceFuture createUpdateGremlinDatabaseAsync(Stri * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param createUpdateGremlinDatabaseParameters The parameters to provide for the current Gremlin database. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable createUpdateGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseRid, GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters) { - return createUpdateGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, createUpdateGremlinDatabaseParameters).map(new Func1, GremlinDatabaseInner>() { + public Observable createUpdateGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseName, GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters) { + return createUpdateGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName, createUpdateGremlinDatabaseParameters).map(new Func1, GremlinDatabaseInner>() { @Override public GremlinDatabaseInner call(ServiceResponse response) { return response.body(); @@ -6760,12 +6761,12 @@ public GremlinDatabaseInner call(ServiceResponse response) * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param createUpdateGremlinDatabaseParameters The parameters to provide for the current Gremlin database. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable> createUpdateGremlinDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid, GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters) { + public Observable> createUpdateGremlinDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName, GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -6775,8 +6776,8 @@ public Observable> createUpdateGremlinData if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); @@ -6785,7 +6786,7 @@ public Observable> createUpdateGremlinData throw new IllegalArgumentException("Parameter createUpdateGremlinDatabaseParameters is required and cannot be null."); } Validator.validate(createUpdateGremlinDatabaseParameters); - Observable> observable = service.createUpdateGremlinDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, this.client.apiVersion(), createUpdateGremlinDatabaseParameters, this.client.acceptLanguage(), this.client.userAgent()); + Observable> observable = service.createUpdateGremlinDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, this.client.apiVersion(), createUpdateGremlinDatabaseParameters, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -6794,15 +6795,15 @@ public Observable> createUpdateGremlinData * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param createUpdateGremlinDatabaseParameters The parameters to provide for the current Gremlin database. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the GremlinDatabaseInner object if successful. */ - public GremlinDatabaseInner beginCreateUpdateGremlinDatabase(String resourceGroupName, String accountName, String databaseRid, GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters) { - return beginCreateUpdateGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, createUpdateGremlinDatabaseParameters).toBlocking().single().body(); + public GremlinDatabaseInner beginCreateUpdateGremlinDatabase(String resourceGroupName, String accountName, String databaseName, GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters) { + return beginCreateUpdateGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName, createUpdateGremlinDatabaseParameters).toBlocking().single().body(); } /** @@ -6810,14 +6811,14 @@ public GremlinDatabaseInner beginCreateUpdateGremlinDatabase(String resourceGrou * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param createUpdateGremlinDatabaseParameters The parameters to provide for the current Gremlin database. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginCreateUpdateGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseRid, GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginCreateUpdateGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, createUpdateGremlinDatabaseParameters), serviceCallback); + public ServiceFuture beginCreateUpdateGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseName, GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateUpdateGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName, createUpdateGremlinDatabaseParameters), serviceCallback); } /** @@ -6825,13 +6826,13 @@ public ServiceFuture beginCreateUpdateGremlinDatabaseAsync * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param createUpdateGremlinDatabaseParameters The parameters to provide for the current Gremlin database. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the GremlinDatabaseInner object */ - public Observable beginCreateUpdateGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseRid, GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters) { - return beginCreateUpdateGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, createUpdateGremlinDatabaseParameters).map(new Func1, GremlinDatabaseInner>() { + public Observable beginCreateUpdateGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseName, GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters) { + return beginCreateUpdateGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName, createUpdateGremlinDatabaseParameters).map(new Func1, GremlinDatabaseInner>() { @Override public GremlinDatabaseInner call(ServiceResponse response) { return response.body(); @@ -6844,12 +6845,12 @@ public GremlinDatabaseInner call(ServiceResponse response) * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param createUpdateGremlinDatabaseParameters The parameters to provide for the current Gremlin database. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the GremlinDatabaseInner object */ - public Observable> beginCreateUpdateGremlinDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid, GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters) { + public Observable> beginCreateUpdateGremlinDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName, GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -6859,8 +6860,8 @@ public Observable> beginCreateUpdateGremli if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); @@ -6869,7 +6870,7 @@ public Observable> beginCreateUpdateGremli throw new IllegalArgumentException("Parameter createUpdateGremlinDatabaseParameters is required and cannot be null."); } Validator.validate(createUpdateGremlinDatabaseParameters); - return service.beginCreateUpdateGremlinDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, this.client.apiVersion(), createUpdateGremlinDatabaseParameters, this.client.acceptLanguage(), this.client.userAgent()) + return service.beginCreateUpdateGremlinDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, this.client.apiVersion(), createUpdateGremlinDatabaseParameters, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -6896,13 +6897,13 @@ private ServiceResponse beginCreateUpdateGremlinDatabaseDe * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void deleteGremlinDatabase(String resourceGroupName, String accountName, String databaseRid) { - deleteGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid).toBlocking().last().body(); + public void deleteGremlinDatabase(String resourceGroupName, String accountName, String databaseName) { + deleteGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName).toBlocking().last().body(); } /** @@ -6910,13 +6911,13 @@ public void deleteGremlinDatabase(String resourceGroupName, String accountName, * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deleteGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deleteGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid), serviceCallback); + public ServiceFuture deleteGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName), serviceCallback); } /** @@ -6924,12 +6925,12 @@ public ServiceFuture deleteGremlinDatabaseAsync(String resourceGroupName, * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable deleteGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseRid) { - return deleteGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid).map(new Func1, Void>() { + public Observable deleteGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseName) { + return deleteGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -6942,11 +6943,11 @@ public Void call(ServiceResponse response) { * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable> deleteGremlinDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid) { + public Observable> deleteGremlinDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -6956,13 +6957,13 @@ public Observable> deleteGremlinDatabaseWithServiceRespons if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Observable> observable = service.deleteGremlinDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + Observable> observable = service.deleteGremlinDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -6971,13 +6972,13 @@ public Observable> deleteGremlinDatabaseWithServiceRespons * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void beginDeleteGremlinDatabase(String resourceGroupName, String accountName, String databaseRid) { - beginDeleteGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid).toBlocking().single().body(); + public void beginDeleteGremlinDatabase(String resourceGroupName, String accountName, String databaseName) { + beginDeleteGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName).toBlocking().single().body(); } /** @@ -6985,13 +6986,13 @@ public void beginDeleteGremlinDatabase(String resourceGroupName, String accountN * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginDeleteGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginDeleteGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid), serviceCallback); + public ServiceFuture beginDeleteGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName), serviceCallback); } /** @@ -6999,12 +7000,12 @@ public ServiceFuture beginDeleteGremlinDatabaseAsync(String resourceGroupN * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable beginDeleteGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseRid) { - return beginDeleteGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseRid).map(new Func1, Void>() { + public Observable beginDeleteGremlinDatabaseAsync(String resourceGroupName, String accountName, String databaseName) { + return beginDeleteGremlinDatabaseWithServiceResponseAsync(resourceGroupName, accountName, databaseName).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -7017,11 +7018,11 @@ public Void call(ServiceResponse response) { * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable> beginDeleteGremlinDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid) { + public Observable> beginDeleteGremlinDatabaseWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -7031,13 +7032,13 @@ public Observable> beginDeleteGremlinDatabaseWithServiceRe if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.beginDeleteGremlinDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.beginDeleteGremlinDatabase(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -7060,62 +7061,62 @@ private ServiceResponse beginDeleteGremlinDatabaseDelegate(Response listGremlinContainers(String resourceGroupName, String accountName, String databaseRid) { - return listGremlinContainersWithServiceResponseAsync(resourceGroupName, accountName, databaseRid).toBlocking().single().body(); + public List listGremlinGraphs(String resourceGroupName, String accountName, String databaseName) { + return listGremlinGraphsWithServiceResponseAsync(resourceGroupName, accountName, databaseName).toBlocking().single().body(); } /** - * Lists the Gremlin container under an existing Azure Cosmos DB database account. + * Lists the Gremlin graph under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listGremlinContainersAsync(String resourceGroupName, String accountName, String databaseRid, final ServiceCallback> serviceCallback) { - return ServiceFuture.fromResponse(listGremlinContainersWithServiceResponseAsync(resourceGroupName, accountName, databaseRid), serviceCallback); + public ServiceFuture> listGremlinGraphsAsync(String resourceGroupName, String accountName, String databaseName, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listGremlinGraphsWithServiceResponseAsync(resourceGroupName, accountName, databaseName), serviceCallback); } /** - * Lists the Gremlin container under an existing Azure Cosmos DB database account. + * Lists the Gremlin graph under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the List<ContainerInner> object + * @return the observable to the List<GremlinGraphInner> object */ - public Observable> listGremlinContainersAsync(String resourceGroupName, String accountName, String databaseRid) { - return listGremlinContainersWithServiceResponseAsync(resourceGroupName, accountName, databaseRid).map(new Func1>, List>() { + public Observable> listGremlinGraphsAsync(String resourceGroupName, String accountName, String databaseName) { + return listGremlinGraphsWithServiceResponseAsync(resourceGroupName, accountName, databaseName).map(new Func1>, List>() { @Override - public List call(ServiceResponse> response) { + public List call(ServiceResponse> response) { return response.body(); } }); } /** - * Lists the Gremlin container under an existing Azure Cosmos DB database account. + * Lists the Gremlin graph under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. + * @param databaseName Cosmos DB database name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the List<ContainerInner> object + * @return the observable to the List<GremlinGraphInner> object */ - public Observable>> listGremlinContainersWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid) { + public Observable>> listGremlinGraphsWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -7125,23 +7126,23 @@ public Observable>> listGremlinContainersWi if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listGremlinContainers(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + return service.listGremlinGraphs(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable>> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse> result = listGremlinContainersDelegate(response); - List items = null; + ServiceResponse> result = listGremlinGraphsDelegate(response); + List items = null; if (result.body() != null) { items = result.body().items(); } - ServiceResponse> clientResponse = new ServiceResponse>(items, result.response()); + ServiceResponse> clientResponse = new ServiceResponse>(items, result.response()); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -7150,74 +7151,74 @@ public Observable>> call(Response> listGremlinContainersDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listGremlinGraphsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(CloudException.class) .build(response); } /** - * Gets the Gremlin container under an existing Azure Cosmos DB database account. + * Gets the Gremlin graph under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param graphName Cosmos DB graph name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the ContainerInner object if successful. + * @return the GremlinGraphInner object if successful. */ - public ContainerInner getGremlinContainer(String resourceGroupName, String accountName, String databaseRid, String containerRid) { - return getGremlinContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid).toBlocking().single().body(); + public GremlinGraphInner getGremlinGraph(String resourceGroupName, String accountName, String databaseName, String graphName) { + return getGremlinGraphWithServiceResponseAsync(resourceGroupName, accountName, databaseName, graphName).toBlocking().single().body(); } /** - * Gets the Gremlin container under an existing Azure Cosmos DB database account. + * Gets the Gremlin graph under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param graphName Cosmos DB graph name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getGremlinContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getGremlinContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid), serviceCallback); + public ServiceFuture getGremlinGraphAsync(String resourceGroupName, String accountName, String databaseName, String graphName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getGremlinGraphWithServiceResponseAsync(resourceGroupName, accountName, databaseName, graphName), serviceCallback); } /** - * Gets the Gremlin container under an existing Azure Cosmos DB database account. + * Gets the Gremlin graph under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param graphName Cosmos DB graph name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ContainerInner object + * @return the observable to the GremlinGraphInner object */ - public Observable getGremlinContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid) { - return getGremlinContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid).map(new Func1, ContainerInner>() { + public Observable getGremlinGraphAsync(String resourceGroupName, String accountName, String databaseName, String graphName) { + return getGremlinGraphWithServiceResponseAsync(resourceGroupName, accountName, databaseName, graphName).map(new Func1, GremlinGraphInner>() { @Override - public ContainerInner call(ServiceResponse response) { + public GremlinGraphInner call(ServiceResponse response) { return response.body(); } }); } /** - * Gets the Gremlin container under an existing Azure Cosmos DB database account. + * Gets the Gremlin graph under an existing Azure Cosmos DB database account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param graphName Cosmos DB graph name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ContainerInner object + * @return the observable to the GremlinGraphInner object */ - public Observable> getGremlinContainerWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid) { + public Observable> getGremlinGraphWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName, String graphName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -7227,21 +7228,21 @@ public Observable> getGremlinContainerWithServic if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } - if (containerRid == null) { - throw new IllegalArgumentException("Parameter containerRid is required and cannot be null."); + if (graphName == null) { + throw new IllegalArgumentException("Parameter graphName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getGremlinContainer(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, containerRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getGremlinGraph(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, graphName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getGremlinContainerDelegate(response); + ServiceResponse clientResponse = getGremlinGraphDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -7250,78 +7251,78 @@ public Observable> call(Response r }); } - private ServiceResponse getGremlinContainerDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getGremlinGraphDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } /** - * Create or update an Azure Cosmos DB Gremlin container. + * Create or update an Azure Cosmos DB Gremlin graph. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. - * @param createUpdateGremlinContainerParameters The parameters to provide for the current Gremlin container. + * @param databaseName Cosmos DB database name. + * @param graphName Cosmos DB graph name. + * @param createUpdateGremlinGraphParameters The parameters to provide for the current Gremlin graph. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the ContainerInner object if successful. + * @return the GremlinGraphInner object if successful. */ - public ContainerInner createUpdateGremlinContainer(String resourceGroupName, String accountName, String databaseRid, String containerRid, ContainerCreateUpdateParameters createUpdateGremlinContainerParameters) { - return createUpdateGremlinContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid, createUpdateGremlinContainerParameters).toBlocking().last().body(); + public GremlinGraphInner createUpdateGremlinGraph(String resourceGroupName, String accountName, String databaseName, String graphName, GremlinGraphCreateUpdateParameters createUpdateGremlinGraphParameters) { + return createUpdateGremlinGraphWithServiceResponseAsync(resourceGroupName, accountName, databaseName, graphName, createUpdateGremlinGraphParameters).toBlocking().last().body(); } /** - * Create or update an Azure Cosmos DB Gremlin container. + * Create or update an Azure Cosmos DB Gremlin graph. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. - * @param createUpdateGremlinContainerParameters The parameters to provide for the current Gremlin container. + * @param databaseName Cosmos DB database name. + * @param graphName Cosmos DB graph name. + * @param createUpdateGremlinGraphParameters The parameters to provide for the current Gremlin graph. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture createUpdateGremlinContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid, ContainerCreateUpdateParameters createUpdateGremlinContainerParameters, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(createUpdateGremlinContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid, createUpdateGremlinContainerParameters), serviceCallback); + public ServiceFuture createUpdateGremlinGraphAsync(String resourceGroupName, String accountName, String databaseName, String graphName, GremlinGraphCreateUpdateParameters createUpdateGremlinGraphParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createUpdateGremlinGraphWithServiceResponseAsync(resourceGroupName, accountName, databaseName, graphName, createUpdateGremlinGraphParameters), serviceCallback); } /** - * Create or update an Azure Cosmos DB Gremlin container. + * Create or update an Azure Cosmos DB Gremlin graph. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. - * @param createUpdateGremlinContainerParameters The parameters to provide for the current Gremlin container. + * @param databaseName Cosmos DB database name. + * @param graphName Cosmos DB graph name. + * @param createUpdateGremlinGraphParameters The parameters to provide for the current Gremlin graph. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable createUpdateGremlinContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid, ContainerCreateUpdateParameters createUpdateGremlinContainerParameters) { - return createUpdateGremlinContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid, createUpdateGremlinContainerParameters).map(new Func1, ContainerInner>() { + public Observable createUpdateGremlinGraphAsync(String resourceGroupName, String accountName, String databaseName, String graphName, GremlinGraphCreateUpdateParameters createUpdateGremlinGraphParameters) { + return createUpdateGremlinGraphWithServiceResponseAsync(resourceGroupName, accountName, databaseName, graphName, createUpdateGremlinGraphParameters).map(new Func1, GremlinGraphInner>() { @Override - public ContainerInner call(ServiceResponse response) { + public GremlinGraphInner call(ServiceResponse response) { return response.body(); } }); } /** - * Create or update an Azure Cosmos DB Gremlin container. + * Create or update an Azure Cosmos DB Gremlin graph. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. - * @param createUpdateGremlinContainerParameters The parameters to provide for the current Gremlin container. + * @param databaseName Cosmos DB database name. + * @param graphName Cosmos DB graph name. + * @param createUpdateGremlinGraphParameters The parameters to provide for the current Gremlin graph. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable> createUpdateGremlinContainerWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid, ContainerCreateUpdateParameters createUpdateGremlinContainerParameters) { + public Observable> createUpdateGremlinGraphWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName, String graphName, GremlinGraphCreateUpdateParameters createUpdateGremlinGraphParameters) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -7331,88 +7332,88 @@ public Observable> createUpdateGremlinContainerW if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } - if (containerRid == null) { - throw new IllegalArgumentException("Parameter containerRid is required and cannot be null."); + if (graphName == null) { + throw new IllegalArgumentException("Parameter graphName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - if (createUpdateGremlinContainerParameters == null) { - throw new IllegalArgumentException("Parameter createUpdateGremlinContainerParameters is required and cannot be null."); + if (createUpdateGremlinGraphParameters == null) { + throw new IllegalArgumentException("Parameter createUpdateGremlinGraphParameters is required and cannot be null."); } - Validator.validate(createUpdateGremlinContainerParameters); - Observable> observable = service.createUpdateGremlinContainer(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, containerRid, this.client.apiVersion(), createUpdateGremlinContainerParameters, this.client.acceptLanguage(), this.client.userAgent()); - return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + Validator.validate(createUpdateGremlinGraphParameters); + Observable> observable = service.createUpdateGremlinGraph(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, graphName, this.client.apiVersion(), createUpdateGremlinGraphParameters, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } /** - * Create or update an Azure Cosmos DB Gremlin container. + * Create or update an Azure Cosmos DB Gremlin graph. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. - * @param createUpdateGremlinContainerParameters The parameters to provide for the current Gremlin container. + * @param databaseName Cosmos DB database name. + * @param graphName Cosmos DB graph name. + * @param createUpdateGremlinGraphParameters The parameters to provide for the current Gremlin graph. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the ContainerInner object if successful. + * @return the GremlinGraphInner object if successful. */ - public ContainerInner beginCreateUpdateGremlinContainer(String resourceGroupName, String accountName, String databaseRid, String containerRid, ContainerCreateUpdateParameters createUpdateGremlinContainerParameters) { - return beginCreateUpdateGremlinContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid, createUpdateGremlinContainerParameters).toBlocking().single().body(); + public GremlinGraphInner beginCreateUpdateGremlinGraph(String resourceGroupName, String accountName, String databaseName, String graphName, GremlinGraphCreateUpdateParameters createUpdateGremlinGraphParameters) { + return beginCreateUpdateGremlinGraphWithServiceResponseAsync(resourceGroupName, accountName, databaseName, graphName, createUpdateGremlinGraphParameters).toBlocking().single().body(); } /** - * Create or update an Azure Cosmos DB Gremlin container. + * Create or update an Azure Cosmos DB Gremlin graph. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. - * @param createUpdateGremlinContainerParameters The parameters to provide for the current Gremlin container. + * @param databaseName Cosmos DB database name. + * @param graphName Cosmos DB graph name. + * @param createUpdateGremlinGraphParameters The parameters to provide for the current Gremlin graph. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginCreateUpdateGremlinContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid, ContainerCreateUpdateParameters createUpdateGremlinContainerParameters, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginCreateUpdateGremlinContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid, createUpdateGremlinContainerParameters), serviceCallback); + public ServiceFuture beginCreateUpdateGremlinGraphAsync(String resourceGroupName, String accountName, String databaseName, String graphName, GremlinGraphCreateUpdateParameters createUpdateGremlinGraphParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateUpdateGremlinGraphWithServiceResponseAsync(resourceGroupName, accountName, databaseName, graphName, createUpdateGremlinGraphParameters), serviceCallback); } /** - * Create or update an Azure Cosmos DB Gremlin container. + * Create or update an Azure Cosmos DB Gremlin graph. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. - * @param createUpdateGremlinContainerParameters The parameters to provide for the current Gremlin container. + * @param databaseName Cosmos DB database name. + * @param graphName Cosmos DB graph name. + * @param createUpdateGremlinGraphParameters The parameters to provide for the current Gremlin graph. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ContainerInner object + * @return the observable to the GremlinGraphInner object */ - public Observable beginCreateUpdateGremlinContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid, ContainerCreateUpdateParameters createUpdateGremlinContainerParameters) { - return beginCreateUpdateGremlinContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid, createUpdateGremlinContainerParameters).map(new Func1, ContainerInner>() { + public Observable beginCreateUpdateGremlinGraphAsync(String resourceGroupName, String accountName, String databaseName, String graphName, GremlinGraphCreateUpdateParameters createUpdateGremlinGraphParameters) { + return beginCreateUpdateGremlinGraphWithServiceResponseAsync(resourceGroupName, accountName, databaseName, graphName, createUpdateGremlinGraphParameters).map(new Func1, GremlinGraphInner>() { @Override - public ContainerInner call(ServiceResponse response) { + public GremlinGraphInner call(ServiceResponse response) { return response.body(); } }); } /** - * Create or update an Azure Cosmos DB Gremlin container. + * Create or update an Azure Cosmos DB Gremlin graph. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. - * @param createUpdateGremlinContainerParameters The parameters to provide for the current Gremlin container. + * @param databaseName Cosmos DB database name. + * @param graphName Cosmos DB graph name. + * @param createUpdateGremlinGraphParameters The parameters to provide for the current Gremlin graph. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ContainerInner object + * @return the observable to the GremlinGraphInner object */ - public Observable> beginCreateUpdateGremlinContainerWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid, ContainerCreateUpdateParameters createUpdateGremlinContainerParameters) { + public Observable> beginCreateUpdateGremlinGraphWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName, String graphName, GremlinGraphCreateUpdateParameters createUpdateGremlinGraphParameters) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -7422,25 +7423,25 @@ public Observable> beginCreateUpdateGremlinConta if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } - if (containerRid == null) { - throw new IllegalArgumentException("Parameter containerRid is required and cannot be null."); + if (graphName == null) { + throw new IllegalArgumentException("Parameter graphName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - if (createUpdateGremlinContainerParameters == null) { - throw new IllegalArgumentException("Parameter createUpdateGremlinContainerParameters is required and cannot be null."); + if (createUpdateGremlinGraphParameters == null) { + throw new IllegalArgumentException("Parameter createUpdateGremlinGraphParameters is required and cannot be null."); } - Validator.validate(createUpdateGremlinContainerParameters); - return service.beginCreateUpdateGremlinContainer(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, containerRid, this.client.apiVersion(), createUpdateGremlinContainerParameters, this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(createUpdateGremlinGraphParameters); + return service.beginCreateUpdateGremlinGraph(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, graphName, this.client.apiVersion(), createUpdateGremlinGraphParameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = beginCreateUpdateGremlinContainerDelegate(response); + ServiceResponse clientResponse = beginCreateUpdateGremlinGraphDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -7449,56 +7450,56 @@ public Observable> call(Response r }); } - private ServiceResponse beginCreateUpdateGremlinContainerDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse beginCreateUpdateGremlinGraphDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .register(202, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } /** - * Deletes an existing Azure Cosmos DB Gremlin container. + * Deletes an existing Azure Cosmos DB Gremlin graph. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param graphName Cosmos DB graph name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void deleteGremlinContainer(String resourceGroupName, String accountName, String databaseRid, String containerRid) { - deleteGremlinContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid).toBlocking().last().body(); + public void deleteGremlinGraph(String resourceGroupName, String accountName, String databaseName, String graphName) { + deleteGremlinGraphWithServiceResponseAsync(resourceGroupName, accountName, databaseName, graphName).toBlocking().last().body(); } /** - * Deletes an existing Azure Cosmos DB Gremlin container. + * Deletes an existing Azure Cosmos DB Gremlin graph. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param graphName Cosmos DB graph name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deleteGremlinContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deleteGremlinContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid), serviceCallback); + public ServiceFuture deleteGremlinGraphAsync(String resourceGroupName, String accountName, String databaseName, String graphName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteGremlinGraphWithServiceResponseAsync(resourceGroupName, accountName, databaseName, graphName), serviceCallback); } /** - * Deletes an existing Azure Cosmos DB Gremlin container. + * Deletes an existing Azure Cosmos DB Gremlin graph. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param graphName Cosmos DB graph name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable deleteGremlinContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid) { - return deleteGremlinContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid).map(new Func1, Void>() { + public Observable deleteGremlinGraphAsync(String resourceGroupName, String accountName, String databaseName, String graphName) { + return deleteGremlinGraphWithServiceResponseAsync(resourceGroupName, accountName, databaseName, graphName).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -7507,16 +7508,16 @@ public Void call(ServiceResponse response) { } /** - * Deletes an existing Azure Cosmos DB Gremlin container. + * Deletes an existing Azure Cosmos DB Gremlin graph. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param graphName Cosmos DB graph name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable> deleteGremlinContainerWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid) { + public Observable> deleteGremlinGraphWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName, String graphName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -7526,61 +7527,61 @@ public Observable> deleteGremlinContainerWithServiceRespon if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } - if (containerRid == null) { - throw new IllegalArgumentException("Parameter containerRid is required and cannot be null."); + if (graphName == null) { + throw new IllegalArgumentException("Parameter graphName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Observable> observable = service.deleteGremlinContainer(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, containerRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + Observable> observable = service.deleteGremlinGraph(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, graphName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } /** - * Deletes an existing Azure Cosmos DB Gremlin container. + * Deletes an existing Azure Cosmos DB Gremlin graph. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param graphName Cosmos DB graph name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void beginDeleteGremlinContainer(String resourceGroupName, String accountName, String databaseRid, String containerRid) { - beginDeleteGremlinContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid).toBlocking().single().body(); + public void beginDeleteGremlinGraph(String resourceGroupName, String accountName, String databaseName, String graphName) { + beginDeleteGremlinGraphWithServiceResponseAsync(resourceGroupName, accountName, databaseName, graphName).toBlocking().single().body(); } /** - * Deletes an existing Azure Cosmos DB Gremlin container. + * Deletes an existing Azure Cosmos DB Gremlin graph. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param graphName Cosmos DB graph name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginDeleteGremlinContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginDeleteGremlinContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid), serviceCallback); + public ServiceFuture beginDeleteGremlinGraphAsync(String resourceGroupName, String accountName, String databaseName, String graphName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteGremlinGraphWithServiceResponseAsync(resourceGroupName, accountName, databaseName, graphName), serviceCallback); } /** - * Deletes an existing Azure Cosmos DB Gremlin container. + * Deletes an existing Azure Cosmos DB Gremlin graph. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param graphName Cosmos DB graph name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable beginDeleteGremlinContainerAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid) { - return beginDeleteGremlinContainerWithServiceResponseAsync(resourceGroupName, accountName, databaseRid, containerRid).map(new Func1, Void>() { + public Observable beginDeleteGremlinGraphAsync(String resourceGroupName, String accountName, String databaseName, String graphName) { + return beginDeleteGremlinGraphWithServiceResponseAsync(resourceGroupName, accountName, databaseName, graphName).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -7589,16 +7590,16 @@ public Void call(ServiceResponse response) { } /** - * Deletes an existing Azure Cosmos DB Gremlin container. + * Deletes an existing Azure Cosmos DB Gremlin graph. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. - * @param databaseRid Cosmos DB database rid. - * @param containerRid Cosmos DB container rid. + * @param databaseName Cosmos DB database name. + * @param graphName Cosmos DB graph name. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable> beginDeleteGremlinContainerWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseRid, String containerRid) { + public Observable> beginDeleteGremlinGraphWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName, String graphName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -7608,21 +7609,21 @@ public Observable> beginDeleteGremlinContainerWithServiceR if (accountName == null) { throw new IllegalArgumentException("Parameter accountName is required and cannot be null."); } - if (databaseRid == null) { - throw new IllegalArgumentException("Parameter databaseRid is required and cannot be null."); + if (databaseName == null) { + throw new IllegalArgumentException("Parameter databaseName is required and cannot be null."); } - if (containerRid == null) { - throw new IllegalArgumentException("Parameter containerRid is required and cannot be null."); + if (graphName == null) { + throw new IllegalArgumentException("Parameter graphName is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.beginDeleteGremlinContainer(this.client.subscriptionId(), resourceGroupName, accountName, databaseRid, containerRid, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.beginDeleteGremlinGraph(this.client.subscriptionId(), resourceGroupName, accountName, databaseName, graphName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { try { - ServiceResponse clientResponse = beginDeleteGremlinContainerDelegate(response); + ServiceResponse clientResponse = beginDeleteGremlinGraphDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -7631,7 +7632,7 @@ public Observable> call(Response response) { }); } - private ServiceResponse beginDeleteGremlinContainerDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + private ServiceResponse beginDeleteGremlinGraphDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(202, new TypeToken() { }.getType()) .register(204, new TypeToken() { }.getType()) diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/GremlinGraphImpl.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/GremlinGraphImpl.java new file mode 100644 index 000000000000..2b6e8be9d7d4 --- /dev/null +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/GremlinGraphImpl.java @@ -0,0 +1,192 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.cosmosdb.v2015_04_08.implementation; + +import com.microsoft.azure.management.cosmosdb.v2015_04_08.GremlinGraph; +import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; +import rx.Observable; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.GremlinGraphCreateUpdateParameters; +import java.util.Map; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.ConflictResolutionPolicy; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.IndexingPolicy; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.ContainerPartitionKey; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.UniqueKeyPolicy; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.GremlinGraphResource; +import rx.functions.Func1; + +class GremlinGraphImpl extends CreatableUpdatableImpl implements GremlinGraph, GremlinGraph.Definition, GremlinGraph.Update { + private final DocumentDBManager manager; + private String resourceGroupName; + private String accountName; + private String databaseName; + private String graphName; + private GremlinGraphCreateUpdateParameters createOrUpdateParameter; + + GremlinGraphImpl(String name, DocumentDBManager manager) { + super(name, new GremlinGraphInner()); + this.manager = manager; + // Set resource name + this.graphName = name; + // + this.createOrUpdateParameter = new GremlinGraphCreateUpdateParameters(); + } + + GremlinGraphImpl(GremlinGraphInner inner, DocumentDBManager manager) { + super(inner.name(), inner); + this.manager = manager; + // Set resource name + this.graphName = inner.name(); + // set resource ancestor and positional variables + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.accountName = IdParsingUtils.getValueFromIdByName(inner.id(), "databaseAccounts"); + this.databaseName = IdParsingUtils.getValueFromIdByName(inner.id(), "databases"); + this.graphName = IdParsingUtils.getValueFromIdByName(inner.id(), "graphs"); + // + this.createOrUpdateParameter = new GremlinGraphCreateUpdateParameters(); + } + + @Override + public DocumentDBManager manager() { + return this.manager; + } + + @Override + public Observable createResourceAsync() { + DatabaseAccountsInner client = this.manager().inner().databaseAccounts(); + return client.createUpdateGremlinGraphAsync(this.resourceGroupName, this.accountName, this.databaseName, this.graphName, this.createOrUpdateParameter) + .map(new Func1() { + @Override + public GremlinGraphInner call(GremlinGraphInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + DatabaseAccountsInner client = this.manager().inner().databaseAccounts(); + return client.createUpdateGremlinGraphAsync(this.resourceGroupName, this.accountName, this.databaseName, this.graphName, this.createOrUpdateParameter) + .map(new Func1() { + @Override + public GremlinGraphInner call(GremlinGraphInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + DatabaseAccountsInner client = this.manager().inner().databaseAccounts(); + return client.getGremlinGraphAsync(this.resourceGroupName, this.accountName, this.databaseName, this.graphName); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + private void resetCreateUpdateParameters() { + this.createOrUpdateParameter = new GremlinGraphCreateUpdateParameters(); + } + + @Override + public String _etag() { + return this.inner()._etag(); + } + + @Override + public String _rid() { + return this.inner()._rid(); + } + + @Override + public Object _ts() { + return this.inner()._ts(); + } + + @Override + public ConflictResolutionPolicy conflictResolutionPolicy() { + return this.inner().conflictResolutionPolicy(); + } + + @Override + public Integer defaultTtl() { + return this.inner().defaultTtl(); + } + + @Override + public String gremlinGraphId() { + return this.inner().gremlinGraphId(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public IndexingPolicy indexingPolicy() { + return this.inner().indexingPolicy(); + } + + @Override + public String location() { + return this.inner().location(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public ContainerPartitionKey partitionKey() { + return this.inner().partitionKey(); + } + + @Override + public Map tags() { + return this.inner().getTags(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public UniqueKeyPolicy uniqueKeyPolicy() { + return this.inner().uniqueKeyPolicy(); + } + + @Override + public GremlinGraphImpl withExistingDatabasis(String resourceGroupName, String accountName, String databaseName) { + this.resourceGroupName = resourceGroupName; + this.accountName = accountName; + this.databaseName = databaseName; + return this; + } + + @Override + public GremlinGraphImpl withOptions(Map options) { + this.createOrUpdateParameter.withOptions(options); + return this; + } + + @Override + public GremlinGraphImpl withResource(GremlinGraphResource resource) { + this.createOrUpdateParameter.withResource(resource); + return this; + } + +} diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/GremlinGraphInner.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/GremlinGraphInner.java new file mode 100644 index 000000000000..c237c1b3b1ce --- /dev/null +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/GremlinGraphInner.java @@ -0,0 +1,266 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.cosmosdb.v2015_04_08.implementation; + +import com.microsoft.azure.management.cosmosdb.v2015_04_08.IndexingPolicy; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.ContainerPartitionKey; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.UniqueKeyPolicy; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.ConflictResolutionPolicy; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * An Azure Cosmos DB Gremlin graph. + */ +@JsonFlatten +@SkipParentValidation +public class GremlinGraphInner extends Resource { + /** + * Name of the Cosmos DB Gremlin graph. + */ + @JsonProperty(value = "properties.id", required = true) + private String gremlinGraphId; + + /** + * The configuration of the indexing policy. By default, the indexing is + * automatic for all document paths within the graph. + */ + @JsonProperty(value = "properties.indexingPolicy") + private IndexingPolicy indexingPolicy; + + /** + * The configuration of the partition key to be used for partitioning data + * into multiple partitions. + */ + @JsonProperty(value = "properties.partitionKey") + private ContainerPartitionKey partitionKey; + + /** + * Default time to live. + */ + @JsonProperty(value = "properties.defaultTtl") + private Integer defaultTtl; + + /** + * The unique key policy configuration for specifying uniqueness + * constraints on documents in the collection in the Azure Cosmos DB + * service. + */ + @JsonProperty(value = "properties.uniqueKeyPolicy") + private UniqueKeyPolicy uniqueKeyPolicy; + + /** + * The conflict resolution policy for the graph. + */ + @JsonProperty(value = "properties.conflictResolutionPolicy") + private ConflictResolutionPolicy conflictResolutionPolicy; + + /** + * A system generated property. A unique identifier. + */ + @JsonProperty(value = "properties._rid") + private String _rid; + + /** + * A system generated property that denotes the last updated timestamp of + * the resource. + */ + @JsonProperty(value = "properties._ts") + private Object _ts; + + /** + * A system generated property representing the resource etag required for + * optimistic concurrency control. + */ + @JsonProperty(value = "properties._etag") + private String _etag; + + /** + * Get name of the Cosmos DB Gremlin graph. + * + * @return the gremlinGraphId value + */ + public String gremlinGraphId() { + return this.gremlinGraphId; + } + + /** + * Set name of the Cosmos DB Gremlin graph. + * + * @param gremlinGraphId the gremlinGraphId value to set + * @return the GremlinGraphInner object itself. + */ + public GremlinGraphInner withGremlinGraphId(String gremlinGraphId) { + this.gremlinGraphId = gremlinGraphId; + return this; + } + + /** + * Get the configuration of the indexing policy. By default, the indexing is automatic for all document paths within the graph. + * + * @return the indexingPolicy value + */ + public IndexingPolicy indexingPolicy() { + return this.indexingPolicy; + } + + /** + * Set the configuration of the indexing policy. By default, the indexing is automatic for all document paths within the graph. + * + * @param indexingPolicy the indexingPolicy value to set + * @return the GremlinGraphInner object itself. + */ + public GremlinGraphInner withIndexingPolicy(IndexingPolicy indexingPolicy) { + this.indexingPolicy = indexingPolicy; + return this; + } + + /** + * Get the configuration of the partition key to be used for partitioning data into multiple partitions. + * + * @return the partitionKey value + */ + public ContainerPartitionKey partitionKey() { + return this.partitionKey; + } + + /** + * Set the configuration of the partition key to be used for partitioning data into multiple partitions. + * + * @param partitionKey the partitionKey value to set + * @return the GremlinGraphInner object itself. + */ + public GremlinGraphInner withPartitionKey(ContainerPartitionKey partitionKey) { + this.partitionKey = partitionKey; + return this; + } + + /** + * Get default time to live. + * + * @return the defaultTtl value + */ + public Integer defaultTtl() { + return this.defaultTtl; + } + + /** + * Set default time to live. + * + * @param defaultTtl the defaultTtl value to set + * @return the GremlinGraphInner object itself. + */ + public GremlinGraphInner withDefaultTtl(Integer defaultTtl) { + this.defaultTtl = defaultTtl; + return this; + } + + /** + * Get the unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service. + * + * @return the uniqueKeyPolicy value + */ + public UniqueKeyPolicy uniqueKeyPolicy() { + return this.uniqueKeyPolicy; + } + + /** + * Set the unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service. + * + * @param uniqueKeyPolicy the uniqueKeyPolicy value to set + * @return the GremlinGraphInner object itself. + */ + public GremlinGraphInner withUniqueKeyPolicy(UniqueKeyPolicy uniqueKeyPolicy) { + this.uniqueKeyPolicy = uniqueKeyPolicy; + return this; + } + + /** + * Get the conflict resolution policy for the graph. + * + * @return the conflictResolutionPolicy value + */ + public ConflictResolutionPolicy conflictResolutionPolicy() { + return this.conflictResolutionPolicy; + } + + /** + * Set the conflict resolution policy for the graph. + * + * @param conflictResolutionPolicy the conflictResolutionPolicy value to set + * @return the GremlinGraphInner object itself. + */ + public GremlinGraphInner withConflictResolutionPolicy(ConflictResolutionPolicy conflictResolutionPolicy) { + this.conflictResolutionPolicy = conflictResolutionPolicy; + return this; + } + + /** + * Get a system generated property. A unique identifier. + * + * @return the _rid value + */ + public String _rid() { + return this._rid; + } + + /** + * Set a system generated property. A unique identifier. + * + * @param _rid the _rid value to set + * @return the GremlinGraphInner object itself. + */ + public GremlinGraphInner with_rid(String _rid) { + this._rid = _rid; + return this; + } + + /** + * Get a system generated property that denotes the last updated timestamp of the resource. + * + * @return the _ts value + */ + public Object _ts() { + return this._ts; + } + + /** + * Set a system generated property that denotes the last updated timestamp of the resource. + * + * @param _ts the _ts value to set + * @return the GremlinGraphInner object itself. + */ + public GremlinGraphInner with_ts(Object _ts) { + this._ts = _ts; + return this; + } + + /** + * Get a system generated property representing the resource etag required for optimistic concurrency control. + * + * @return the _etag value + */ + public String _etag() { + return this._etag; + } + + /** + * Set a system generated property representing the resource etag required for optimistic concurrency control. + * + * @param _etag the _etag value to set + * @return the GremlinGraphInner object itself. + */ + public GremlinGraphInner with_etag(String _etag) { + this._etag = _etag; + return this; + } + +} diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/MongoDBCollectionImpl.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/MongoDBCollectionImpl.java new file mode 100644 index 000000000000..22b6ec9ba789 --- /dev/null +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/MongoDBCollectionImpl.java @@ -0,0 +1,160 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.cosmosdb.v2015_04_08.implementation; + +import com.microsoft.azure.management.cosmosdb.v2015_04_08.MongoDBCollection; +import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; +import rx.Observable; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.MongoDBCollectionCreateUpdateParameters; +import java.util.Map; +import java.util.List; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.MongoIndex; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.MongoDBCollectionResource; +import rx.functions.Func1; + +class MongoDBCollectionImpl extends CreatableUpdatableImpl implements MongoDBCollection, MongoDBCollection.Definition, MongoDBCollection.Update { + private final DocumentDBManager manager; + private String resourceGroupName; + private String accountName; + private String databaseName; + private String collectionName; + private MongoDBCollectionCreateUpdateParameters createOrUpdateParameter; + + MongoDBCollectionImpl(String name, DocumentDBManager manager) { + super(name, new MongoDBCollectionInner()); + this.manager = manager; + // Set resource name + this.collectionName = name; + // + this.createOrUpdateParameter = new MongoDBCollectionCreateUpdateParameters(); + } + + MongoDBCollectionImpl(MongoDBCollectionInner inner, DocumentDBManager manager) { + super(inner.name(), inner); + this.manager = manager; + // Set resource name + this.collectionName = inner.name(); + // set resource ancestor and positional variables + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.accountName = IdParsingUtils.getValueFromIdByName(inner.id(), "databaseAccounts"); + this.databaseName = IdParsingUtils.getValueFromIdByName(inner.id(), "databases"); + this.collectionName = IdParsingUtils.getValueFromIdByName(inner.id(), "collections"); + // + this.createOrUpdateParameter = new MongoDBCollectionCreateUpdateParameters(); + } + + @Override + public DocumentDBManager manager() { + return this.manager; + } + + @Override + public Observable createResourceAsync() { + DatabaseAccountsInner client = this.manager().inner().databaseAccounts(); + return client.createUpdateMongoDBCollectionAsync(this.resourceGroupName, this.accountName, this.databaseName, this.collectionName, this.createOrUpdateParameter) + .map(new Func1() { + @Override + public MongoDBCollectionInner call(MongoDBCollectionInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + DatabaseAccountsInner client = this.manager().inner().databaseAccounts(); + return client.createUpdateMongoDBCollectionAsync(this.resourceGroupName, this.accountName, this.databaseName, this.collectionName, this.createOrUpdateParameter) + .map(new Func1() { + @Override + public MongoDBCollectionInner call(MongoDBCollectionInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + DatabaseAccountsInner client = this.manager().inner().databaseAccounts(); + return client.getMongoDBCollectionAsync(this.resourceGroupName, this.accountName, this.databaseName, this.collectionName); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + private void resetCreateUpdateParameters() { + this.createOrUpdateParameter = new MongoDBCollectionCreateUpdateParameters(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public List indexes() { + return this.inner().indexes(); + } + + @Override + public String location() { + return this.inner().location(); + } + + @Override + public String mongoDBCollectionId() { + return this.inner().mongoDBCollectionId(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public Map shardKey() { + return this.inner().shardKey(); + } + + @Override + public Map tags() { + return this.inner().getTags(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public MongoDBCollectionImpl withExistingDatabasis(String resourceGroupName, String accountName, String databaseName) { + this.resourceGroupName = resourceGroupName; + this.accountName = accountName; + this.databaseName = databaseName; + return this; + } + + @Override + public MongoDBCollectionImpl withOptions(Map options) { + this.createOrUpdateParameter.withOptions(options); + return this; + } + + @Override + public MongoDBCollectionImpl withResource(MongoDBCollectionResource resource) { + this.createOrUpdateParameter.withResource(resource); + return this; + } + +} diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/MongoDBCollectionInner.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/MongoDBCollectionInner.java new file mode 100644 index 000000000000..16786ea8c895 --- /dev/null +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/MongoDBCollectionInner.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.cosmosdb.v2015_04_08.implementation; + +import java.util.Map; +import java.util.List; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.MongoIndex; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * An Azure Cosmos DB MongoDB collection. + */ +@JsonFlatten +@SkipParentValidation +public class MongoDBCollectionInner extends Resource { + /** + * Name of the Cosmos DB MongoDB collection. + */ + @JsonProperty(value = "properties.id", required = true) + private String mongoDBCollectionId; + + /** + * A key-value pair of shard keys to be applied for the request. + */ + @JsonProperty(value = "properties.shardKey") + private Map shardKey; + + /** + * List of index keys. + */ + @JsonProperty(value = "properties.indexes") + private List indexes; + + /** + * Get name of the Cosmos DB MongoDB collection. + * + * @return the mongoDBCollectionId value + */ + public String mongoDBCollectionId() { + return this.mongoDBCollectionId; + } + + /** + * Set name of the Cosmos DB MongoDB collection. + * + * @param mongoDBCollectionId the mongoDBCollectionId value to set + * @return the MongoDBCollectionInner object itself. + */ + public MongoDBCollectionInner withMongoDBCollectionId(String mongoDBCollectionId) { + this.mongoDBCollectionId = mongoDBCollectionId; + return this; + } + + /** + * Get a key-value pair of shard keys to be applied for the request. + * + * @return the shardKey value + */ + public Map shardKey() { + return this.shardKey; + } + + /** + * Set a key-value pair of shard keys to be applied for the request. + * + * @param shardKey the shardKey value to set + * @return the MongoDBCollectionInner object itself. + */ + public MongoDBCollectionInner withShardKey(Map shardKey) { + this.shardKey = shardKey; + return this; + } + + /** + * Get list of index keys. + * + * @return the indexes value + */ + public List indexes() { + return this.indexes; + } + + /** + * Set list of index keys. + * + * @param indexes the indexes value to set + * @return the MongoDBCollectionInner object itself. + */ + public MongoDBCollectionInner withIndexes(List indexes) { + this.indexes = indexes; + return this; + } + +} diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/MongoDBDatabaseImpl.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/MongoDBDatabaseImpl.java new file mode 100644 index 000000000000..9bd0df609ca8 --- /dev/null +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/MongoDBDatabaseImpl.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.cosmosdb.v2015_04_08.implementation; + +import com.microsoft.azure.management.cosmosdb.v2015_04_08.MongoDBDatabase; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import java.util.Map; + +class MongoDBDatabaseImpl extends WrapperImpl implements MongoDBDatabase { + private final DocumentDBManager manager; + MongoDBDatabaseImpl(MongoDBDatabaseInner inner, DocumentDBManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public DocumentDBManager manager() { + return this.manager; + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String location() { + return this.inner().location(); + } + + @Override + public String mongoDBDatabaseId() { + return this.inner().mongoDBDatabaseId(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public Map tags() { + return this.inner().getTags(); + } + + @Override + public String type() { + return this.inner().type(); + } + +} diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/MongoDBDatabaseInner.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/MongoDBDatabaseInner.java new file mode 100644 index 000000000000..4f7816b864c1 --- /dev/null +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/MongoDBDatabaseInner.java @@ -0,0 +1,48 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.cosmosdb.v2015_04_08.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * An Azure Cosmos DB MongoDB database. + */ +@JsonFlatten +@SkipParentValidation +public class MongoDBDatabaseInner extends Resource { + /** + * Name of the Cosmos DB MongoDB database. + */ + @JsonProperty(value = "properties.id", required = true) + private String mongoDBDatabaseId; + + /** + * Get name of the Cosmos DB MongoDB database. + * + * @return the mongoDBDatabaseId value + */ + public String mongoDBDatabaseId() { + return this.mongoDBDatabaseId; + } + + /** + * Set name of the Cosmos DB MongoDB database. + * + * @param mongoDBDatabaseId the mongoDBDatabaseId value to set + * @return the MongoDBDatabaseInner object itself. + */ + public MongoDBDatabaseInner withMongoDBDatabaseId(String mongoDBDatabaseId) { + this.mongoDBDatabaseId = mongoDBDatabaseId; + return this; + } + +} diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/MongodbCollectionImpl.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/MongodbCollectionImpl.java new file mode 100644 index 000000000000..69f5dadbbeb3 --- /dev/null +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/MongodbCollectionImpl.java @@ -0,0 +1,160 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.cosmosdb.v2015_04_08.implementation; + +import com.microsoft.azure.management.cosmosdb.v2015_04_08.MongodbCollection; +import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; +import rx.Observable; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.MongodbCollectionCreateUpdateParameters; +import java.util.Map; +import java.util.List; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.MongoIndex; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.MongodbCollectionResource; +import rx.functions.Func1; + +class MongodbCollectionImpl extends CreatableUpdatableImpl implements MongodbCollection, MongodbCollection.Definition, MongodbCollection.Update { + private final DocumentDBManager manager; + private String resourceGroupName; + private String accountName; + private String databaseName; + private String collectionName; + private MongodbCollectionCreateUpdateParameters createOrUpdateParameter; + + MongodbCollectionImpl(String name, DocumentDBManager manager) { + super(name, new MongodbCollectionInner()); + this.manager = manager; + // Set resource name + this.collectionName = name; + // + this.createOrUpdateParameter = new MongodbCollectionCreateUpdateParameters(); + } + + MongodbCollectionImpl(MongodbCollectionInner inner, DocumentDBManager manager) { + super(inner.name(), inner); + this.manager = manager; + // Set resource name + this.collectionName = inner.name(); + // set resource ancestor and positional variables + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.accountName = IdParsingUtils.getValueFromIdByName(inner.id(), "databaseAccounts"); + this.databaseName = IdParsingUtils.getValueFromIdByName(inner.id(), "databases"); + this.collectionName = IdParsingUtils.getValueFromIdByName(inner.id(), "collections"); + // + this.createOrUpdateParameter = new MongodbCollectionCreateUpdateParameters(); + } + + @Override + public DocumentDBManager manager() { + return this.manager; + } + + @Override + public Observable createResourceAsync() { + DatabaseAccountsInner client = this.manager().inner().databaseAccounts(); + return client.createUpdateMongodbCollectionAsync(this.resourceGroupName, this.accountName, this.databaseName, this.collectionName, this.createOrUpdateParameter) + .map(new Func1() { + @Override + public MongodbCollectionInner call(MongodbCollectionInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + DatabaseAccountsInner client = this.manager().inner().databaseAccounts(); + return client.createUpdateMongodbCollectionAsync(this.resourceGroupName, this.accountName, this.databaseName, this.collectionName, this.createOrUpdateParameter) + .map(new Func1() { + @Override + public MongodbCollectionInner call(MongodbCollectionInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + DatabaseAccountsInner client = this.manager().inner().databaseAccounts(); + return client.getMongodbCollectionAsync(this.resourceGroupName, this.accountName, this.databaseName, this.collectionName); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + private void resetCreateUpdateParameters() { + this.createOrUpdateParameter = new MongodbCollectionCreateUpdateParameters(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public List indexes() { + return this.inner().indexes(); + } + + @Override + public String location() { + return this.inner().location(); + } + + @Override + public String mongodbCollectionId() { + return this.inner().mongodbCollectionId(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public Map shardKey() { + return this.inner().shardKey(); + } + + @Override + public Map tags() { + return this.inner().getTags(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public MongodbCollectionImpl withExistingDatabasis(String resourceGroupName, String accountName, String databaseName) { + this.resourceGroupName = resourceGroupName; + this.accountName = accountName; + this.databaseName = databaseName; + return this; + } + + @Override + public MongodbCollectionImpl withOptions(Map options) { + this.createOrUpdateParameter.withOptions(options); + return this; + } + + @Override + public MongodbCollectionImpl withResource(MongodbCollectionResource resource) { + this.createOrUpdateParameter.withResource(resource); + return this; + } + +} diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/MongodbCollectionInner.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/MongodbCollectionInner.java new file mode 100644 index 000000000000..976b0ade428c --- /dev/null +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/MongodbCollectionInner.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.cosmosdb.v2015_04_08.implementation; + +import java.util.Map; +import java.util.List; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.MongoIndex; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * An Azure Cosmos DB Mongodb collection. + */ +@JsonFlatten +@SkipParentValidation +public class MongodbCollectionInner extends Resource { + /** + * Name of the Cosmos DB Mongodb collection. + */ + @JsonProperty(value = "properties.id", required = true) + private String mongodbCollectionId; + + /** + * A key-value pair of shard keys to be applied for the request. + */ + @JsonProperty(value = "properties.shardKey") + private Map shardKey; + + /** + * List of index keys. + */ + @JsonProperty(value = "properties.indexes") + private List indexes; + + /** + * Get name of the Cosmos DB Mongodb collection. + * + * @return the mongodbCollectionId value + */ + public String mongodbCollectionId() { + return this.mongodbCollectionId; + } + + /** + * Set name of the Cosmos DB Mongodb collection. + * + * @param mongodbCollectionId the mongodbCollectionId value to set + * @return the MongodbCollectionInner object itself. + */ + public MongodbCollectionInner withMongodbCollectionId(String mongodbCollectionId) { + this.mongodbCollectionId = mongodbCollectionId; + return this; + } + + /** + * Get a key-value pair of shard keys to be applied for the request. + * + * @return the shardKey value + */ + public Map shardKey() { + return this.shardKey; + } + + /** + * Set a key-value pair of shard keys to be applied for the request. + * + * @param shardKey the shardKey value to set + * @return the MongodbCollectionInner object itself. + */ + public MongodbCollectionInner withShardKey(Map shardKey) { + this.shardKey = shardKey; + return this; + } + + /** + * Get list of index keys. + * + * @return the indexes value + */ + public List indexes() { + return this.indexes; + } + + /** + * Set list of index keys. + * + * @param indexes the indexes value to set + * @return the MongodbCollectionInner object itself. + */ + public MongodbCollectionInner withIndexes(List indexes) { + this.indexes = indexes; + return this; + } + +} diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/MongodbDatabaseImpl.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/MongodbDatabaseImpl.java new file mode 100644 index 000000000000..846128f03de3 --- /dev/null +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/MongodbDatabaseImpl.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.cosmosdb.v2015_04_08.implementation; + +import com.microsoft.azure.management.cosmosdb.v2015_04_08.MongodbDatabase; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import java.util.Map; + +class MongodbDatabaseImpl extends WrapperImpl implements MongodbDatabase { + private final DocumentDBManager manager; + MongodbDatabaseImpl(MongodbDatabaseInner inner, DocumentDBManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public DocumentDBManager manager() { + return this.manager; + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String location() { + return this.inner().location(); + } + + @Override + public String mongodbDatabaseId() { + return this.inner().mongodbDatabaseId(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public Map tags() { + return this.inner().getTags(); + } + + @Override + public String type() { + return this.inner().type(); + } + +} diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/MongodbDatabaseInner.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/MongodbDatabaseInner.java new file mode 100644 index 000000000000..b9ba76c322dd --- /dev/null +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/MongodbDatabaseInner.java @@ -0,0 +1,48 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.cosmosdb.v2015_04_08.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * An Azure Cosmos DB Mongodb database. + */ +@JsonFlatten +@SkipParentValidation +public class MongodbDatabaseInner extends Resource { + /** + * Name of the Cosmos DB Mongodb database. + */ + @JsonProperty(value = "properties.id", required = true) + private String mongodbDatabaseId; + + /** + * Get name of the Cosmos DB Mongodb database. + * + * @return the mongodbDatabaseId value + */ + public String mongodbDatabaseId() { + return this.mongodbDatabaseId; + } + + /** + * Set name of the Cosmos DB Mongodb database. + * + * @param mongodbDatabaseId the mongodbDatabaseId value to set + * @return the MongodbDatabaseInner object itself. + */ + public MongodbDatabaseInner withMongodbDatabaseId(String mongodbDatabaseId) { + this.mongodbDatabaseId = mongodbDatabaseId; + return this; + } + +} diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/SqlContainerImpl.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/SqlContainerImpl.java index 6794172e2fcc..bca9984cbfe4 100644 --- a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/SqlContainerImpl.java +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/SqlContainerImpl.java @@ -15,39 +15,40 @@ import java.util.Map; import com.microsoft.azure.management.cosmosdb.v2015_04_08.ConflictResolutionPolicy; import com.microsoft.azure.management.cosmosdb.v2015_04_08.IndexingPolicy; -import com.microsoft.azure.management.cosmosdb.v2015_04_08.SqlPartitionKey; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.ContainerPartitionKey; import com.microsoft.azure.management.cosmosdb.v2015_04_08.UniqueKeyPolicy; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.SqlContainerResource; import rx.functions.Func1; -class SqlContainerImpl extends CreatableUpdatableImpl implements SqlContainer, SqlContainer.Update { +class SqlContainerImpl extends CreatableUpdatableImpl implements SqlContainer, SqlContainer.Definition, SqlContainer.Update { private final DocumentDBManager manager; private String resourceGroupName; private String accountName; - private String databaseRid; - private String containerRid; - private SqlContainerCreateUpdateParameters updateParameter; + private String databaseName; + private String containerName; + private SqlContainerCreateUpdateParameters createOrUpdateParameter; SqlContainerImpl(String name, DocumentDBManager manager) { super(name, new SqlContainerInner()); this.manager = manager; // Set resource name - this.containerRid = name; + this.containerName = name; // - this.updateParameter = new SqlContainerCreateUpdateParameters(); + this.createOrUpdateParameter = new SqlContainerCreateUpdateParameters(); } SqlContainerImpl(SqlContainerInner inner, DocumentDBManager manager) { super(inner.name(), inner); this.manager = manager; // Set resource name - this.containerRid = inner.name(); + this.containerName = inner.name(); // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.accountName = IdParsingUtils.getValueFromIdByName(inner.id(), "databaseAccounts"); - this.databaseRid = IdParsingUtils.getValueFromIdByName(inner.id(), "databases"); - this.containerRid = IdParsingUtils.getValueFromIdByName(inner.id(), "containers"); + this.databaseName = IdParsingUtils.getValueFromIdByName(inner.id(), "databases"); + this.containerName = IdParsingUtils.getValueFromIdByName(inner.id(), "containers"); // - this.updateParameter = new SqlContainerCreateUpdateParameters(); + this.createOrUpdateParameter = new SqlContainerCreateUpdateParameters(); } @Override @@ -58,13 +59,21 @@ public DocumentDBManager manager() { @Override public Observable createResourceAsync() { DatabaseAccountsInner client = this.manager().inner().databaseAccounts(); - return null; // NOP createResourceAsync implementation as create is not supported + return client.createUpdateSqlContainerAsync(this.resourceGroupName, this.accountName, this.databaseName, this.containerName, this.createOrUpdateParameter) + .map(new Func1() { + @Override + public SqlContainerInner call(SqlContainerInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) + .map(innerToFluentMap(this)); } @Override public Observable updateResourceAsync() { DatabaseAccountsInner client = this.manager().inner().databaseAccounts(); - return client.updateSqlContainerAsync(this.resourceGroupName, this.accountName, this.databaseRid, this.containerRid, this.updateParameter) + return client.createUpdateSqlContainerAsync(this.resourceGroupName, this.accountName, this.databaseName, this.containerName, this.createOrUpdateParameter) .map(new Func1() { @Override public SqlContainerInner call(SqlContainerInner resource) { @@ -78,7 +87,7 @@ public SqlContainerInner call(SqlContainerInner resource) { @Override protected Observable getInnerAsync() { DatabaseAccountsInner client = this.manager().inner().databaseAccounts(); - return client.getSqlContainerAsync(this.resourceGroupName, this.accountName, this.databaseRid, this.containerRid); + return client.getSqlContainerAsync(this.resourceGroupName, this.accountName, this.databaseName, this.containerName); } @Override @@ -87,17 +96,7 @@ public boolean isInCreateMode() { } private void resetCreateUpdateParameters() { - this.updateParameter = new SqlContainerCreateUpdateParameters(); - } - - @Override - public String _conflicts() { - return this.inner()._conflicts(); - } - - @Override - public String _doc() { - return this.inner()._doc(); + this.createOrUpdateParameter = new SqlContainerCreateUpdateParameters(); } @Override @@ -110,31 +109,11 @@ public String _rid() { return this.inner()._rid(); } - @Override - public String _self() { - return this.inner()._self(); - } - - @Override - public String _sprocs() { - return this.inner()._sprocs(); - } - - @Override - public String _triggers() { - return this.inner()._triggers(); - } - @Override public Object _ts() { return this.inner()._ts(); } - @Override - public String _udfs() { - return this.inner()._udfs(); - } - @Override public ConflictResolutionPolicy conflictResolutionPolicy() { return this.inner().conflictResolutionPolicy(); @@ -166,7 +145,7 @@ public String name() { } @Override - public SqlPartitionKey partitionKey() { + public ContainerPartitionKey partitionKey() { return this.inner().partitionKey(); } @@ -190,4 +169,24 @@ public UniqueKeyPolicy uniqueKeyPolicy() { return this.inner().uniqueKeyPolicy(); } + @Override + public SqlContainerImpl withExistingDatabasis(String resourceGroupName, String accountName, String databaseName) { + this.resourceGroupName = resourceGroupName; + this.accountName = accountName; + this.databaseName = databaseName; + return this; + } + + @Override + public SqlContainerImpl withOptions(Map options) { + this.createOrUpdateParameter.withOptions(options); + return this; + } + + @Override + public SqlContainerImpl withResource(SqlContainerResource resource) { + this.createOrUpdateParameter.withResource(resource); + return this; + } + } diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/SqlContainerInner.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/SqlContainerInner.java index 179f72998d97..1d3e9f8f9300 100644 --- a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/SqlContainerInner.java +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/SqlContainerInner.java @@ -9,17 +9,19 @@ package com.microsoft.azure.management.cosmosdb.v2015_04_08.implementation; import com.microsoft.azure.management.cosmosdb.v2015_04_08.IndexingPolicy; -import com.microsoft.azure.management.cosmosdb.v2015_04_08.SqlPartitionKey; +import com.microsoft.azure.management.cosmosdb.v2015_04_08.ContainerPartitionKey; import com.microsoft.azure.management.cosmosdb.v2015_04_08.UniqueKeyPolicy; import com.microsoft.azure.management.cosmosdb.v2015_04_08.ConflictResolutionPolicy; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; import com.microsoft.azure.Resource; /** - * An Azure Cosmos DB SQL container. + * An Azure Cosmos DB container. */ @JsonFlatten +@SkipParentValidation public class SqlContainerInner extends Resource { /** * Name of the Cosmos DB SQL container. @@ -29,7 +31,7 @@ public class SqlContainerInner extends Resource { /** * The configuration of the indexing policy. By default, the indexing is - * automatic for all document paths within the SQL container. + * automatic for all document paths within the container. */ @JsonProperty(value = "properties.indexingPolicy") private IndexingPolicy indexingPolicy; @@ -39,7 +41,7 @@ public class SqlContainerInner extends Resource { * into multiple partitions. */ @JsonProperty(value = "properties.partitionKey") - private SqlPartitionKey partitionKey; + private ContainerPartitionKey partitionKey; /** * Default time to live. @@ -56,7 +58,7 @@ public class SqlContainerInner extends Resource { private UniqueKeyPolicy uniqueKeyPolicy; /** - * The conflict resolution policy for the SQL container. + * The conflict resolution policy for the container. */ @JsonProperty(value = "properties.conflictResolutionPolicy") private ConflictResolutionPolicy conflictResolutionPolicy; @@ -74,13 +76,6 @@ public class SqlContainerInner extends Resource { @JsonProperty(value = "properties._ts") private Object _ts; - /** - * A system generated property. It is the unique addressable URI for the - * resource. - */ - @JsonProperty(value = "properties._self") - private String _self; - /** * A system generated property representing the resource etag required for * optimistic concurrency control. @@ -88,41 +83,6 @@ public class SqlContainerInner extends Resource { @JsonProperty(value = "properties._etag") private String _etag; - /** - * A system generated property that specifies the addressable path of the - * documents resource. - */ - @JsonProperty(value = "properties._doc") - private String _doc; - - /** - * A system generated property that specifies the addressable path of the - * stored procedures (sprocs) resource. - */ - @JsonProperty(value = "properties._sprocs") - private String _sprocs; - - /** - * A system generated property that specifies the addressable path of the - * triggers resource. - */ - @JsonProperty(value = "properties._triggers") - private String _triggers; - - /** - * A system generated property that specifies the addressable path of the - * user-defined functions (udfs) resource. - */ - @JsonProperty(value = "properties._udfs") - private String _udfs; - - /** - * A system generated property that specifies the addressable path of the - * conflicts resource. - */ - @JsonProperty(value = "properties._conflicts") - private String _conflicts; - /** * Get name of the Cosmos DB SQL container. * @@ -144,7 +104,7 @@ public SqlContainerInner withSqlContainerId(String sqlContainerId) { } /** - * Get the configuration of the indexing policy. By default, the indexing is automatic for all document paths within the SQL container. + * Get the configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container. * * @return the indexingPolicy value */ @@ -153,7 +113,7 @@ public IndexingPolicy indexingPolicy() { } /** - * Set the configuration of the indexing policy. By default, the indexing is automatic for all document paths within the SQL container. + * Set the configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container. * * @param indexingPolicy the indexingPolicy value to set * @return the SqlContainerInner object itself. @@ -168,7 +128,7 @@ public SqlContainerInner withIndexingPolicy(IndexingPolicy indexingPolicy) { * * @return the partitionKey value */ - public SqlPartitionKey partitionKey() { + public ContainerPartitionKey partitionKey() { return this.partitionKey; } @@ -178,7 +138,7 @@ public SqlPartitionKey partitionKey() { * @param partitionKey the partitionKey value to set * @return the SqlContainerInner object itself. */ - public SqlContainerInner withPartitionKey(SqlPartitionKey partitionKey) { + public SqlContainerInner withPartitionKey(ContainerPartitionKey partitionKey) { this.partitionKey = partitionKey; return this; } @@ -224,7 +184,7 @@ public SqlContainerInner withUniqueKeyPolicy(UniqueKeyPolicy uniqueKeyPolicy) { } /** - * Get the conflict resolution policy for the SQL container. + * Get the conflict resolution policy for the container. * * @return the conflictResolutionPolicy value */ @@ -233,7 +193,7 @@ public ConflictResolutionPolicy conflictResolutionPolicy() { } /** - * Set the conflict resolution policy for the SQL container. + * Set the conflict resolution policy for the container. * * @param conflictResolutionPolicy the conflictResolutionPolicy value to set * @return the SqlContainerInner object itself. @@ -283,26 +243,6 @@ public SqlContainerInner with_ts(Object _ts) { return this; } - /** - * Get a system generated property. It is the unique addressable URI for the resource. - * - * @return the _self value - */ - public String _self() { - return this._self; - } - - /** - * Set a system generated property. It is the unique addressable URI for the resource. - * - * @param _self the _self value to set - * @return the SqlContainerInner object itself. - */ - public SqlContainerInner with_self(String _self) { - this._self = _self; - return this; - } - /** * Get a system generated property representing the resource etag required for optimistic concurrency control. * @@ -323,104 +263,4 @@ public SqlContainerInner with_etag(String _etag) { return this; } - /** - * Get a system generated property that specifies the addressable path of the documents resource. - * - * @return the _doc value - */ - public String _doc() { - return this._doc; - } - - /** - * Set a system generated property that specifies the addressable path of the documents resource. - * - * @param _doc the _doc value to set - * @return the SqlContainerInner object itself. - */ - public SqlContainerInner with_doc(String _doc) { - this._doc = _doc; - return this; - } - - /** - * Get a system generated property that specifies the addressable path of the stored procedures (sprocs) resource. - * - * @return the _sprocs value - */ - public String _sprocs() { - return this._sprocs; - } - - /** - * Set a system generated property that specifies the addressable path of the stored procedures (sprocs) resource. - * - * @param _sprocs the _sprocs value to set - * @return the SqlContainerInner object itself. - */ - public SqlContainerInner with_sprocs(String _sprocs) { - this._sprocs = _sprocs; - return this; - } - - /** - * Get a system generated property that specifies the addressable path of the triggers resource. - * - * @return the _triggers value - */ - public String _triggers() { - return this._triggers; - } - - /** - * Set a system generated property that specifies the addressable path of the triggers resource. - * - * @param _triggers the _triggers value to set - * @return the SqlContainerInner object itself. - */ - public SqlContainerInner with_triggers(String _triggers) { - this._triggers = _triggers; - return this; - } - - /** - * Get a system generated property that specifies the addressable path of the user-defined functions (udfs) resource. - * - * @return the _udfs value - */ - public String _udfs() { - return this._udfs; - } - - /** - * Set a system generated property that specifies the addressable path of the user-defined functions (udfs) resource. - * - * @param _udfs the _udfs value to set - * @return the SqlContainerInner object itself. - */ - public SqlContainerInner with_udfs(String _udfs) { - this._udfs = _udfs; - return this; - } - - /** - * Get a system generated property that specifies the addressable path of the conflicts resource. - * - * @return the _conflicts value - */ - public String _conflicts() { - return this._conflicts; - } - - /** - * Set a system generated property that specifies the addressable path of the conflicts resource. - * - * @param _conflicts the _conflicts value to set - * @return the SqlContainerInner object itself. - */ - public SqlContainerInner with_conflicts(String _conflicts) { - this._conflicts = _conflicts; - return this; - } - } diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/SqlDatabaseImpl.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/SqlDatabaseImpl.java index 6d3c1a2a2df8..878d8bbc0e75 100644 --- a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/SqlDatabaseImpl.java +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/SqlDatabaseImpl.java @@ -20,14 +20,14 @@ class SqlDatabaseImpl extends CreatableUpdatableImpl createResourceAsync() { DatabaseAccountsInner client = this.manager().inner().databaseAccounts(); - return client.createUpdateSqlDatabaseAsync(this.resourceGroupName, this.accountName, this.databaseRid, this.createOrUpdateParameter) + return client.createUpdateSqlDatabaseAsync(this.resourceGroupName, this.accountName, this.databaseName, this.createOrUpdateParameter) .map(new Func1() { @Override public SqlDatabaseInner call(SqlDatabaseInner resource) { @@ -67,7 +67,7 @@ public SqlDatabaseInner call(SqlDatabaseInner resource) { @Override public Observable updateResourceAsync() { DatabaseAccountsInner client = this.manager().inner().databaseAccounts(); - return client.createUpdateSqlDatabaseAsync(this.resourceGroupName, this.accountName, this.databaseRid, this.createOrUpdateParameter) + return client.createUpdateSqlDatabaseAsync(this.resourceGroupName, this.accountName, this.databaseName, this.createOrUpdateParameter) .map(new Func1() { @Override public SqlDatabaseInner call(SqlDatabaseInner resource) { diff --git a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/TableImpl.java b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/TableImpl.java index 7f73d3b95207..2a5d70bd819e 100644 --- a/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/TableImpl.java +++ b/cosmosdb/resource-manager/v2015_04_08/src/main/java/com/microsoft/azure/management/cosmosdb/v2015_04_08/implementation/TableImpl.java @@ -20,14 +20,14 @@ class TableImpl extends CreatableUpdatableImpl imp private final DocumentDBManager manager; private String resourceGroupName; private String accountName; - private String tableRid; + private String tableName; private TableCreateUpdateParameters createOrUpdateParameter; TableImpl(String name, DocumentDBManager manager) { super(name, new TableInner()); this.manager = manager; // Set resource name - this.tableRid = name; + this.tableName = name; // this.createOrUpdateParameter = new TableCreateUpdateParameters(); } @@ -36,11 +36,11 @@ class TableImpl extends CreatableUpdatableImpl imp super(inner.name(), inner); this.manager = manager; // Set resource name - this.tableRid = inner.name(); + this.tableName = inner.name(); // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.accountName = IdParsingUtils.getValueFromIdByName(inner.id(), "databaseAccounts"); - this.tableRid = IdParsingUtils.getValueFromIdByName(inner.id(), "tables"); + this.tableName = IdParsingUtils.getValueFromIdByName(inner.id(), "tables"); // this.createOrUpdateParameter = new TableCreateUpdateParameters(); } @@ -53,7 +53,7 @@ public DocumentDBManager manager() { @Override public Observable
createResourceAsync() { DatabaseAccountsInner client = this.manager().inner().databaseAccounts(); - return client.createUpdateTableAsync(this.resourceGroupName, this.accountName, this.tableRid, this.createOrUpdateParameter) + return client.createUpdateTableAsync(this.resourceGroupName, this.accountName, this.tableName, this.createOrUpdateParameter) .map(new Func1() { @Override public TableInner call(TableInner resource) { @@ -67,7 +67,7 @@ public TableInner call(TableInner resource) { @Override public Observable
updateResourceAsync() { DatabaseAccountsInner client = this.manager().inner().databaseAccounts(); - return client.createUpdateTableAsync(this.resourceGroupName, this.accountName, this.tableRid, this.createOrUpdateParameter) + return client.createUpdateTableAsync(this.resourceGroupName, this.accountName, this.tableName, this.createOrUpdateParameter) .map(new Func1() { @Override public TableInner call(TableInner resource) {