Skip to content

Commit acf838b

Browse files
author
SDKAuto
committed
CodeGen from PR 20924 in Azure/azure-rest-api-specs
Merge cc9e79188a0d40a064cc03fa2473311173dec797 into 9f83afe71e613b243f1374e2c666af057aac15cd
1 parent 5d45ec1 commit acf838b

File tree

177 files changed

+13451
-376
lines changed

Some content is hidden

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

177 files changed

+13451
-376
lines changed

sdk/azurestackhci/azure-resourcemanager-azurestackhci/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.4 (Unreleased)
3+
## 1.0.0-beta.1 (2022-10-01)
4+
5+
- Azure Resource Manager AzureStackHci client library for Java. This package contains Microsoft Azure SDK for AzureStackHci Management SDK. Azure Stack HCI management service. Package tag package-2022-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/azurestackhci/azure-resourcemanager-azurestackhci/README.md

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

33
Azure Resource Manager AzureStackHci client library for Java.
44

5-
This package contains Microsoft Azure SDK for AzureStackHci Management SDK. Azure Stack HCI management service. Package tag package-2022-05. 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 AzureStackHci Management SDK. Azure Stack HCI management service. Package tag package-2022-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-azurestackhci</artifactId>
35-
<version>1.0.0-beta.3</version>
35+
<version>1.0.0-beta.4</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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

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

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<packaging>jar</packaging>
1414

1515
<name>Microsoft Azure SDK for AzureStackHci Management</name>
16-
<description>This package contains Microsoft Azure SDK for AzureStackHci Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Stack HCI management service. Package tag package-2022-05.</description>
16+
<description>This package contains Microsoft Azure SDK for AzureStackHci Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Stack HCI management service. Package tag package-2022-10.</description>
1717
<url>https://github.com/Azure/azure-sdk-for-java</url>
1818

1919
<licenses>

sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/AzureStackHciManager.java

