Skip to content

Commit

Permalink
mgmt, update cosmos to 2023-03-15-preview
Browse files Browse the repository at this point in the history
mgmt, update cosmos to 2023-03-15-preview
  • Loading branch information
v-hongli1 authored May 31, 2023
1 parent a83ac50 commit db934c3
Show file tree
Hide file tree
Showing 387 changed files with 27,623 additions and 1,810 deletions.
2 changes: 1 addition & 1 deletion eng/jacoco-test-coverage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-cosmos</artifactId>
<version>2.27.0</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-cosmos;current} -->
<version>2.28.0-beta.1</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-cosmos;current} -->
</dependency>
<dependency>
<groupId>com.azure.resourcemanager</groupId>
Expand Down
2 changes: 1 addition & 1 deletion eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ com.azure.resourcemanager:azure-resourcemanager-compute;2.26.0;2.27.0
com.azure.resourcemanager:azure-resourcemanager-containerinstance;2.26.0;2.27.0
com.azure.resourcemanager:azure-resourcemanager-containerregistry;2.26.0;2.27.0
com.azure.resourcemanager:azure-resourcemanager-containerservice;2.26.0;2.27.0
com.azure.resourcemanager:azure-resourcemanager-cosmos;2.26.0;2.27.0
com.azure.resourcemanager:azure-resourcemanager-cosmos;2.26.0;2.28.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-dns;2.26.0;2.27.0
com.azure.resourcemanager:azure-resourcemanager-eventhubs;2.26.0;2.27.0
com.azure.resourcemanager:azure-resourcemanager-keyvault;2.26.0;2.27.0
Expand Down
2 changes: 1 addition & 1 deletion sdk/resourcemanager/api-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"dir": "azure-resourcemanager-cosmos",
"source": "specification/cosmos-db/resource-manager/readme.md",
"package": "com.azure.resourcemanager.cosmos",
"args": "--tag=package-2023-04"
"args": "--tag=package-preview-2023-03-15"
},
"dns": {
"dir": "azure-resourcemanager-dns",
Expand Down
8 changes: 8 additions & 0 deletions sdk/resourcemanager/azure-resourcemanager-cosmos/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Release History

## 2.28.0-beta.1 (2023-05-30)

### Other Changes

#### Dependency Updates

- Updated `api-version` to `2023-03-15-preview`

## 2.27.0 (2023-05-25)

### Other Changes
Expand Down
2 changes: 1 addition & 1 deletion sdk/resourcemanager/azure-resourcemanager-cosmos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ For documentation on how to use this package, please see [Azure Management Libra
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-cosmos</artifactId>
<version>2.27.0</version>
<version>2.28.0-beta.1</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
6 changes: 3 additions & 3 deletions sdk/resourcemanager/azure-resourcemanager-cosmos/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-cosmos</artifactId>
<version>2.27.0</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-cosmos;current} -->
<version>2.28.0-beta.1</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-cosmos;current} -->
<packaging>jar</packaging>

<name>Microsoft Azure SDK for CosmosDB Management</name>
Expand All @@ -33,8 +33,8 @@

<properties>
<!-- RMJacoco -->
<jacoco.min.linecoverage>0.10</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0.10</jacoco.min.branchcoverage>
<jacoco.min.linecoverage>0.0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0.0</jacoco.min.branchcoverage>
<!-- Configures the Java 9+ run to perform the required module exports, opens, and reads that are necessary for testing but shouldn't be part of the module-info. -->
<javaModulesSurefireArgLine>
--add-exports com.azure.resourcemanager.resources/com.azure.resourcemanager.resources.fluentcore.arm.collection.implementation=ALL-UNNAMED
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.cosmos.fluent.models.BackupResourceInner;
import com.azure.resourcemanager.cosmos.fluent.models.CassandraClusterPublicStatusInner;
import com.azure.resourcemanager.cosmos.fluent.models.ClusterResourceInner;
import com.azure.resourcemanager.cosmos.fluent.models.CommandOutputInner;
Expand Down Expand Up @@ -570,6 +571,108 @@ SyncPoller<PollResult<CommandOutputInner>, CommandOutputInner> beginInvokeComman
CommandOutputInner invokeCommand(
String resourceGroupName, String clusterName, CommandPostBody body, Context context);

/**
* List the backups of this cluster that are available to restore.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @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 list of restorable backups for a Cassandra cluster as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux<BackupResourceInner> listBackupsAsync(String resourceGroupName, String clusterName);

/**
* List the backups of this cluster that are available to restore.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @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 list of restorable backups for a Cassandra cluster as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<BackupResourceInner> listBackups(String resourceGroupName, String clusterName);

/**
* List the backups of this cluster that are available to restore.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @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 list of restorable backups for a Cassandra cluster as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<BackupResourceInner> listBackups(String resourceGroupName, String clusterName, Context context);

/**
* Get the properties of an individual backup of this cluster that is available to restore.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param backupId Id of a restorable backup of a Cassandra cluster.
* @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 properties of an individual backup of this cluster that is available to restore along with {@link
* Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<BackupResourceInner>> getBackupWithResponseAsync(
String resourceGroupName, String clusterName, String backupId);

/**
* Get the properties of an individual backup of this cluster that is available to restore.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param backupId Id of a restorable backup of a Cassandra cluster.
* @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 properties of an individual backup of this cluster that is available to restore on successful
* completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<BackupResourceInner> getBackupAsync(String resourceGroupName, String clusterName, String backupId);

/**
* Get the properties of an individual backup of this cluster that is available to restore.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param backupId Id of a restorable backup of a Cassandra cluster.
* @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 properties of an individual backup of this cluster that is available to restore along with {@link
* Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<BackupResourceInner> getBackupWithResponse(
String resourceGroupName, String clusterName, String backupId, Context context);

/**
* Get the properties of an individual backup of this cluster that is available to restore.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param backupId Id of a restorable backup of a Cassandra cluster.
* @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 properties of an individual backup of this cluster that is available to restore.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BackupResourceInner getBackup(String resourceGroupName, String clusterName, String backupId);

/**
* Deallocate the Managed Cassandra Cluster and Associated Data Centers. Deallocation will deallocate the host
* virtual machine of this cluster, and reserved the data disk. This won't do anything on an already deallocated
Expand Down
Loading

0 comments on commit db934c3

Please sign in to comment.