Skip to content
Draft
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
62 changes: 62 additions & 0 deletions eng/lintingconfigs/revapi/track2/revapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,68 @@
"match": "class com\\.azure\\.resourcemanager\\.containerregistry\\.models\\..*ListResult"
},
"justification": "Pageable models moved to implementation package. Unlikely used by user."
},
{
"code": "java.method.visibilityReduced",
"old" : {
"matcher": "regex",
"match": "method void com\\.azure\\.resourcemanager\\.cosmos\\.models\\..*\\:\\:\\<init\\>\\(\\)"
},
"justification": "Output-only immutable models' constructors are now private."
},
{
"code": "java.method.visibilityReduced",
"old" : {
"matcher": "regex",
"match": "method .* com\\.azure\\.resourcemanager\\.cosmos\\.models\\..*\\:\\:with.*\\(.*\\).*"
},
"justification": "Output-only immutable models' setters are now package-private if it's being used by child class."
},
{
"code": "java.method.removed",
"old" : {
"matcher": "regex",
"match": "method .* com\\.azure\\.resourcemanager\\.cosmos\\.models\\..*\\:\\:with.*\\(.*\\).*"
},
"justification": "Output-only immutable models' setters are removed if no explicit usage."
},
{
"code": "java.class.removed",
"old" : {
"matcher": "regex",
"match": "class com\\.azure\\.resourcemanager\\.cosmos\\.models\\..*ListResult"
},
"justification": "Pageable models moved to implementation package. Unlikely used by user."
},
{
"code": "java.class.removed",
"old" : {
"matcher": "regex",
"match": "class com\\.azure\\.resourcemanager\\.cosmos\\.models\\.(ListClusters|ListDataCenters|PartitionUsagesResult|UsagesResult)"
},
"justification": "Pageable/List models moved to implementation package. Unlikely used by user."
},
{
"code": "java.class.removed",
"old" : {
"matcher": "regex",
"match": "class com\\.azure\\.resourcemanager\\.cosmos\\.models\\.(ExtendedResourceProperties|ManagedCassandraArmResourceProperties)"
},
"justification": "Models removed as part of TypeSpec migration. Base types consolidated."
},
{
"regex": true,
"code": "java\\.missing\\.(oldSuperType|newSuperType)",
"old" : "class com\\.azure\\.resourcemanager\\.cosmos\\.models\\..*",
"justification": "TypeSpec fix for base resource class."
},
{
"code": "java.method.returnTypeChanged",
"old" : {
"matcher": "regex",
"match": "method .* com\\.azure\\.resourcemanager\\.cosmos\\.models\\..*\\:\\:with.*\\(.*\\).*"
},
"justification": "Setter return type changed from GetPropertiesResource to Resource in TypeSpec migration."
}
]
}
Expand Down
6 changes: 0 additions & 6 deletions sdk/cosmos/azure-resourcemanager-cosmos/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@

## 2.55.0-beta.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 2.54.1 (2026-01-29)
Expand Down
2 changes: 1 addition & 1 deletion sdk/cosmos/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.54.0</version>
<version>2.55.0-beta.1</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

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);
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Code generated by Microsoft (R) TypeSpec Code Generator.

package com.azure.resourcemanager.cosmos.fluent;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Code generated by Microsoft (R) TypeSpec Code Generator.

package com.azure.resourcemanager.cosmos.fluent;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Code generated by Microsoft (R) TypeSpec Code Generator.

package com.azure.resourcemanager.cosmos.fluent;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Code generated by Microsoft (R) TypeSpec Code Generator.

package com.azure.resourcemanager.cosmos.fluent;

Expand Down
Loading
Loading