Skip to content

Commit 4998d08

Browse files
author
SDKAuto
committed
CodeGen from PR 25768 in Azure/azure-rest-api-specs
Merge 4df12989532bc0bc628ba09157705fec5db30f29 into 4c38cb9966cd6afbb03c7e9b14997720a728baee
1 parent 719049b commit 4998d08

File tree

113 files changed

+3536
-3334
lines changed

Some content is hidden

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

113 files changed

+3536
-3334
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.0.0-beta.3 (Unreleased)
3+
## 1.0.0-beta.1 (2023-10-19)
4+
5+
- Azure Resource Manager ContainerServiceFleet client library for Java. This package contains Microsoft Azure SDK for ContainerServiceFleet Management SDK. Azure Kubernetes Fleet Manager Client. Package tag package-2023-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
46

57
### Features Added
68

sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager ContainerServiceFleet client library for Java.
44

5-
This package contains Microsoft Azure SDK for ContainerServiceFleet Management SDK. Azure Kubernetes Fleet Manager Client. Package tag package-2023-06-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
5+
This package contains Microsoft Azure SDK for ContainerServiceFleet Management SDK. Azure Kubernetes Fleet Manager Client. Package tag package-2023-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

77
## We'd love to hear your feedback
88

@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-containerservicefleet</artifactId>
35-
<version>1.0.0-beta.2</version>
35+
<version>1.0.0-beta.3</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})
@@ -45,7 +45,7 @@ Azure Management Libraries require a `TokenCredential` implementation for authen
4545

4646
### Authentication
4747

48-
By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables.
48+
By default, Microsoft Entra ID token authentication depends on correct configuration of the following environment variables.
4949

