Skip to content

Commit 1cb6e7f

Browse files
authored
mgmt, local generation for azure cosmos registry - 2025-11-preview (#47256)
* Update Cosmos DB API source and args for package preview 2025-11-01 * gulp codegen * Update CHANGELOG for 2.54.0-beta.1 release with dependency updates * Add revapi.skip configuration to pom.xml * delete sample code * Update azure-resourcemanager-cosmos version to 2.53.4 in pom.xml and remove unreleased entry from version_client.txt
1 parent df8b86f commit 1cb6e7f

File tree

507 files changed

+67901
-10139
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

507 files changed

+67901
-10139
lines changed

sdk/cosmos/azure-resourcemanager-cosmos/CHANGELOG.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
# Release History
22

3-
## 2.54.0-beta.1 (Unreleased)
3+
## 2.54.0-beta.1 (2025-11-13)
44

5-
### Features Added
6-
7-
### Breaking Changes
5+
### Other Changes
86

9-
### Bugs Fixed
7+
#### Dependency Updates
108

11-
### Other Changes
9+
- Updated `api-version` to `2025-11-01-preview`.
1210

1311
## 2.53.4 (2025-10-27)
1412

sdk/cosmos/azure-resourcemanager-cosmos/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
<!-- RMJacoco -->
3636
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
3737
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
38+
<revapi.skip>true</revapi.skip>
3839
<!-- 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. -->
3940
<javaModulesSurefireArgLine>
4041
--add-exports com.azure.resourcemanager.resources/com.azure.resourcemanager.resources.fluentcore.arm.collection.implementation=ALL-UNNAMED

sdk/cosmos/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/fluent/CassandraClustersClient.java

Lines changed: 400 additions & 40 deletions
Large diffs are not rendered by default.

sdk/cosmos/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/fluent/CassandraResourcesClient.java

Lines changed: 1883 additions & 401 deletions
Large diffs are not rendered by default.
Lines changed: 240 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,240 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.resourcemanager.cosmos.fluent;
6+
7+
import com.azure.core.annotation.ReturnType;
8+
import com.azure.core.annotation.ServiceMethod;
9+
import com.azure.core.http.rest.PagedFlux;
10+
import com.azure.core.http.rest.PagedIterable;
11+
import com.azure.core.http.rest.Response;
12+
import com.azure.core.management.polling.PollResult;
13+
import com.azure.core.util.Context;
14+
import com.azure.core.util.polling.PollerFlux;
15+
import com.azure.core.util.polling.SyncPoller;
16+
import com.azure.resourcemanager.cosmos.fluent.models.ChaosFaultResourceInner;
17+
import java.nio.ByteBuffer;
18+
import reactor.core.publisher.Flux;
19+
import reactor.core.publisher.Mono;
20+
21+
/**
22+
* An instance of this class provides access to all the operations defined in ChaosFaultsClient.
23+
*/
24+
public interface ChaosFaultsClient {
25+
/**
26+
* List Chaos Faults for CosmosDB account.
27+
*
28+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
29+
* @param accountName Cosmos DB database account name.
30+
* @throws IllegalArgumentException thrown if parameters fail the validation.
31+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
32+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
33+
* @return chaos Fault List Response as paginated response with {@link PagedFlux}.
34+
*/
35+
@ServiceMethod(returns = ReturnType.COLLECTION)
36+
PagedFlux<ChaosFaultResourceInner> listAsync(String resourceGroupName, String accountName);
37+
38+
/**
39+
* List Chaos Faults for CosmosDB account.
40+
*
41+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
42+
* @param accountName Cosmos DB database account name.
43+
* @throws IllegalArgumentException thrown if parameters fail the validation.
44+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
45+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
46+
* @return chaos Fault List Response as paginated response with {@link PagedIterable}.
47+
*/
48+
@ServiceMethod(returns = ReturnType.COLLECTION)
49+
PagedIterable<ChaosFaultResourceInner> list(String resourceGroupName, String accountName);
50+
51+
/**
52+
* List Chaos Faults for CosmosDB account.
53+
*
54+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
55+
* @param accountName Cosmos DB database account name.
56+
* @param context The context to associate with this operation.
57+
* @throws IllegalArgumentException thrown if parameters fail the validation.
58+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
59+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
60+
* @return chaos Fault List Response as paginated response with {@link PagedIterable}.
61+
*/
62+
@ServiceMethod(returns = ReturnType.COLLECTION)
63+
PagedIterable<ChaosFaultResourceInner> list(String resourceGroupName, String accountName, Context context);
64+
65+
/**
66+
* Enable, disable Chaos Fault in a CosmosDB account.
67+
*
68+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
69+
* @param accountName Cosmos DB database account name.
70+
* @param chaosFault The name of the ChaosFault.
71+
* @param chaosFaultRequest A request object to enable/disable the chaos fault.
72+
* @throws IllegalArgumentException thrown if parameters fail the validation.
73+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
74+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
75+
* @return a request object to enable/disable the chaos fault along with {@link Response} on successful completion
76+
* of {@link Mono}.
77+
*/
78+
@ServiceMethod(returns = ReturnType.SINGLE)
79+
Mono<Response<Flux<ByteBuffer>>> enableDisableWithResponseAsync(String resourceGroupName, String accountName,
80+
String chaosFault, ChaosFaultResourceInner chaosFaultRequest);
81+
82+
/**
83+
* Enable, disable Chaos Fault in a CosmosDB account.
84+
*
85+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
86+
* @param accountName Cosmos DB database account name.
87+
* @param chaosFault The name of the ChaosFault.
88+
* @param chaosFaultRequest A request object to enable/disable the chaos fault.
89+
* @throws IllegalArgumentException thrown if parameters fail the validation.
90+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
91+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
92+
* @return the {@link PollerFlux} for polling of a request object to enable/disable the chaos fault.
93+
*/
94+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
95+
PollerFlux<PollResult<ChaosFaultResourceInner>, ChaosFaultResourceInner> beginEnableDisableAsync(
96+
String resourceGroupName, String accountName, String chaosFault, ChaosFaultResourceInner chaosFaultRequest);
97+
98+
/**
99+
* Enable, disable Chaos Fault in a CosmosDB account.
100+
*
101+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
102+
* @param accountName Cosmos DB database account name.
103+
* @param chaosFault The name of the ChaosFault.
104+
* @param chaosFaultRequest A request object to enable/disable the chaos fault.
105+
* @throws IllegalArgumentException thrown if parameters fail the validation.
106+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
107+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
108+
* @return the {@link SyncPoller} for polling of a request object to enable/disable the chaos fault.
109+
*/
110+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
111+
SyncPoller<PollResult<ChaosFaultResourceInner>, ChaosFaultResourceInner> beginEnableDisable(
112+
String resourceGroupName, String accountName, String chaosFault, ChaosFaultResourceInner chaosFaultRequest);
113+
114+
/**
115+
* Enable, disable Chaos Fault in a CosmosDB account.
116+
*
117+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
118+
* @param accountName Cosmos DB database account name.
119+
* @param chaosFault The name of the ChaosFault.
120+
* @param chaosFaultRequest A request object to enable/disable the chaos fault.
121+
* @param context The context to associate with this operation.
122+
* @throws IllegalArgumentException thrown if parameters fail the validation.
123+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
124+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
125+
* @return the {@link SyncPoller} for polling of a request object to enable/disable the chaos fault.
126+
*/
127+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
128+
SyncPoller<PollResult<ChaosFaultResourceInner>, ChaosFaultResourceInner> beginEnableDisable(
129+
String resourceGroupName, String accountName, String chaosFault, ChaosFaultResourceInner chaosFaultRequest,
130+
Context context);
131+
132+
/**
133+
* Enable, disable Chaos Fault in a CosmosDB account.
134+
*
135+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
136+
* @param accountName Cosmos DB database account name.
137+
* @param chaosFault The name of the ChaosFault.
138+
* @param chaosFaultRequest A request object to enable/disable the chaos fault.
139+
* @throws IllegalArgumentException thrown if parameters fail the validation.
140+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
141+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
142+
* @return a request object to enable/disable the chaos fault on successful completion of {@link Mono}.
143+
*/
144+
@ServiceMethod(returns = ReturnType.SINGLE)
145+
Mono<ChaosFaultResourceInner> enableDisableAsync(String resourceGroupName, String accountName, String chaosFault,
146+
ChaosFaultResourceInner chaosFaultRequest);
147+
148+
/**
149+
* Enable, disable Chaos Fault in a CosmosDB account.
150+
*
151+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
152+
* @param accountName Cosmos DB database account name.
153+
* @param chaosFault The name of the ChaosFault.
154+
* @param chaosFaultRequest A request object to enable/disable the chaos fault.
155+
* @throws IllegalArgumentException thrown if parameters fail the validation.
156+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
157+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
158+
* @return a request object to enable/disable the chaos fault.
159+
*/
160+
@ServiceMethod(returns = ReturnType.SINGLE)
161+
ChaosFaultResourceInner enableDisable(String resourceGroupName, String accountName, String chaosFault,
162+
ChaosFaultResourceInner chaosFaultRequest);
163+
164+
/**
165+
* Enable, disable Chaos Fault in a CosmosDB account.
166+
*
167+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
168+
* @param accountName Cosmos DB database account name.
169+
* @param chaosFault The name of the ChaosFault.
170+
* @param chaosFaultRequest A request object to enable/disable the chaos fault.
171+
* @param context The context to associate with this operation.
172+
* @throws IllegalArgumentException thrown if parameters fail the validation.
173+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
174+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
175+
* @return a request object to enable/disable the chaos fault.
176+
*/
177+
@ServiceMethod(returns = ReturnType.SINGLE)
178+
ChaosFaultResourceInner enableDisable(String resourceGroupName, String accountName, String chaosFault,
179+
ChaosFaultResourceInner chaosFaultRequest, Context context);
180+
181+
/**
182+
* Get Chaos Fault for a CosmosdB account for a particular Chaos Fault.
183+
*
184+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
185+
* @param accountName Cosmos DB database account name.
186+
* @param chaosFault The name of the ChaosFault.
187+
* @throws IllegalArgumentException thrown if parameters fail the validation.
188+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
189+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
190+
* @return chaos Fault for a CosmosdB account for a particular Chaos Fault along with {@link Response} on successful
191+
* completion of {@link Mono}.
192+
*/
193+
@ServiceMethod(returns = ReturnType.SINGLE)
194+
Mono<Response<ChaosFaultResourceInner>> getWithResponseAsync(String resourceGroupName, String accountName,
195+
String chaosFault);
196+
197+
/**
198+
* Get Chaos Fault for a CosmosdB account for a particular Chaos Fault.
199+
*
200+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
201+
* @param accountName Cosmos DB database account name.
202+
* @param chaosFault The name of the ChaosFault.
203+
* @throws IllegalArgumentException thrown if parameters fail the validation.
204+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
205+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
206+
* @return chaos Fault for a CosmosdB account for a particular Chaos Fault on successful completion of {@link Mono}.
207+
*/
208+
@ServiceMethod(returns = ReturnType.SINGLE)
209+
Mono<ChaosFaultResourceInner> getAsync(String resourceGroupName, String accountName, String chaosFault);
210+
211+
/**
212+
* Get Chaos Fault for a CosmosdB account for a particular Chaos Fault.
213+
*
214+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
215+
* @param accountName Cosmos DB database account name.
216+
* @param chaosFault The name of the ChaosFault.
217+
* @param context The context to associate with this operation.
218+
* @throws IllegalArgumentException thrown if parameters fail the validation.
219+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
220+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
221+
* @return chaos Fault for a CosmosdB account for a particular Chaos Fault along with {@link Response}.
222+
*/
223+
@ServiceMethod(returns = ReturnType.SINGLE)
224+
Response<ChaosFaultResourceInner> getWithResponse(String resourceGroupName, String accountName, String chaosFault,
225+
Context context);
226+
227+
/**
228+
* Get Chaos Fault for a CosmosdB account for a particular Chaos Fault.
229+
*
230+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
231+
* @param accountName Cosmos DB database account name.
232+
* @param chaosFault The name of the ChaosFault.
233+
* @throws IllegalArgumentException thrown if parameters fail the validation.
234+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
235+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
236+
* @return chaos Fault for a CosmosdB account for a particular Chaos Fault.
237+
*/
238+
@ServiceMethod(returns = ReturnType.SINGLE)
239+
ChaosFaultResourceInner get(String resourceGroupName, String accountName, String chaosFault);
240+
}

0 commit comments

Comments
 (0)