Skip to content

Commit 031087f

Browse files
author
SDKAuto
committed
CodeGen from PR 20426 in Azure/azure-rest-api-specs
Merge a404488b59bdf570f76bef678a406a3fcf9feb89 into 9efa37b1a42c4d03eff733d9863dcafbd75d7ee3
1 parent 98e871a commit 031087f

File tree

62 files changed

+1082
-114
lines changed

Some content is hidden

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

62 files changed

+1082
-114
lines changed

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

Lines changed: 3 additions & 1 deletion
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-09-02)
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-09. 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

Lines changed: 2 additions & 2 deletions
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-09. 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

Lines changed: 55 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- [Create](#clusters_create)
1717
- [CreateIdentity](#clusters_createidentity)
1818
- [Delete](#clusters_delete)
19+
- [ExtendSoftwareAssuranceBenefit](#clusters_extendsoftwareassurancebenefit)
1920
- [GetByResourceGroup](#clusters_getbyresourcegroup)
2021
- [List](#clusters_list)
2122
- [ListByResourceGroup](#clusters_listbyresourcegroup)
@@ -39,7 +40,7 @@
3940
/** Samples for ArcSettings Create. */
4041
public final class ArcSettingsCreateSamples {
4142
/*
42-
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/PutArcSetting.json
43+
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/PutArcSetting.json
4344
*/
4445
/**
4546
* Sample code: Create ArcSetting.
@@ -60,7 +61,7 @@ import com.azure.core.util.Context;
6061
/** Samples for ArcSettings CreateIdentity. */
6162
public final class ArcSettingsCreateIdentitySamples {
6263
/*
63-
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/CreateArcIdentity.json
64+
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/CreateArcIdentity.json
6465
*/
6566
/**
6667
* Sample code: Create Arc Identity.
@@ -81,7 +82,7 @@ import com.azure.core.util.Context;
8182
/** Samples for ArcSettings Delete. */
8283
public final class ArcSettingsDeleteSamples {
8384
/*
84-
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/DeleteArcSetting.json
85+
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/DeleteArcSetting.json
8586
*/
8687
/**
8788
* Sample code: Delete ArcSetting.
@@ -102,7 +103,7 @@ import com.azure.core.util.Context;
102103
/** Samples for ArcSettings GeneratePassword. */
103104
public final class ArcSettingsGeneratePasswordSamples {
104105
/*
105-
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/GeneratePassword.json
106+
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/GeneratePassword.json
106107
*/
107108
/**
108109
* Sample code: Generate Password.
@@ -123,7 +124,7 @@ import com.azure.core.util.Context;
123124
/** Samples for ArcSettings Get. */
124125
public final class ArcSettingsGetSamples {
125126
/*
126-
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/GetArcSetting.json
127+
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/GetArcSetting.json
127128
*/
128129
/**
129130
* Sample code: Get ArcSetting.
@@ -144,7 +145,7 @@ import com.azure.core.util.Context;
144145
/** Samples for ArcSettings ListByCluster. */
145146
public final class ArcSettingsListByClusterSamples {
146147
/*
147-
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/ListArcSettingsByCluster.json
148+
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/ListArcSettingsByCluster.json
148149
*/
149150
/**
150151
* Sample code: List ArcSetting resources by HCI Cluster.
@@ -170,7 +171,7 @@ import java.io.IOException;
170171
/** Samples for ArcSettings Update. */
171172
public final class ArcSettingsUpdateSamples {
172173
/*
173-
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/PatchArcSetting.json
174+
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/PatchArcSetting.json
174175
*/
175176
/**
176177
* Sample code: Patch ArcSetting.
@@ -198,7 +199,7 @@ public final class ArcSettingsUpdateSamples {
198199
/** Samples for Clusters Create. */
199200
public final class ClustersCreateSamples {
200201
/*
201-
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/CreateCluster.json
202+
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/CreateCluster.json
202203
*/
203204
/**
204205
* Sample code: Create cluster.
@@ -227,7 +228,7 @@ import com.azure.core.util.Context;
227228
/** Samples for Clusters CreateIdentity. */
228229
public final class ClustersCreateIdentitySamples {
229230
/*
230-
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/CreateClusterIdentity.json
231+
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/CreateClusterIdentity.json
231232
*/
232233
/**
233234
* Sample code: Create cluster Identity.
@@ -248,7 +249,7 @@ import com.azure.core.util.Context;
248249
/** Samples for Clusters Delete. */
249250
public final class ClustersDeleteSamples {
250251
/*
251-
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/DeleteCluster.json
252+
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/DeleteCluster.json
252253
*/
253254
/**
254255
* Sample code: Delete cluster.
@@ -261,6 +262,39 @@ public final class ClustersDeleteSamples {
261262
}
262263
```
263264

265+
### Clusters_ExtendSoftwareAssuranceBenefit
266+
267+
```java
268+
import com.azure.core.util.Context;
269+
import com.azure.resourcemanager.azurestackhci.models.SoftwareAssuranceChangeRequest;
270+
import com.azure.resourcemanager.azurestackhci.models.SoftwareAssuranceChangeRequestProperties;
271+
import com.azure.resourcemanager.azurestackhci.models.SoftwareAssuranceIntent;
272+
273+
/** Samples for Clusters ExtendSoftwareAssuranceBenefit. */
274+
public final class ClustersExtendSoftwareAssuranceBenefitSamples {
275+
/*
276+
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/ExtendSoftwareAssuranceBenefit.json
277+
*/
278+
/**
279+
* Sample code: Create cluster Identity.
280+
*
281+
* @param manager Entry point to AzureStackHciManager.
282+
*/
283+
public static void createClusterIdentity(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
284+
manager
285+
.clusters()
286+
.extendSoftwareAssuranceBenefit(
287+
"test-rg",
288+
"myCluster",
289+
new SoftwareAssuranceChangeRequest()
290+
.withProperties(
291+
new SoftwareAssuranceChangeRequestProperties()
292+
.withSoftwareAssuranceIntent(SoftwareAssuranceIntent.ENABLE)),
293+
Context.NONE);
294+
}
295+
}
296+
```
297+
264298
### Clusters_GetByResourceGroup
265299

266300
```java
@@ -269,7 +303,7 @@ import com.azure.core.util.Context;
269303
/** Samples for Clusters GetByResourceGroup. */
270304
public final class ClustersGetByResourceGroupSamples {
271305
/*
272-
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/GetCluster.json
306+
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/GetCluster.json
273307
*/
274308
/**
275309
* Sample code: Get cluster.
@@ -290,7 +324,7 @@ import com.azure.core.util.Context;
290324
/** Samples for Clusters List. */
291325
public final class ClustersListSamples {
292326
/*
293-
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/ListClustersBySubscription.json
327+
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/ListClustersBySubscription.json
294328
*/
295329
/**
296330
* Sample code: List clusters in a given subscription.
@@ -312,7 +346,7 @@ import com.azure.core.util.Context;
312346
/** Samples for Clusters ListByResourceGroup. */
313347
public final class ClustersListByResourceGroupSamples {
314348
/*
315-
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/ListClustersByResourceGroup.json
349+
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/ListClustersByResourceGroup.json
316350
*/
317351
/**
318352
* Sample code: List clusters in a given resource group.
@@ -340,7 +374,7 @@ import java.util.Map;
340374
/** Samples for Clusters Update. */
341375
public final class ClustersUpdateSamples {
342376
/*
343-
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/UpdateCluster.json
377+
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/UpdateCluster.json
344378
*/
345379
/**
346380
* Sample code: Update cluster.
@@ -385,7 +419,7 @@ import java.util.Arrays;
385419
/** Samples for Clusters UploadCertificate. */
386420
public final class ClustersUploadCertificateSamples {
387421
/*
388-
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/UploadCertificate.json
422+
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/UploadCertificate.json
389423
*/
390424
/**
391425
* Sample code: Upload certificate.
@@ -416,7 +450,7 @@ import java.io.IOException;
416450
/** Samples for Extensions Create. */
417451
public final class ExtensionsCreateSamples {
418452
/*
419-
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/PutExtension.json
453+
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/PutExtension.json
420454
*/
421455
/**
422456
* Sample code: Create Arc Extension.
@@ -453,7 +487,7 @@ import com.azure.core.util.Context;
453487
/** Samples for Extensions Delete. */
454488
public final class ExtensionsDeleteSamples {
455489
/*
456-
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/DeleteExtension.json
490+
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/DeleteExtension.json
457491
*/
458492
/**
459493
* Sample code: Delete Arc Extension.
@@ -474,7 +508,7 @@ import com.azure.core.util.Context;
474508
/** Samples for Extensions Get. */
475509
public final class ExtensionsGetSamples {
476510
/*
477-
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/GetExtension.json
511+
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/GetExtension.json
478512
*/
479513
/**
480514
* Sample code: Get ArcSettings Extension.
@@ -497,7 +531,7 @@ import com.azure.core.util.Context;
497531
/** Samples for Extensions ListByArcSetting. */
498532
public final class ExtensionsListByArcSettingSamples {
499533
/*
500-
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/ListExtensionsByArcSetting.json
534+
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/ListExtensionsByArcSetting.json
501535
*/
502536
/**
503537
* Sample code: List Extensions under ArcSetting resource.
@@ -523,7 +557,7 @@ import java.io.IOException;
523557
/** Samples for Extensions Update. */
524558
public final class ExtensionsUpdateSamples {
525559
/*
526-
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/PatchExtension.json
560+
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/PatchExtension.json
527561
*/
528562
/**
529563
* Sample code: Update Arc Extension.
@@ -559,7 +593,7 @@ import com.azure.core.util.Context;
559593
/** Samples for Operations List. */
560594
public final class OperationsListSamples {
561595
/*
562-
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/ListOperations.json
596+
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/ListOperations.json
563597
*/
564598
/**
565599
* Sample code: Create cluster.

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

Lines changed: 1 addition & 1 deletion
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-09.</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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public AzureStackHciManager authenticate(TokenCredential credential, AzureProfil
215215
.append("-")
216216
.append("com.azure.resourcemanager.azurestackhci")
217217
.append("/")
218-
.append("1.0.0-beta.3");
218+
.append("1.0.0-beta.1");
219219
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
220220
userAgentBuilder
221221
.append(" (")

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

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import com.azure.resourcemanager.azurestackhci.fluent.models.ClusterIdentityResponseInner;
1515
import com.azure.resourcemanager.azurestackhci.fluent.models.ClusterInner;
1616
import com.azure.resourcemanager.azurestackhci.models.ClusterPatch;
17+
import com.azure.resourcemanager.azurestackhci.models.SoftwareAssuranceChangeRequest;
1718
import com.azure.resourcemanager.azurestackhci.models.UploadCertificateRequest;
1819

1920
/** An instance of this class provides access to all the operations defined in ClustersClient. */
@@ -326,4 +327,72 @@ SyncPoller<PollResult<ClusterIdentityResponseInner>, ClusterIdentityResponseInne
326327
*/
327328
@ServiceMethod(returns = ReturnType.SINGLE)
328329
ClusterIdentityResponseInner createIdentity(String resourceGroupName, String clusterName, Context context);
330+
331+
/**
332+
* Extends Software Assurance Benefit to a cluster.
333+
*
334+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
335+
* @param clusterName The name of the cluster.
336+
* @param softwareAssuranceChangeRequest Software Assurance Change Request Payload.
337+
* @throws IllegalArgumentException thrown if parameters fail the validation.
338+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
339+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
340+
* @return the {@link SyncPoller} for polling of cluster details.
341+
*/
342+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
343+
SyncPoller<PollResult<ClusterInner>, ClusterInner> beginExtendSoftwareAssuranceBenefit(
344+
String resourceGroupName, String clusterName, SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest);
345+
346+
/**
347+
* Extends Software Assurance Benefit to a cluster.
348+
*
349+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
350+
* @param clusterName The name of the cluster.
351+
* @param softwareAssuranceChangeRequest Software Assurance Change Request Payload.
352+
* @param context The context to associate with this operation.
353+
* @throws IllegalArgumentException thrown if parameters fail the validation.
354+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
355+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
356+
* @return the {@link SyncPoller} for polling of cluster details.
357+
*/
358+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
359+
SyncPoller<PollResult<ClusterInner>, ClusterInner> beginExtendSoftwareAssuranceBenefit(
360+
String resourceGroupName,
361+
String clusterName,
362+
SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest,
363+
Context context);
364+
365+
/**
366+
* Extends Software Assurance Benefit to a cluster.
367+
*
368+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
369+
* @param clusterName The name of the cluster.
370+
* @param softwareAssuranceChangeRequest Software Assurance Change Request Payload.
371+
* @throws IllegalArgumentException thrown if parameters fail the validation.
372+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
373+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
374+
* @return cluster details.
375+
*/
376+
@ServiceMethod(returns = ReturnType.SINGLE)
377+
ClusterInner extendSoftwareAssuranceBenefit(
378+
String resourceGroupName, String clusterName, SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest);
379+
380+
/**
381+
* Extends Software Assurance Benefit to a cluster.
382+
*
383+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
384+
* @param clusterName The name of the cluster.
385+
* @param softwareAssuranceChangeRequest Software Assurance Change Request Payload.
386+
* @param context The context to associate with this operation.
387+
* @throws IllegalArgumentException thrown if parameters fail the validation.
388+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
389+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
390+
* @return cluster details.
391+
*/
392+
@ServiceMethod(returns = ReturnType.SINGLE)
393+
ClusterInner extendSoftwareAssuranceBenefit(
394+
String resourceGroupName,
395+
String clusterName,
396+
SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest,
397+
Context context);
329398
}

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ public final class ArcSettingProperties {
2121
private ProvisioningState provisioningState;
2222

2323
/*
24-
* The resource group that hosts the Arc agents, ie. Hybrid Compute Machine
25-
* resources.
24+
* The resource group that hosts the Arc agents, ie. Hybrid Compute Machine resources.
2625
*/
2726
@JsonProperty(value = "arcInstanceResourceGroup")
2827
private String arcInstanceResourceGroup;

0 commit comments

Comments
 (0)