5050
- `AZURE_CLIENT_ID` for Azure client ID.
5151
- `AZURE_TENANT_ID` for Azure tenant ID.
@@ -94,7 +94,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
9494
<!-- LINKS -->
9595
[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
9696
[docs]: https://azure.github.io/azure-sdk-for-java/
97-
[jdk]: https://docs.microsoft.com/java/azure/jdk/
97+
[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
9898
[azure_subscription]: https://azure.microsoft.com/free/
9999
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
100100
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty

sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/SAMPLE.md

+126-21
Large diffs are not rendered by default.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<packaging>jar</packaging>
1919

2020
<name>Microsoft Azure SDK for ContainerServiceFleet Management</name>
21-
<description>This package contains Microsoft Azure SDK for ContainerServiceFleet Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Kubernetes Fleet Manager Client. Package tag package-2023-06-preview.</description>
21+
<description>This package contains Microsoft Azure SDK for ContainerServiceFleet Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Kubernetes Fleet Manager Client. Package tag package-2023-10.</description>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>

sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/ContainerServiceFleetManager.java

+17-1
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@
2626
import com.azure.resourcemanager.containerservicefleet.fluent.ContainerServiceFleetManagementClient;
2727
import com.azure.resourcemanager.containerservicefleet.implementation.ContainerServiceFleetManagementClientBuilder;
2828
import com.azure.resourcemanager.containerservicefleet.implementation.FleetMembersImpl;
29+
import com.azure.resourcemanager.containerservicefleet.implementation.FleetUpdateStrategiesImpl;
2930
import com.azure.resourcemanager.containerservicefleet.implementation.FleetsImpl;
3031
import com.azure.resourcemanager.containerservicefleet.implementation.OperationsImpl;
3132
import com.azure.resourcemanager.containerservicefleet.implementation.UpdateRunsImpl;
3233
import com.azure.resourcemanager.containerservicefleet.models.FleetMembers;
34+
import com.azure.resourcemanager.containerservicefleet.models.FleetUpdateStrategies;
3335
import com.azure.resourcemanager.containerservicefleet.models.Fleets;
3436
import com.azure.resourcemanager.containerservicefleet.models.Operations;
3537
import com.azure.resourcemanager.containerservicefleet.models.UpdateRuns;
@@ -50,6 +52,8 @@ public final class ContainerServiceFleetManager {
5052

5153
private UpdateRuns updateRuns;
5254

55+
private FleetUpdateStrategies fleetUpdateStrategies;
56+
5357
private final ContainerServiceFleetManagementClient clientObject;
5458

5559
private ContainerServiceFleetManager(
@@ -216,7 +220,7 @@ public ContainerServiceFleetManager authenticate(TokenCredential credential, Azu
216220
.append("-")
217221
.append("com.azure.resourcemanager.containerservicefleet")
218222
.append("/")
219-
.append("1.0.0-beta.2");
223+
.append("1.0.0-beta.1");
220224
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
221225
userAgentBuilder
222226
.append(" (")
@@ -321,6 +325,18 @@ public UpdateRuns updateRuns() {
321325
return updateRuns;
322326
}
323327

328+
/**
329+
* Gets the resource collection API of FleetUpdateStrategies. It manages FleetUpdateStrategy.
330+
*
331+
* @return Resource collection API of FleetUpdateStrategies.
332+
*/
333+
public FleetUpdateStrategies fleetUpdateStrategies() {
334+
if (this.fleetUpdateStrategies == null) {
335+
this.fleetUpdateStrategies = new FleetUpdateStrategiesImpl(clientObject.getFleetUpdateStrategies(), this);
336+
}
337+
return fleetUpdateStrategies;
338+
}
339+
324340
/**
325341
* Gets wrapped service client ContainerServiceFleetManagementClient providing direct access to the underlying
326342
* auto-generated API implementation, based on Azure REST API.

sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/ContainerServiceFleetManagementClient.java

+7
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,11 @@ public interface ContainerServiceFleetManagementClient {
7171
* @return the UpdateRunsClient object.
7272
*/
7373
UpdateRunsClient getUpdateRuns();
74+
75+
/**
76+
* Gets the FleetUpdateStrategiesClient object to access its operations.
77+
*
78+
* @return the FleetUpdateStrategiesClient object.
79+
*/
80+
FleetUpdateStrategiesClient getFleetUpdateStrategies();
7481
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,218 @@
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.containerservicefleet.fluent;
6+
7+
import com.azure.core.annotation.ReturnType;
8+
import com.azure.core.annotation.ServiceMethod;
9+
import com.azure.core.http.rest.PagedIterable;
10+
import com.azure.core.http.rest.Response;
11+
import com.azure.core.management.polling.PollResult;
12+
import com.azure.core.util.Context;
13+
import com.azure.core.util.polling.SyncPoller;
14+
import com.azure.resourcemanager.containerservicefleet.fluent.models.FleetUpdateStrategyInner;
15+
16+
/** An instance of this class provides access to all the operations defined in FleetUpdateStrategiesClient. */
17+
public interface FleetUpdateStrategiesClient {
18+
/**
19+
* List FleetUpdateStrategy resources by Fleet.
20+
*
21+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
22+
* @param fleetName The name of the Fleet resource.
23+
* @throws IllegalArgumentException thrown if parameters fail the validation.
24+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
25+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
26+
* @return the response of a FleetUpdateStrategy list operation as paginated response with {@link PagedIterable}.
27+
*/
28+
@ServiceMethod(returns = ReturnType.COLLECTION)
29+
PagedIterable<FleetUpdateStrategyInner> listByFleet(String resourceGroupName, String fleetName);
30+
31+
/**
32+
* List FleetUpdateStrategy resources by Fleet.
33+
*
34+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
35+
* @param fleetName The name of the Fleet resource.
36+
* @param context The context to associate with this operation.
37+
* @throws IllegalArgumentException thrown if parameters fail the validation.
38+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
39+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
40+
* @return the response of a FleetUpdateStrategy list operation as paginated response with {@link PagedIterable}.
41+
*/
42+
@ServiceMethod(returns = ReturnType.COLLECTION)
43+
PagedIterable<FleetUpdateStrategyInner> listByFleet(String resourceGroupName, String fleetName, Context context);
44+
45+
/**
46+
* Get a FleetUpdateStrategy.
47+
*
48+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
49+
* @param fleetName The name of the Fleet resource.
50+
* @param updateStrategyName The name of the UpdateStrategy resource.
51+
* @param context The context to associate with this operation.
52+
* @throws IllegalArgumentException thrown if parameters fail the validation.
53+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
54+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
55+
* @return a FleetUpdateStrategy along with {@link Response}.
56+
*/
57+
@ServiceMethod(returns = ReturnType.SINGLE)
58+
Response<FleetUpdateStrategyInner> getWithResponse(
59+
String resourceGroupName, String fleetName, String updateStrategyName, Context context);
60+
61+
/**
62+
* Get a FleetUpdateStrategy.
63+
*
64+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
65+
* @param fleetName The name of the Fleet resource.
66+
* @param updateStrategyName The name of the UpdateStrategy resource.
67+
* @throws IllegalArgumentException thrown if parameters fail the validation.
68+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
69+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
70+
* @return a FleetUpdateStrategy.
71+
*/
72+
@ServiceMethod(returns = ReturnType.SINGLE)
73+
FleetUpdateStrategyInner get(String resourceGroupName, String fleetName, String updateStrategyName);
74+
75+
/**
76+
* Create a FleetUpdateStrategy.
77+
*
78+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
79+
* @param fleetName The name of the Fleet resource.
80+
* @param updateStrategyName The name of the UpdateStrategy resource.
81+
* @param resource Resource create parameters.
82+
* @throws IllegalArgumentException thrown if parameters fail the validation.
83+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
84+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
85+
* @return the {@link SyncPoller} for polling of defines a multi-stage process to perform update operations across
86+
* members of a Fleet.
87+
*/
88+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
89+
SyncPoller<PollResult<FleetUpdateStrategyInner>, FleetUpdateStrategyInner> beginCreateOrUpdate(
90+
String resourceGroupName, String fleetName, String updateStrategyName, FleetUpdateStrategyInner resource);
91+
92+
/**
93+
* Create a FleetUpdateStrategy.
94+
*
95+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
96+
* @param fleetName The name of the Fleet resource.
97+
* @param updateStrategyName The name of the UpdateStrategy resource.
98+
* @param resource Resource create parameters.
99+
* @param ifMatch The request should only proceed if an entity matches this string.
100+
* @param ifNoneMatch The request should only proceed if no entity matches this string.
101+
* @param context The context to associate with this operation.
102+
* @throws IllegalArgumentException thrown if parameters fail the validation.
103+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
104+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
105+
* @return the {@link SyncPoller} for polling of defines a multi-stage process to perform update operations across
106+
* members of a Fleet.
107+
*/
108+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
109+
SyncPoller<PollResult<FleetUpdateStrategyInner>, FleetUpdateStrategyInner> beginCreateOrUpdate(
110+
String resourceGroupName,
111+
String fleetName,
112+
String updateStrategyName,
113+
FleetUpdateStrategyInner resource,
114+
String ifMatch,
115+
String ifNoneMatch,
116+
Context context);
117+
118+
/**
119+
* Create a FleetUpdateStrategy.
120+
*
121+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
122+
* @param fleetName The name of the Fleet resource.
123+
* @param updateStrategyName The name of the UpdateStrategy resource.
124+
* @param resource Resource create parameters.
125+
* @throws IllegalArgumentException thrown if parameters fail the validation.
126+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
127+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
128+
* @return defines a multi-stage process to perform update operations across members of a Fleet.
129+
*/
130+
@ServiceMethod(returns = ReturnType.SINGLE)
131+
FleetUpdateStrategyInner createOrUpdate(
132+
String resourceGroupName, String fleetName, String updateStrategyName, FleetUpdateStrategyInner resource);
133+
134+
/**
135+
* Create a FleetUpdateStrategy.
136+
*
137+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
138+
* @param fleetName The name of the Fleet resource.
139+
* @param updateStrategyName The name of the UpdateStrategy resource.
140+
* @param resource Resource create parameters.
141+
* @param ifMatch The request should only proceed if an entity matches this string.
142+
* @param ifNoneMatch The request should only proceed if no entity matches this string.
143+
* @param context The context to associate with this operation.
144+
* @throws IllegalArgumentException thrown if parameters fail the validation.
145+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
146+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
147+
* @return defines a multi-stage process to perform update operations across members of a Fleet.
148+
*/
149+
@ServiceMethod(returns = ReturnType.SINGLE)
150+
FleetUpdateStrategyInner createOrUpdate(
151+
String resourceGroupName,
152+
String fleetName,
153+
String updateStrategyName,
154+
FleetUpdateStrategyInner resource,
155+
String ifMatch,
156+
String ifNoneMatch,
157+
Context context);
158+
159+
/**
160+
* Delete a FleetUpdateStrategy.
161+
*
162+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
163+
* @param fleetName The name of the Fleet resource.
164+
* @param updateStrategyName The name of the UpdateStrategy resource.
165+
* @throws IllegalArgumentException thrown if parameters fail the validation.
166+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
167+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
168+
* @return the {@link SyncPoller} for polling of long-running operation.
169+
*/
170+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
171+
SyncPoller<PollResult<Void>, Void> beginDelete(
172+
String resourceGroupName, String fleetName, String updateStrategyName);
173+
174+
/**
175+
* Delete a FleetUpdateStrategy.
176+
*
177+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
178+
* @param fleetName The name of the Fleet resource.
179+
* @param updateStrategyName The name of the UpdateStrategy resource.
180+
* @param ifMatch The request should only proceed if an entity matches this string.
181+
* @param context The context to associate with this operation.
182+
* @throws IllegalArgumentException thrown if parameters fail the validation.
183+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
184+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
185+
* @return the {@link SyncPoller} for polling of long-running operation.
186+
*/
187+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
188+
SyncPoller<PollResult<Void>, Void> beginDelete(
189+
String resourceGroupName, String fleetName, String updateStrategyName, String ifMatch, Context context);
190+
191+
/**
192+
* Delete a FleetUpdateStrategy.
193+
*
194+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
195+
* @param fleetName The name of the Fleet resource.
196+
* @param updateStrategyName The name of the UpdateStrategy resource.
197+
* @throws IllegalArgumentException thrown if parameters fail the validation.
198+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
199+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
200+
*/
201+
@ServiceMethod(returns = ReturnType.SINGLE)
202+
void delete(String resourceGroupName, String fleetName, String updateStrategyName);
203+
204+
/**
205+
* Delete a FleetUpdateStrategy.
206+
*
207+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
208+
* @param fleetName The name of the Fleet resource.
209+
* @param updateStrategyName The name of the UpdateStrategy resource.
210+
* @param ifMatch The request should only proceed if an entity matches this string.
211+
* @param context The context to associate with this operation.
212+
* @throws IllegalArgumentException thrown if parameters fail the validation.
213+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
214+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
215+
*/
216+
@ServiceMethod(returns = ReturnType.SINGLE)
217+
void delete(String resourceGroupName, String fleetName, String updateStrategyName, String ifMatch, Context context);
218+
}

0 commit comments

Comments
 (0)