-
Notifications
You must be signed in to change notification settings - Fork 2.2k
mgmt, Migrate cosmos to TypeSpec #48182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
weidongxu-microsoft
merged 13 commits into
Azure:main
from
weidongxu-microsoft:migrate-cosmos
Mar 12, 2026
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
c8b0c61
regen
weidongxu-microsoft 8901eb2
changelog
weidongxu-microsoft 8d79bcd
update version and commit
weidongxu-microsoft 0500482
delete generated tests
weidongxu-microsoft dd71a1d
revert resourcemanager
weidongxu-microsoft 0550aab
api changed
weidongxu-microsoft cec8307
regen on new commit
weidongxu-microsoft eaa1a9f
Revert "api changed"
weidongxu-microsoft e7a3f3a
api changed
weidongxu-microsoft 30f8fdc
regen
weidongxu-microsoft 7273a04
Merge branch 'main' into migrate-cosmos
weidongxu-microsoft b41ea6f
regen on main
weidongxu-microsoft 723bde6
Update revapi.json
weidongxu-microsoft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
809 changes: 583 additions & 226 deletions
809
...cosmos/src/main/java/com/azure/resourcemanager/cosmos/fluent/CassandraClustersClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
258 changes: 129 additions & 129 deletions
258
...mos/src/main/java/com/azure/resourcemanager/cosmos/fluent/CassandraDataCentersClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
2,724 changes: 2,106 additions & 618 deletions
2,724
...osmos/src/main/java/com/azure/resourcemanager/cosmos/fluent/CassandraResourcesClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
240 changes: 240 additions & 0 deletions
240
...nager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/fluent/ChaosFaultsClient.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,240 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
| // Code generated by Microsoft (R) TypeSpec 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.management.polling.PollResult; | ||
| 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.ChaosFaultResourceInner; | ||
| import java.nio.ByteBuffer; | ||
| import reactor.core.publisher.Flux; | ||
| import reactor.core.publisher.Mono; | ||
|
|
||
| /** | ||
| * An instance of this class provides access to all the operations defined in ChaosFaultsClient. | ||
| */ | ||
| public interface ChaosFaultsClient { | ||
| /** | ||
| * Get Chaos Fault for a CosmosdB account for a particular Chaos Fault. | ||
| * | ||
| * @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
| * @param accountName Cosmos DB database account name. | ||
| * @param chaosFault The name of the ChaosFault. | ||
| * @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 chaos Fault for a CosmosdB account for a particular Chaos Fault along with {@link Response} on successful | ||
| * completion of {@link Mono}. | ||
| */ | ||
| @ServiceMethod(returns = ReturnType.SINGLE) | ||
| Mono<Response<ChaosFaultResourceInner>> getWithResponseAsync(String resourceGroupName, String accountName, | ||
| String chaosFault); | ||
|
|
||
| /** | ||
| * Get Chaos Fault for a CosmosdB account for a particular Chaos Fault. | ||
| * | ||
| * @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
| * @param accountName Cosmos DB database account name. | ||
| * @param chaosFault The name of the ChaosFault. | ||
| * @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 chaos Fault for a CosmosdB account for a particular Chaos Fault on successful completion of {@link Mono}. | ||
| */ | ||
| @ServiceMethod(returns = ReturnType.SINGLE) | ||
| Mono<ChaosFaultResourceInner> getAsync(String resourceGroupName, String accountName, String chaosFault); | ||
|
|
||
| /** | ||
| * Get Chaos Fault for a CosmosdB account for a particular Chaos Fault. | ||
| * | ||
| * @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
| * @param accountName Cosmos DB database account name. | ||
| * @param chaosFault The name of the ChaosFault. | ||
| * @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 chaos Fault for a CosmosdB account for a particular Chaos Fault along with {@link Response}. | ||
| */ | ||
| @ServiceMethod(returns = ReturnType.SINGLE) | ||
| Response<ChaosFaultResourceInner> getWithResponse(String resourceGroupName, String accountName, String chaosFault, | ||
| Context context); | ||
|
|
||
| /** | ||
| * Get Chaos Fault for a CosmosdB account for a particular Chaos Fault. | ||
| * | ||
| * @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
| * @param accountName Cosmos DB database account name. | ||
| * @param chaosFault The name of the ChaosFault. | ||
| * @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 chaos Fault for a CosmosdB account for a particular Chaos Fault. | ||
| */ | ||
| @ServiceMethod(returns = ReturnType.SINGLE) | ||
| ChaosFaultResourceInner get(String resourceGroupName, String accountName, String chaosFault); | ||
|
|
||
| /** | ||
| * Enable, disable Chaos Fault in a CosmosDB account. | ||
| * | ||
| * @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
| * @param accountName Cosmos DB database account name. | ||
| * @param chaosFault The name of the ChaosFault. | ||
| * @param chaosFaultRequest A request object to enable/disable the chaos fault. | ||
| * @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 request object to enable/disable the chaos fault along with {@link Response} on successful completion | ||
| * of {@link Mono}. | ||
| */ | ||
| @ServiceMethod(returns = ReturnType.SINGLE) | ||
| Mono<Response<Flux<ByteBuffer>>> enableDisableWithResponseAsync(String resourceGroupName, String accountName, | ||
| String chaosFault, ChaosFaultResourceInner chaosFaultRequest); | ||
|
|
||
| /** | ||
| * Enable, disable Chaos Fault in a CosmosDB account. | ||
| * | ||
| * @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
| * @param accountName Cosmos DB database account name. | ||
| * @param chaosFault The name of the ChaosFault. | ||
| * @param chaosFaultRequest A request object to enable/disable the chaos fault. | ||
| * @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 {@link PollerFlux} for polling of a request object to enable/disable the chaos fault. | ||
| */ | ||
| @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) | ||
| PollerFlux<PollResult<ChaosFaultResourceInner>, ChaosFaultResourceInner> beginEnableDisableAsync( | ||
| String resourceGroupName, String accountName, String chaosFault, ChaosFaultResourceInner chaosFaultRequest); | ||
|
|
||
| /** | ||
| * Enable, disable Chaos Fault in a CosmosDB account. | ||
| * | ||
| * @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
| * @param accountName Cosmos DB database account name. | ||
| * @param chaosFault The name of the ChaosFault. | ||
| * @param chaosFaultRequest A request object to enable/disable the chaos fault. | ||
| * @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 {@link SyncPoller} for polling of a request object to enable/disable the chaos fault. | ||
| */ | ||
| @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) | ||
| SyncPoller<PollResult<ChaosFaultResourceInner>, ChaosFaultResourceInner> beginEnableDisable( | ||
| String resourceGroupName, String accountName, String chaosFault, ChaosFaultResourceInner chaosFaultRequest); | ||
|
|
||
| /** | ||
| * Enable, disable Chaos Fault in a CosmosDB account. | ||
| * | ||
| * @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
| * @param accountName Cosmos DB database account name. | ||
| * @param chaosFault The name of the ChaosFault. | ||
| * @param chaosFaultRequest A request object to enable/disable the chaos fault. | ||
| * @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 {@link SyncPoller} for polling of a request object to enable/disable the chaos fault. | ||
| */ | ||
| @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) | ||
| SyncPoller<PollResult<ChaosFaultResourceInner>, ChaosFaultResourceInner> beginEnableDisable( | ||
| String resourceGroupName, String accountName, String chaosFault, ChaosFaultResourceInner chaosFaultRequest, | ||
| Context context); | ||
|
|
||
| /** | ||
| * Enable, disable Chaos Fault in a CosmosDB account. | ||
| * | ||
| * @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
| * @param accountName Cosmos DB database account name. | ||
| * @param chaosFault The name of the ChaosFault. | ||
| * @param chaosFaultRequest A request object to enable/disable the chaos fault. | ||
| * @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 request object to enable/disable the chaos fault on successful completion of {@link Mono}. | ||
| */ | ||
| @ServiceMethod(returns = ReturnType.SINGLE) | ||
| Mono<ChaosFaultResourceInner> enableDisableAsync(String resourceGroupName, String accountName, String chaosFault, | ||
| ChaosFaultResourceInner chaosFaultRequest); | ||
|
|
||
| /** | ||
| * Enable, disable Chaos Fault in a CosmosDB account. | ||
| * | ||
| * @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
| * @param accountName Cosmos DB database account name. | ||
| * @param chaosFault The name of the ChaosFault. | ||
| * @param chaosFaultRequest A request object to enable/disable the chaos fault. | ||
| * @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 request object to enable/disable the chaos fault. | ||
| */ | ||
| @ServiceMethod(returns = ReturnType.SINGLE) | ||
| ChaosFaultResourceInner enableDisable(String resourceGroupName, String accountName, String chaosFault, | ||
| ChaosFaultResourceInner chaosFaultRequest); | ||
|
|
||
| /** | ||
| * Enable, disable Chaos Fault in a CosmosDB account. | ||
| * | ||
| * @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
| * @param accountName Cosmos DB database account name. | ||
| * @param chaosFault The name of the ChaosFault. | ||
| * @param chaosFaultRequest A request object to enable/disable the chaos fault. | ||
| * @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 request object to enable/disable the chaos fault. | ||
| */ | ||
| @ServiceMethod(returns = ReturnType.SINGLE) | ||
| ChaosFaultResourceInner enableDisable(String resourceGroupName, String accountName, String chaosFault, | ||
| ChaosFaultResourceInner chaosFaultRequest, Context context); | ||
|
|
||
| /** | ||
| * List Chaos Faults for CosmosDB account. | ||
| * | ||
| * @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
| * @param accountName Cosmos DB database account 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 chaos Fault List Response as paginated response with {@link PagedFlux}. | ||
| */ | ||
| @ServiceMethod(returns = ReturnType.COLLECTION) | ||
| PagedFlux<ChaosFaultResourceInner> listAsync(String resourceGroupName, String accountName); | ||
|
|
||
| /** | ||
| * List Chaos Faults for CosmosDB account. | ||
| * | ||
| * @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
| * @param accountName Cosmos DB database account 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 chaos Fault List Response as paginated response with {@link PagedIterable}. | ||
| */ | ||
| @ServiceMethod(returns = ReturnType.COLLECTION) | ||
| PagedIterable<ChaosFaultResourceInner> list(String resourceGroupName, String accountName); | ||
|
|
||
| /** | ||
| * List Chaos Faults for CosmosDB account. | ||
| * | ||
| * @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
| * @param accountName Cosmos DB database account 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 chaos Fault List Response as paginated response with {@link PagedIterable}. | ||
| */ | ||
| @ServiceMethod(returns = ReturnType.COLLECTION) | ||
| PagedIterable<ChaosFaultResourceInner> list(String resourceGroupName, String accountName, Context context); | ||
| } |
2 changes: 1 addition & 1 deletion
2
...c/main/java/com/azure/resourcemanager/cosmos/fluent/CollectionPartitionRegionsClient.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...mos/src/main/java/com/azure/resourcemanager/cosmos/fluent/CollectionPartitionsClient.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...cosmos/src/main/java/com/azure/resourcemanager/cosmos/fluent/CollectionRegionsClient.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/fluent/CollectionsClient.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.