diff --git a/sdk/resourcemanager/azure-resourcemanager-cosmos/pom.xml b/sdk/resourcemanager/azure-resourcemanager-cosmos/pom.xml index 3897c2a11d06..7c54e59fbc21 100644 --- a/sdk/resourcemanager/azure-resourcemanager-cosmos/pom.xml +++ b/sdk/resourcemanager/azure-resourcemanager-cosmos/pom.xml @@ -43,7 +43,6 @@ --add-opens com.azure.resourcemanager.cosmos/com.azure.resourcemanager.cosmos=ALL-UNNAMED --add-opens com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED - - diff --git a/sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/CosmosManager.java b/sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/CosmosManager.java index 0e55dca0b05c..6da96da1910d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/CosmosManager.java +++ b/sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/CosmosManager.java @@ -84,7 +84,11 @@ private CosmosManager(HttpPipeline httpPipeline, AzureProfile profile) { .buildClient()); } - /** @return the cosmos db database account resource management API entry point */ + /** + * Gets the cosmos db database account resource management API entry point. + * + * @return the cosmos db database account resource management API entry point + */ public CosmosDBAccounts databaseAccounts() { if (databaseAccounts == null) { databaseAccounts = new CosmosDBAccountsImpl(this); diff --git a/sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/models/CosmosDBAccount.java b/sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/models/CosmosDBAccount.java index 5b3ad2973452..7064a5716d11 100644 --- a/sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/models/CosmosDBAccount.java +++ b/sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/models/CosmosDBAccount.java @@ -24,13 +24,25 @@ public interface CosmosDBAccount extends GroupableResource, Refreshable, Updatable, SupportsUpdatingPrivateEndpointConnection { - /** @return indicates the type of database account */ + /** + * Gets the type of database account. + * + * @return indicates the type of database account + */ DatabaseAccountKind kind(); - /** @return the connection endpoint for the CosmosDB database account */ + /** + * Gets the connection endpoint for the CosmosDB database account. + * + * @return the connection endpoint for the CosmosDB database account + */ String documentEndpoint(); - /** @return the offer type for the CosmosDB database account */ + /** + * Gets the offer type for the CosmosDB database account. + * + * @return the offer type for the CosmosDB database account + */ DatabaseAccountOfferType databaseAccountOfferType(); /** @@ -41,103 +53,205 @@ public interface CosmosDBAccount extends GroupableResource ipRules(); - /** @return the consistency policy for the CosmosDB database account */ + /** + * Gets the consistency policy for the CosmosDB database account. + * + * @return the consistency policy for the CosmosDB database account + */ ConsistencyPolicy consistencyPolicy(); - /** @return the default consistency level for the CosmosDB database account */ + /** + * Gets the default consistency level for the CosmosDB database account. + * + * @return the default consistency level for the CosmosDB database account + */ DefaultConsistencyLevel defaultConsistencyLevel(); - /** @return an array that contains the writable georeplication locations enabled for the CosmosDB account */ + /** + * Gets an array that contains the writable georeplication locations enabled for the CosmosDB account. + * + * @return an array that contains the writable georeplication locations enabled for the CosmosDB account + */ List writableReplications(); - /** @return an array that contains the readable georeplication locations enabled for the CosmosDB account */ + /** + * Gets an array that contains the readable georeplication locations enabled for the CosmosDB account. + * + * @return an array that contains the readable georeplication locations enabled for the CosmosDB account + */ List readableReplications(); - /** @return the access keys for the specified Azure CosmosDB database account */ + /** + * Gets the access keys for the specified Azure CosmosDB database account. + * + * @return the access keys for the specified Azure CosmosDB database account + */ DatabaseAccountListKeysResult listKeys(); - /** @return the access keys for the specified Azure CosmosDB database account */ + /** + * Gets the access keys for the specified Azure CosmosDB database account. + * + * @return the access keys for the specified Azure CosmosDB database account + */ Mono listKeysAsync(); - /** @return the read-only access keys for the specified Azure CosmosDB database account */ + /** + * Gets the read-only access keys for the specified Azure CosmosDB database account. + * + * @return the read-only access keys for the specified Azure CosmosDB database account + */ DatabaseAccountListReadOnlyKeysResult listReadOnlyKeys(); - /** @return the read-only access keys for the specified Azure CosmosDB database account */ + /** + * Gets the read-only access keys for the specified Azure CosmosDB database account. + * + * @return the read-only access keys for the specified Azure CosmosDB database account + */ Mono listReadOnlyKeysAsync(); - /** @return the connection strings for the specified Azure CosmosDB database account */ + /** + * Gets the connection strings for the specified Azure CosmosDB database account. + * + * @return the connection strings for the specified Azure CosmosDB database account + */ DatabaseAccountListConnectionStringsResult listConnectionStrings(); - /** @return the connection strings for the specified Azure CosmosDB database account */ + /** + * Gets the connection strings for the specified Azure CosmosDB database account. + * + * @return the connection strings for the specified Azure CosmosDB database account + */ Mono listConnectionStringsAsync(); - /** @return the list of Azure Cosmos DB SQL databases */ + /** + * Gets the list of Azure Cosmos DB SQL databases. + * + * @return the list of Azure Cosmos DB SQL databases + */ List listSqlDatabases(); - /** @return the list of Azure Cosmos DB SQL databases */ + /** + * Gets the list of Azure Cosmos DB SQL databases. + * + * @return the list of Azure Cosmos DB SQL databases + */ PagedFlux listSqlDatabasesAsync(); - /** @return whether write is enabled for multiple locations or not */ + /** + * Checks whether write is enabled for multiple locations. + * + * @return whether write is enabled for multiple locations or not + */ boolean multipleWriteLocationsEnabled(); - /** @return whether cassandra connector is enabled or not. */ + /** + * Checks whether cassandra connector is enabled. + * + * @return whether cassandra connector is enabled or not. + */ boolean cassandraConnectorEnabled(); - /** @return the current cassandra connector offer. */ + /** + * Gets the current cassandra connector offer. + * + * @return the current cassandra connector offer. + */ ConnectorOffer cassandraConnectorOffer(); - /** @return whether metadata write access is disabled or not. */ + /** + * Checks whether metadata write access is disabled. + * + * @return whether metadata write access is disabled or not. + */ boolean keyBasedMetadataWriteAccessDisabled(); - /** @return all private link resources in the account. */ + /** + * Gets all private link resources in the account. + * + * @return all private link resources in the account. + */ PagedFlux listPrivateLinkResourcesAsync(); - /** @return all private link resources in the account. */ + /** + * Gets all private link resources in the account. + * + * @return all private link resources in the account. + */ List listPrivateLinkResources(); /** + * Gets the specific private link resource. + * * @param groupName group name of private link resource - * @return the specific private link resource group + * @return the specific private link resource */ Mono getPrivateLinkResourceAsync(String groupName); /** + * Gets the specific private link resource. + * * @param groupName group name of private link resource - * @return the specific private link resource group + * @return the specific private link resource */ PrivateLinkResource getPrivateLinkResource(String groupName); - /** @return all private endpoint connection in the account. */ + /** + * Gets all private endpoint connection in the account. + * + * @return all private endpoint connection in the account. + */ Mono> listPrivateEndpointConnectionAsync(); - /** @return all private endpoint connection in the account. */ + /** + * Gets all private endpoint connection in the account. + * + * @return all private endpoint connection in the account. + */ Map listPrivateEndpointConnection(); /** + * Gets the specific private endpoint connection. + * * @param name name of private endpoint connection * @return the specific private endpoint connection */ Mono getPrivateEndpointConnectionAsync(String name); /** + * Gets the specific private endpoint connection. + * * @param name name of private endpoint connection * @return the specific private endpoint connection */ PrivateEndpointConnection getPrivateEndpointConnection(String name); - /** @return a list that contains the Cosmos DB capabilities */ + /** + * Gets a list that contains the Cosmos DB capabilities. + * + * @return a list that contains the Cosmos DB capabilities + */ List capabilities(); - /** @return a list that contains the Cosmos DB Virtual Network ACL Rules (empty list if none is set) */ + /** + * Gets a list that contains the Cosmos DB Virtual Network ACL Rules. + * + * @return a list that contains the Cosmos DB Virtual Network ACL Rules (empty list if none is set) + */ List virtualNetworkRules(); /** @@ -170,10 +284,16 @@ public interface CosmosDBAccount extends GroupableResource onlineRegionAsync(Region region); - /** @param keyKind the key kind */ + /** + * Regenerates secret keys. + * + * @param keyKind the key kind + */ void regenerateKey(KeyKind keyKind); /** + * A deferred emitter that regenerates secret keys. + * * @param keyKind the key kind * @return a representation of the deferred computation of this call */ diff --git a/sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/models/DatabaseAccountListConnectionStringsResult.java b/sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/models/DatabaseAccountListConnectionStringsResult.java index 0fc7672ef243..dca137899370 100644 --- a/sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/models/DatabaseAccountListConnectionStringsResult.java +++ b/sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/models/DatabaseAccountListConnectionStringsResult.java @@ -11,6 +11,10 @@ @Fluent public interface DatabaseAccountListConnectionStringsResult extends HasInnerModel { - /** @return a list that contains the connection strings for the CosmosDB account. */ + /** + * Gets a list that contains the connection strings for the CosmosDB account. + * + * @return a list that contains the connection strings for the CosmosDB account. + */ List connectionStrings(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/models/DatabaseAccountListKeysResult.java b/sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/models/DatabaseAccountListKeysResult.java index 237f78cd176d..60402829ea7a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/models/DatabaseAccountListKeysResult.java +++ b/sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/models/DatabaseAccountListKeysResult.java @@ -10,15 +10,31 @@ /** An immutable client-side representation of an Azure Cosmos DB DatabaseAccountListKeysResult. */ @Fluent public interface DatabaseAccountListKeysResult extends HasInnerModel { - /** @return Base 64 encoded value of the primary read-write key. */ + /** + * Gets Base 64 encoded value of the primary read-write key.. + * + * @return Base 64 encoded value of the primary read-write key. + */ String primaryMasterKey(); - /** @return Base 64 encoded value of the secondary read-write key. */ + /** + * Gets Base 64 encoded value of the secondary read-write key. + * + * @return Base 64 encoded value of the secondary read-write key. + */ String secondaryMasterKey(); - /** @return Base 64 encoded value of the primary read-only key. */ + /** + * Gets Base 64 encoded value of the primary read-only key. + * + * @return Base 64 encoded value of the primary read-only key. + */ String primaryReadonlyMasterKey(); - /** @return Base 64 encoded value of the secondary read-only key. */ + /** + * Gets Base 64 encoded value of the secondary read-only key. + * + * @return Base 64 encoded value of the secondary read-only key. + */ String secondaryReadonlyMasterKey(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/models/DatabaseAccountListReadOnlyKeysResult.java b/sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/models/DatabaseAccountListReadOnlyKeysResult.java index 90121986c36d..274455d35e10 100644 --- a/sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/models/DatabaseAccountListReadOnlyKeysResult.java +++ b/sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/models/DatabaseAccountListReadOnlyKeysResult.java @@ -10,9 +10,17 @@ @Fluent public interface DatabaseAccountListReadOnlyKeysResult extends HasInnerModel { - /** @return Base 64 encoded value of the primary read-only key. */ + /** + * Gets Base 64 encoded value of the primary read-only key. + * + * @return Base 64 encoded value of the primary read-only key. + */ String primaryReadonlyMasterKey(); - /** @return Base 64 encoded value of the secondary read-only key. */ + /** + * Gets Base 64 encoded value of the secondary read-only key. + * + * @return Base 64 encoded value of the secondary read-only key. + */ String secondaryReadonlyMasterKey(); }