44## ArcSettings
55
66- [ Create] ( #arcsettings_create )
7+ - [ CreateIdentity] ( #arcsettings_createidentity )
78- [ Delete] ( #arcsettings_delete )
9+ - [ GeneratePassword] ( #arcsettings_generatepassword )
810- [ Get] ( #arcsettings_get )
911- [ ListByCluster] ( #arcsettings_listbycluster )
12+ - [ Update] ( #arcsettings_update )
1013
1114## Clusters
1215
1316- [ Create] ( #clusters_create )
17+ - [ CreateIdentity] ( #clusters_createidentity )
1418- [ Delete] ( #clusters_delete )
1519- [ GetByResourceGroup] ( #clusters_getbyresourcegroup )
1620- [ List] ( #clusters_list )
1721- [ ListByResourceGroup] ( #clusters_listbyresourcegroup )
1822- [ Update] ( #clusters_update )
23+ - [ UploadCertificate] ( #clusters_uploadcertificate )
1924
2025## Extensions
2126
3439/* * Samples for ArcSettings Create. */
3540public final class ArcSettingsCreateSamples {
3641 /*
37- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01 -01/examples/PutArcSetting.json
42+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05 -01/examples/PutArcSetting.json
3843 */
3944 /**
4045 * Sample code: Create ArcSetting.
@@ -47,6 +52,27 @@ public final class ArcSettingsCreateSamples {
4752}
4853```
4954
55+ ### ArcSettings_CreateIdentity
56+
57+ ``` java
58+ import com.azure.core.util.Context ;
59+
60+ /* * Samples for ArcSettings CreateIdentity. */
61+ public final class ArcSettingsCreateIdentitySamples {
62+ /*
63+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/CreateArcIdentity.json
64+ */
65+ /**
66+ * Sample code: Create Arc Identity.
67+ *
68+ * @param manager Entry point to AzureStackHciManager.
69+ */
70+ public static void createArcIdentity (com.azure.resourcemanager.azurestackhci. AzureStackHciManager manager ) {
71+ manager. arcSettings(). createIdentity(" test-rg" , " myCluster" , " default" , Context . NONE );
72+ }
73+ }
74+ ```
75+
5076### ArcSettings_Delete
5177
5278``` java
@@ -55,7 +81,7 @@ import com.azure.core.util.Context;
5581/* * Samples for ArcSettings Delete. */
5682public final class ArcSettingsDeleteSamples {
5783 /*
58- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01 -01/examples/DeleteArcSetting.json
84+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05 -01/examples/DeleteArcSetting.json
5985 */
6086 /**
6187 * Sample code: Delete ArcSetting.
@@ -68,6 +94,27 @@ public final class ArcSettingsDeleteSamples {
6894}
6995```
7096
97+ ### ArcSettings_GeneratePassword
98+
99+ ``` java
100+ import com.azure.core.util.Context ;
101+
102+ /* * Samples for ArcSettings GeneratePassword. */
103+ public final class ArcSettingsGeneratePasswordSamples {
104+ /*
105+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/GeneratePassword.json
106+ */
107+ /**
108+ * Sample code: Generate Password.
109+ *
110+ * @param manager Entry point to AzureStackHciManager.
111+ */
112+ public static void generatePassword (com.azure.resourcemanager.azurestackhci. AzureStackHciManager manager ) {
113+ manager. arcSettings(). generatePasswordWithResponse(" test-rg" , " myCluster" , " default" , Context . NONE );
114+ }
115+ }
116+ ```
117+
71118### ArcSettings_Get
72119
73120``` java
@@ -76,7 +123,7 @@ import com.azure.core.util.Context;
76123/* * Samples for ArcSettings Get. */
77124public final class ArcSettingsGetSamples {
78125 /*
79- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01 -01/examples/GetArcSetting.json
126+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05 -01/examples/GetArcSetting.json
80127 */
81128 /**
82129 * Sample code: Get ArcSetting.
@@ -97,7 +144,7 @@ import com.azure.core.util.Context;
97144/* * Samples for ArcSettings ListByCluster. */
98145public final class ArcSettingsListByClusterSamples {
99146 /*
100- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01 -01/examples/ListArcSettingsByCluster.json
147+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05 -01/examples/ListArcSettingsByCluster.json
101148 */
102149 /**
103150 * Sample code: List ArcSetting resources by HCI Cluster.
@@ -111,13 +158,47 @@ public final class ArcSettingsListByClusterSamples {
111158}
112159```
113160
161+ ### ArcSettings_Update
162+
163+ ``` java
164+ import com.azure.core.management.serializer.SerializerFactory ;
165+ import com.azure.core.util.Context ;
166+ import com.azure.core.util.serializer.SerializerEncoding ;
167+ import com.azure.resourcemanager.azurestackhci.models.ArcSetting ;
168+ import java.io.IOException ;
169+
170+ /* * Samples for ArcSettings Update. */
171+ public final class ArcSettingsUpdateSamples {
172+ /*
173+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/PatchArcSetting.json
174+ */
175+ /**
176+ * Sample code: Patch ArcSetting.
177+ *
178+ * @param manager Entry point to AzureStackHciManager.
179+ */
180+ public static void patchArcSetting (com.azure.resourcemanager.azurestackhci. AzureStackHciManager manager )
181+ throws IOException {
182+ ArcSetting resource =
183+ manager. arcSettings(). getWithResponse(" test-rg" , " myCluster" , " default" , Context . NONE ). getValue();
184+ resource
185+ .update()
186+ .withConnectivityProperties(
187+ SerializerFactory
188+ .createDefaultManagementSerializerAdapter()
189+ .deserialize(" {\" enabled\" :true}" , Object . class, SerializerEncoding . JSON ))
190+ .apply();
191+ }
192+ }
193+ ```
194+
114195### Clusters_Create
115196
116197``` java
117198/* * Samples for Clusters Create. */
118199public final class ClustersCreateSamples {
119200 /*
120- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01 -01/examples/CreateCluster.json
201+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05 -01/examples/CreateCluster.json
121202 */
122203 /**
123204 * Sample code: Create cluster.
@@ -138,6 +219,27 @@ public final class ClustersCreateSamples {
138219}
139220```
140221
222+ ### Clusters_CreateIdentity
223+
224+ ``` java
225+ import com.azure.core.util.Context ;
226+
227+ /* * Samples for Clusters CreateIdentity. */
228+ public final class ClustersCreateIdentitySamples {
229+ /*
230+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/CreateClusterIdentity.json
231+ */
232+ /**
233+ * Sample code: Create cluster Identity.
234+ *
235+ * @param manager Entry point to AzureStackHciManager.
236+ */
237+ public static void createClusterIdentity (com.azure.resourcemanager.azurestackhci. AzureStackHciManager manager ) {
238+ manager. clusters(). createIdentity(" test-rg" , " myCluster" , Context . NONE );
239+ }
240+ }
241+ ```
242+
141243### Clusters_Delete
142244
143245``` java
@@ -146,15 +248,15 @@ import com.azure.core.util.Context;
146248/* * Samples for Clusters Delete. */
147249public final class ClustersDeleteSamples {
148250 /*
149- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01 -01/examples/DeleteCluster.json
251+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05 -01/examples/DeleteCluster.json
150252 */
151253 /**
152254 * Sample code: Delete cluster.
153255 *
154256 * @param manager Entry point to AzureStackHciManager.
155257 */
156258 public static void deleteCluster (com.azure.resourcemanager.azurestackhci. AzureStackHciManager manager ) {
157- manager. clusters(). deleteWithResponse (" test-rg" , " myCluster" , Context . NONE );
259+ manager. clusters(). delete (" test-rg" , " myCluster" , Context . NONE );
158260 }
159261}
160262```
@@ -167,7 +269,7 @@ import com.azure.core.util.Context;
167269/* * Samples for Clusters GetByResourceGroup. */
168270public final class ClustersGetByResourceGroupSamples {
169271 /*
170- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01 -01/examples/GetCluster.json
272+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05 -01/examples/GetCluster.json
171273 */
172274 /**
173275 * Sample code: Get cluster.
@@ -188,7 +290,7 @@ import com.azure.core.util.Context;
188290/* * Samples for Clusters List. */
189291public final class ClustersListSamples {
190292 /*
191- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01 -01/examples/ListClustersBySubscription.json
293+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05 -01/examples/ListClustersBySubscription.json
192294 */
193295 /**
194296 * Sample code: List clusters in a given subscription.
@@ -210,7 +312,7 @@ import com.azure.core.util.Context;
210312/* * Samples for Clusters ListByResourceGroup. */
211313public final class ClustersListByResourceGroupSamples {
212314 /*
213- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01 -01/examples/ListClustersByResourceGroup.json
315+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05 -01/examples/ListClustersByResourceGroup.json
214316 */
215317 /**
216318 * Sample code: List clusters in a given resource group.
@@ -238,7 +340,7 @@ import java.util.Map;
238340/* * Samples for Clusters Update. */
239341public final class ClustersUpdateSamples {
240342 /*
241- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01 -01/examples/UpdateCluster.json
343+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05 -01/examples/UpdateCluster.json
242344 */
243345 /**
244346 * Sample code: Update cluster.
@@ -272,6 +374,38 @@ public final class ClustersUpdateSamples {
272374}
273375```
274376
377+ ### Clusters_UploadCertificate
378+
379+ ``` java
380+ import com.azure.core.util.Context ;
381+ import com.azure.resourcemanager.azurestackhci.models.RawCertificateData ;
382+ import com.azure.resourcemanager.azurestackhci.models.UploadCertificateRequest ;
383+ import java.util.Arrays ;
384+
385+ /* * Samples for Clusters UploadCertificate. */
386+ public final class ClustersUploadCertificateSamples {
387+ /*
388+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/UploadCertificate.json
389+ */
390+ /**
391+ * Sample code: Upload certificate.
392+ *
393+ * @param manager Entry point to AzureStackHciManager.
394+ */
395+ public static void uploadCertificate (com.azure.resourcemanager.azurestackhci. AzureStackHciManager manager ) {
396+ manager
397+ .clusters()
398+ .uploadCertificate(
399+ " test-rg" ,
400+ " myCluster" ,
401+ new UploadCertificateRequest ()
402+ .withProperties(
403+ new RawCertificateData (). withCertificates(Arrays . asList(" base64cert" , " base64cert" ))),
404+ Context . NONE );
405+ }
406+ }
407+ ```
408+
275409### Extensions_Create
276410
277411``` java
@@ -282,7 +416,7 @@ import java.io.IOException;
282416/* * Samples for Extensions Create. */
283417public final class ExtensionsCreateSamples {
284418 /*
285- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01 -01/examples/PutExtension.json
419+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05 -01/examples/PutExtension.json
286420 */
287421 /**
288422 * Sample code: Create Arc Extension.
@@ -319,7 +453,7 @@ import com.azure.core.util.Context;
319453/* * Samples for Extensions Delete. */
320454public final class ExtensionsDeleteSamples {
321455 /*
322- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01 -01/examples/DeleteExtension.json
456+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05 -01/examples/DeleteExtension.json
323457 */
324458 /**
325459 * Sample code: Delete Arc Extension.
@@ -340,7 +474,7 @@ import com.azure.core.util.Context;
340474/* * Samples for Extensions Get. */
341475public final class ExtensionsGetSamples {
342476 /*
343- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01 -01/examples/GetExtension.json
477+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05 -01/examples/GetExtension.json
344478 */
345479 /**
346480 * Sample code: Get ArcSettings Extension.
@@ -363,7 +497,7 @@ import com.azure.core.util.Context;
363497/* * Samples for Extensions ListByArcSetting. */
364498public final class ExtensionsListByArcSettingSamples {
365499 /*
366- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01 -01/examples/ListExtensionsByArcSetting.json
500+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05 -01/examples/ListExtensionsByArcSetting.json
367501 */
368502 /**
369503 * Sample code: List Extensions under ArcSetting resource.
@@ -389,7 +523,7 @@ import java.io.IOException;
389523/* * Samples for Extensions Update. */
390524public final class ExtensionsUpdateSamples {
391525 /*
392- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01 -01/examples/PatchExtension.json
526+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05 -01/examples/PatchExtension.json
393527 */
394528 /**
395529 * Sample code: Update Arc Extension.
@@ -425,15 +559,14 @@ import com.azure.core.util.Context;
425559/* * Samples for Operations List. */
426560public final class OperationsListSamples {
427561 /*
428- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01 -01/examples/ListOperations.json
562+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05 -01/examples/ListOperations.json
429563 */
430564 /**
431- * Sample code: List operations available with the Microsoft.AzureStackHCI provider .
565+ * Sample code: Create cluster .
432566 *
433567 * @param manager Entry point to AzureStackHciManager.
434568 */
435- public static void listOperationsAvailableWithTheMicrosoftAzureStackHCIProvider (
436- com.azure.resourcemanager.azurestackhci. AzureStackHciManager manager ) {
569+ public static void createCluster (com.azure.resourcemanager.azurestackhci. AzureStackHciManager manager ) {
437570 manager. operations(). listWithResponse(Context . NONE );
438571 }
439572}
0 commit comments