Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/resourcemanager/api-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"dir": "azure-resourcemanager-cosmos",
"source": "specification/cosmos-db/resource-manager/readme.md",
"package": "com.azure.resourcemanager.cosmos",
"args": "--payload-flattening-threshold=0 --tag=package-2021-05"
"args": "--payload-flattening-threshold=0 --tag=package-2021-06"
},
"customerinsights": {
"dir": "azure-resourcemanager-customerinsights",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,13 @@ public interface CosmosDBManagementClient {
*/
NotebookWorkspacesClient getNotebookWorkspaces();

/**
* Gets the PrivateEndpointConnectionsClient object to access its operations.
*
* @return the PrivateEndpointConnectionsClient object.
*/
PrivateEndpointConnectionsClient getPrivateEndpointConnections();

/**
* Gets the PrivateLinkResourcesClient object to access its operations.
*
Expand All @@ -185,9 +192,51 @@ public interface CosmosDBManagementClient {
PrivateLinkResourcesClient getPrivateLinkResources();

/**
* Gets the PrivateEndpointConnectionsClient object to access its operations.
* Gets the RestorableDatabaseAccountsClient object to access its operations.
*
* @return the PrivateEndpointConnectionsClient object.
* @return the RestorableDatabaseAccountsClient object.
*/
PrivateEndpointConnectionsClient getPrivateEndpointConnections();
RestorableDatabaseAccountsClient getRestorableDatabaseAccounts();

/**
* Gets the RestorableSqlDatabasesClient object to access its operations.
*
* @return the RestorableSqlDatabasesClient object.
*/
RestorableSqlDatabasesClient getRestorableSqlDatabases();

/**
* Gets the RestorableSqlContainersClient object to access its operations.
*
* @return the RestorableSqlContainersClient object.
*/
RestorableSqlContainersClient getRestorableSqlContainers();

/**
* Gets the RestorableSqlResourcesClient object to access its operations.
*
* @return the RestorableSqlResourcesClient object.
*/
RestorableSqlResourcesClient getRestorableSqlResources();

/**
* Gets the RestorableMongodbDatabasesClient object to access its operations.
*
* @return the RestorableMongodbDatabasesClient object.
*/
RestorableMongodbDatabasesClient getRestorableMongodbDatabases();

/**
* Gets the RestorableMongodbCollectionsClient object to access its operations.
*
* @return the RestorableMongodbCollectionsClient object.
*/
RestorableMongodbCollectionsClient getRestorableMongodbCollections();

/**
* Gets the RestorableMongodbResourcesClient object to access its operations.
*
* @return the RestorableMongodbResourcesClient object.
*/
RestorableMongodbResourcesClient getRestorableMongodbResources();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.cosmos.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedFlux;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.cosmos.fluent.models.RestorableDatabaseAccountGetResultInner;
import reactor.core.publisher.Mono;

/** An instance of this class provides access to all the operations defined in RestorableDatabaseAccountsClient. */
public interface RestorableDatabaseAccountsClient {
/**
* Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This
* call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.
*
* @param location Cosmos DB region, with spaces between words and each word capitalized.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List operation response, that contains the restorable database accounts and their properties.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux<RestorableDatabaseAccountGetResultInner> listByLocationAsync(String location);

/**
* Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This
* call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.
*
* @param location Cosmos DB region, with spaces between words and each word capitalized.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List operation response, that contains the restorable database accounts and their properties.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<RestorableDatabaseAccountGetResultInner> listByLocation(String location);

/**
* Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This
* call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.
*
* @param location Cosmos DB region, with spaces between words and each word capitalized.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List operation response, that contains the restorable database accounts and their properties.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<RestorableDatabaseAccountGetResultInner> listByLocation(String location, Context context);

/**
* Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires
* 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List operation response, that contains the restorable database accounts and their properties.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux<RestorableDatabaseAccountGetResultInner> listAsync();

/**
* Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires
* 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List operation response, that contains the restorable database accounts and their properties.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<RestorableDatabaseAccountGetResultInner> list();

/**
* Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires
* 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List operation response, that contains the restorable database accounts and their properties.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<RestorableDatabaseAccountGetResultInner> list(Context context);

/**
* Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires
* 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission.
*
* @param location Cosmos DB region, with spaces between words and each word capitalized.
* @param instanceId The instanceId GUID of a restorable database account.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a Azure Cosmos DB restorable database account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<RestorableDatabaseAccountGetResultInner>> getByLocationWithResponseAsync(
String location, String instanceId);

/**
* Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires
* 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission.
*
* @param location Cosmos DB region, with spaces between words and each word capitalized.
* @param instanceId The instanceId GUID of a restorable database account.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a Azure Cosmos DB restorable database account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<RestorableDatabaseAccountGetResultInner> getByLocationAsync(String location, String instanceId);

/**
* Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires
* 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission.
*
* @param location Cosmos DB region, with spaces between words and each word capitalized.
* @param instanceId The instanceId GUID of a restorable database account.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a Azure Cosmos DB restorable database account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
RestorableDatabaseAccountGetResultInner getByLocation(String location, String instanceId);

/**
* Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires
* 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission.
*
* @param location Cosmos DB region, with spaces between words and each word capitalized.
* @param instanceId The instanceId GUID of a restorable database account.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a Azure Cosmos DB restorable database account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<RestorableDatabaseAccountGetResultInner> getByLocationWithResponse(
String location, String instanceId, Context context);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.cosmos.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedFlux;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
import com.azure.resourcemanager.cosmos.fluent.models.RestorableMongodbCollectionGetResultInner;

/** An instance of this class provides access to all the operations defined in RestorableMongodbCollectionsClient. */
public interface RestorableMongodbCollectionsClient {
/**
* Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a specific
* database. This helps in scenario where container was accidentally deleted. This API requires
* 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission.
*
* @param location Cosmos DB region, with spaces between words and each word capitalized.
* @param instanceId The instanceId GUID of a restorable database account.
* @param restorableMongodbDatabaseRid The resource ID of the MongoDB database.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List operation response, that contains the MongoDB collection events and their properties.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux<RestorableMongodbCollectionGetResultInner> listAsync(
String location, String instanceId, String restorableMongodbDatabaseRid);

/**
* Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a specific
* database. This helps in scenario where container was accidentally deleted. This API requires
* 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission.
*
* @param location Cosmos DB region, with spaces between words and each word capitalized.
* @param instanceId The instanceId GUID of a restorable database account.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List operation response, that contains the MongoDB collection events and their properties.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux<RestorableMongodbCollectionGetResultInner> listAsync(String location, String instanceId);

/**
* Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a specific
* database. This helps in scenario where container was accidentally deleted. This API requires
* 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission.
*
* @param location Cosmos DB region, with spaces between words and each word capitalized.
* @param instanceId The instanceId GUID of a restorable database account.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List operation response, that contains the MongoDB collection events and their properties.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<RestorableMongodbCollectionGetResultInner> list(String location, String instanceId);

/**
* Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a specific
* database. This helps in scenario where container was accidentally deleted. This API requires
* 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission.
*
* @param location Cosmos DB region, with spaces between words and each word capitalized.
* @param instanceId The instanceId GUID of a restorable database account.
* @param restorableMongodbDatabaseRid The resource ID of the MongoDB database.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the List operation response, that contains the MongoDB collection events and their properties.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<RestorableMongodbCollectionGetResultInner> list(
String location, String instanceId, String restorableMongodbDatabaseRid, Context context);
}
Loading