+98-1
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,23 @@
2828
import com.azure.resourcemanager.azurestackhci.implementation.AzureStackHciClientBuilder;
2929
import com.azure.resourcemanager.azurestackhci.implementation.ClustersImpl;
3030
import com.azure.resourcemanager.azurestackhci.implementation.ExtensionsImpl;
31+
import com.azure.resourcemanager.azurestackhci.implementation.OffersImpl;
3132
import com.azure.resourcemanager.azurestackhci.implementation.OperationsImpl;
33+
import com.azure.resourcemanager.azurestackhci.implementation.PublishersImpl;
34+
import com.azure.resourcemanager.azurestackhci.implementation.SkusImpl;
35+
import com.azure.resourcemanager.azurestackhci.implementation.UpdateRunsImpl;
36+
import com.azure.resourcemanager.azurestackhci.implementation.UpdateSummariesOperationsImpl;
37+
import com.azure.resourcemanager.azurestackhci.implementation.UpdatesImpl;
3238
import com.azure.resourcemanager.azurestackhci.models.ArcSettings;
3339
import com.azure.resourcemanager.azurestackhci.models.Clusters;
3440
import com.azure.resourcemanager.azurestackhci.models.Extensions;
41+
import com.azure.resourcemanager.azurestackhci.models.Offers;
3542
import com.azure.resourcemanager.azurestackhci.models.Operations;
43+
import com.azure.resourcemanager.azurestackhci.models.Publishers;
44+
import com.azure.resourcemanager.azurestackhci.models.Skus;
45+
import com.azure.resourcemanager.azurestackhci.models.UpdateRuns;
46+
import com.azure.resourcemanager.azurestackhci.models.UpdateSummariesOperations;
47+
import com.azure.resourcemanager.azurestackhci.models.Updates;
3648
import java.time.Duration;
3749
import java.time.temporal.ChronoUnit;
3850
import java.util.ArrayList;
@@ -50,6 +62,18 @@ public final class AzureStackHciManager {
5062

5163
private Operations operations;
5264

65+
private Offers offers;
66+
67+
private Publishers publishers;
68+
69+
private Skus skus;
70+
71+
private UpdateRuns updateRuns;
72+
73+
private UpdateSummariesOperations updateSummariesOperations;
74+
75+
private Updates updates;
76+
5377
private final AzureStackHciClient clientObject;
5478

5579
private AzureStackHciManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -215,7 +239,7 @@ public AzureStackHciManager authenticate(TokenCredential credential, AzureProfil
215239
.append("-")
216240
.append("com.azure.resourcemanager.azurestackhci")
217241
.append("/")
218-
.append("1.0.0-beta.3");
242+
.append("1.0.0-beta.1");
219243
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
220244
userAgentBuilder
221245
.append(" (")
@@ -320,6 +344,79 @@ public Operations operations() {
320344
return operations;
321345
}
322346

347+
/**
348+
* Gets the resource collection API of Offers.
349+
*
350+
* @return Resource collection API of Offers.
351+
*/
352+
public Offers offers() {
353+
if (this.offers == null) {
354+
this.offers = new OffersImpl(clientObject.getOffers(), this);
355+
}
356+
return offers;
357+
}
358+
359+
/**
360+
* Gets the resource collection API of Publishers.
361+
*
362+
* @return Resource collection API of Publishers.
363+
*/
364+
public Publishers publishers() {
365+
if (this.publishers == null) {
366+
this.publishers = new PublishersImpl(clientObject.getPublishers(), this);
367+
}
368+
return publishers;
369+
}
370+
371+
/**
372+
* Gets the resource collection API of Skus.
373+
*
374+
* @return Resource collection API of Skus.
375+
*/
376+
public Skus skus() {
377+
if (this.skus == null) {
378+
this.skus = new SkusImpl(clientObject.getSkus(), this);
379+
}
380+
return skus;
381+
}
382+
383+
/**
384+
* Gets the resource collection API of UpdateRuns.
385+
*
386+
* @return Resource collection API of UpdateRuns.
387+
*/
388+
public UpdateRuns updateRuns() {
389+
if (this.updateRuns == null) {
390+
this.updateRuns = new UpdateRunsImpl(clientObject.getUpdateRuns(), this);
391+
}
392+
return updateRuns;
393+
}
394+
395+
/**
396+
* Gets the resource collection API of UpdateSummariesOperations.
397+
*
398+
* @return Resource collection API of UpdateSummariesOperations.
399+
*/
400+
public UpdateSummariesOperations updateSummariesOperations() {
401+
if (this.updateSummariesOperations == null) {
402+
this.updateSummariesOperations =
403+
new UpdateSummariesOperationsImpl(clientObject.getUpdateSummariesOperations(), this);
404+
}
405+
return updateSummariesOperations;
406+
}
407+
408+
/**
409+
* Gets the resource collection API of Updates.
410+
*
411+
* @return Resource collection API of Updates.
412+
*/
413+
public Updates updates() {
414+
if (this.updates == null) {
415+
this.updates = new UpdatesImpl(clientObject.getUpdates(), this);
416+
}
417+
return updates;
418+
}
419+
323420
/**
324421
* @return Wrapped service client AzureStackHciClient providing direct access to the underlying auto-generated API
325422
* implementation, based on Azure REST API.

sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ArcSettingsClient.java

+29-29
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,6 @@ public interface ArcSettingsClient {
4545
@ServiceMethod(returns = ReturnType.COLLECTION)
4646
PagedIterable<ArcSettingInner> listByCluster(String resourceGroupName, String clusterName, Context context);
4747

48-
/**
49-
* Get ArcSetting resource details of HCI Cluster.
50-
*
51-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
52-
* @param clusterName The name of the cluster.
53-
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
54-
* @throws IllegalArgumentException thrown if parameters fail the validation.
55-
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
56-
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
57-
* @return arcSetting resource details of HCI Cluster.
58-
*/
59-
@ServiceMethod(returns = ReturnType.SINGLE)
60-
ArcSettingInner get(String resourceGroupName, String clusterName, String arcSettingName);
61-
6248
/**
6349
* Get ArcSetting resource details of HCI Cluster.
6450
*
@@ -76,20 +62,18 @@ Response<ArcSettingInner> getWithResponse(
7662
String resourceGroupName, String clusterName, String arcSettingName, Context context);
7763

7864
/**
79-
* Create ArcSetting for HCI cluster.
65+
* Get ArcSetting resource details of HCI Cluster.
8066
*
8167
* @param resourceGroupName The name of the resource group. The name is case insensitive.
8268
* @param clusterName The name of the cluster.
8369
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
84-
* @param arcSetting Parameters supplied to the Create ArcSetting resource for this HCI cluster.
8570
* @throws IllegalArgumentException thrown if parameters fail the validation.
8671
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
8772
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
88-
* @return arcSetting details.
73+
* @return arcSetting resource details of HCI Cluster.
8974
*/
9075
@ServiceMethod(returns = ReturnType.SINGLE)
91-
ArcSettingInner create(
92-
String resourceGroupName, String clusterName, String arcSettingName, ArcSettingInner arcSetting);
76+
ArcSettingInner get(String resourceGroupName, String clusterName, String arcSettingName);
9377

9478
/**
9579
* Create ArcSetting for HCI cluster.
@@ -113,20 +97,20 @@ Response<ArcSettingInner> createWithResponse(
11397
Context context);
11498

11599
/**
116-
* Update ArcSettings for HCI cluster.
100+
* Create ArcSetting for HCI cluster.
117101
*
118102
* @param resourceGroupName The name of the resource group. The name is case insensitive.
119103
* @param clusterName The name of the cluster.
120104
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
121-
* @param arcSetting ArcSettings parameters that needs to be updated.
105+
* @param arcSetting Parameters supplied to the Create ArcSetting resource for this HCI cluster.
122106
* @throws IllegalArgumentException thrown if parameters fail the validation.
123107
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
124108
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
125109
* @return arcSetting details.
126110
*/
127111
@ServiceMethod(returns = ReturnType.SINGLE)
128-
ArcSettingInner update(
129-
String resourceGroupName, String clusterName, String arcSettingName, ArcSettingsPatch arcSetting);
112+
ArcSettingInner create(
113+
String resourceGroupName, String clusterName, String arcSettingName, ArcSettingInner arcSetting);
130114

131115
/**
132116
* Update ArcSettings for HCI cluster.
@@ -149,6 +133,22 @@ Response<ArcSettingInner> updateWithResponse(
149133
ArcSettingsPatch arcSetting,
150134
Context context);
151135

136+
/**
137+
* Update ArcSettings for HCI cluster.
138+
*
139+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
140+
* @param clusterName The name of the cluster.
141+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
142+
* @param arcSetting ArcSettings parameters that needs to be updated.
143+
* @throws IllegalArgumentException thrown if parameters fail the validation.
144+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
145+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
146+
* @return arcSetting details.
147+
*/
148+
@ServiceMethod(returns = ReturnType.SINGLE)
149+
ArcSettingInner update(
150+
String resourceGroupName, String clusterName, String arcSettingName, ArcSettingsPatch arcSetting);
151+
152152
/**
153153
* Delete ArcSetting resource details of HCI Cluster.
154154
*
@@ -212,29 +212,29 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
212212
* @param resourceGroupName The name of the resource group. The name is case insensitive.
213213
* @param clusterName The name of the cluster.
214214
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
215+
* @param context The context to associate with this operation.
215216
* @throws IllegalArgumentException thrown if parameters fail the validation.
216217
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
217218
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
218-
* @return the response.
219+
* @return the response body along with {@link Response}.
219220
*/
220221
@ServiceMethod(returns = ReturnType.SINGLE)
221-
PasswordCredentialInner generatePassword(String resourceGroupName, String clusterName, String arcSettingName);
222+
Response<PasswordCredentialInner> generatePasswordWithResponse(
223+
String resourceGroupName, String clusterName, String arcSettingName, Context context);
222224

223225
/**
224226
* Generate password for arc settings.
225227
*
226228
* @param resourceGroupName The name of the resource group. The name is case insensitive.
227229
* @param clusterName The name of the cluster.
228230
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
229-
* @param context The context to associate with this operation.
230231
* @throws IllegalArgumentException thrown if parameters fail the validation.
231232
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
232233
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
233-
* @return the response body along with {@link Response}.
234+
* @return the response.
234235
*/
235236
@ServiceMethod(returns = ReturnType.SINGLE)
236-
Response<PasswordCredentialInner> generatePasswordWithResponse(
237-
String resourceGroupName, String clusterName, String arcSettingName, Context context);
237+
PasswordCredentialInner generatePassword(String resourceGroupName, String clusterName, String arcSettingName);
238238

239239
/**
240240
* Create Aad identity for arc settings.

sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/AzureStackHciClient.java

+42
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,46 @@ public interface AzureStackHciClient {
7171
* @return the OperationsClient object.
7272
*/
7373
OperationsClient getOperations();
74+
75+
/**
76+
* Gets the OffersClient object to access its operations.
77+
*
78+
* @return the OffersClient object.
79+
*/
80+
OffersClient getOffers();
81+
82+
/**
83+
* Gets the PublishersClient object to access its operations.
84+
*
85+
* @return the PublishersClient object.
86+
*/
87+
PublishersClient getPublishers();
88+
89+
/**
90+
* Gets the SkusClient object to access its operations.
91+
*
92+
* @return the SkusClient object.
93+
*/
94+
SkusClient getSkus();
95+
96+
/**
97+
* Gets the UpdateRunsClient object to access its operations.
98+
*
99+
* @return the UpdateRunsClient object.
100+
*/
101+
UpdateRunsClient getUpdateRuns();
102+
103+
/**
104+
* Gets the UpdateSummariesOperationsClient object to access its operations.
105+
*
106+
* @return the UpdateSummariesOperationsClient object.
107+
*/
108+
UpdateSummariesOperationsClient getUpdateSummariesOperations();
109+
110+
/**
111+
* Gets the UpdatesClient object to access its operations.
112+
*
113+
* @return the UpdatesClient object.
114+
*/
115+
UpdatesClient getUpdates();
74116
}

0 commit comments

Comments
 (0)