diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/CHANGELOG.md b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/CHANGELOG.md
index cbb537d7d6e6..2728ce54d056 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/CHANGELOG.md
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.0.0-beta.6 (Unreleased)
+## 1.0.0-beta.1 (2025-01-27)
+
+- 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-2024-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/README.md b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/README.md
index 1084ff088247..ebb9f434bb45 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/README.md
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/README.md
@@ -1,8 +1,8 @@
-# Azure Resource Manager AzureStackHci client library for Java
+# Azure Resource Manager azurestackhci client library for Java
-Azure Resource Manager AzureStackHci client library for Java.
+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-2024-04. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for azurestackhci Management SDK. Azure Stack HCI management service. Package tag package-2024-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-azurestackhci
- 1.0.0-beta.5
+ 1.0.0-beta.6
```
[//]: # ({x-version-update-end})
@@ -56,7 +56,7 @@ AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
TokenCredential credential = new DefaultAzureCredentialBuilder()
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
.build();
-AzureStackHciManager manager = AzureStackHciManager
+AzurestackhciManager manager = AzurestackhciManager
.authenticate(credential, profile);
```
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/SAMPLE.md b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/SAMPLE.md
index 7554e89c4185..a70179615642 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/SAMPLE.md
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/SAMPLE.md
@@ -15,7 +15,6 @@
## Clusters
-- [ConfigureRemoteSupport](#clusters_configureremotesupport)
- [Create](#clusters_create)
- [CreateIdentity](#clusters_createidentity)
- [Delete](#clusters_delete)
@@ -23,7 +22,6 @@
- [GetByResourceGroup](#clusters_getbyresourcegroup)
- [List](#clusters_list)
- [ListByResourceGroup](#clusters_listbyresourcegroup)
-- [TriggerLogCollection](#clusters_triggerlogcollection)
- [Update](#clusters_update)
- [UploadCertificate](#clusters_uploadcertificate)
@@ -51,6 +49,57 @@
- [Update](#extensions_update)
- [Upgrade](#extensions_upgrade)
+## GalleryImagesOperation
+
+- [CreateOrUpdate](#galleryimagesoperation_createorupdate)
+- [Delete](#galleryimagesoperation_delete)
+- [GetByResourceGroup](#galleryimagesoperation_getbyresourcegroup)
+- [List](#galleryimagesoperation_list)
+- [ListByResourceGroup](#galleryimagesoperation_listbyresourcegroup)
+- [Update](#galleryimagesoperation_update)
+
+## GuestAgent
+
+- [Create](#guestagent_create)
+- [Delete](#guestagent_delete)
+- [Get](#guestagent_get)
+
+## GuestAgentsOperation
+
+- [List](#guestagentsoperation_list)
+
+## HybridIdentityMetadata
+
+- [Get](#hybrididentitymetadata_get)
+- [List](#hybrididentitymetadata_list)
+
+## LogicalNetworksOperation
+
+- [CreateOrUpdate](#logicalnetworksoperation_createorupdate)
+- [Delete](#logicalnetworksoperation_delete)
+- [GetByResourceGroup](#logicalnetworksoperation_getbyresourcegroup)
+- [List](#logicalnetworksoperation_list)
+- [ListByResourceGroup](#logicalnetworksoperation_listbyresourcegroup)
+- [Update](#logicalnetworksoperation_update)
+
+## MarketplaceGalleryImagesOperation
+
+- [CreateOrUpdate](#marketplacegalleryimagesoperation_createorupdate)
+- [Delete](#marketplacegalleryimagesoperation_delete)
+- [GetByResourceGroup](#marketplacegalleryimagesoperation_getbyresourcegroup)
+- [List](#marketplacegalleryimagesoperation_list)
+- [ListByResourceGroup](#marketplacegalleryimagesoperation_listbyresourcegroup)
+- [Update](#marketplacegalleryimagesoperation_update)
+
+## NetworkInterfacesOperation
+
+- [CreateOrUpdate](#networkinterfacesoperation_createorupdate)
+- [Delete](#networkinterfacesoperation_delete)
+- [GetByResourceGroup](#networkinterfacesoperation_getbyresourcegroup)
+- [List](#networkinterfacesoperation_list)
+- [ListByResourceGroup](#networkinterfacesoperation_listbyresourcegroup)
+- [Update](#networkinterfacesoperation_update)
+
## Offers
- [Get](#offers_get)
@@ -78,6 +127,15 @@
- [Get](#skus_get)
- [ListByOffer](#skus_listbyoffer)
+## StorageContainersOperation
+
+- [CreateOrUpdate](#storagecontainersoperation_createorupdate)
+- [Delete](#storagecontainersoperation_delete)
+- [GetByResourceGroup](#storagecontainersoperation_getbyresourcegroup)
+- [List](#storagecontainersoperation_list)
+- [ListByResourceGroup](#storagecontainersoperation_listbyresourcegroup)
+- [Update](#storagecontainersoperation_update)
+
## UpdateRuns
- [Delete](#updateruns_delete)
@@ -99,6 +157,26 @@
- [List](#updates_list)
- [Post](#updates_post)
- [Put](#updates_put)
+
+## VirtualHardDisksOperation
+
+- [CreateOrUpdate](#virtualharddisksoperation_createorupdate)
+- [Delete](#virtualharddisksoperation_delete)
+- [GetByResourceGroup](#virtualharddisksoperation_getbyresourcegroup)
+- [List](#virtualharddisksoperation_list)
+- [ListByResourceGroup](#virtualharddisksoperation_listbyresourcegroup)
+- [Update](#virtualharddisksoperation_update)
+
+## VirtualMachineInstances
+
+- [CreateOrUpdate](#virtualmachineinstances_createorupdate)
+- [Delete](#virtualmachineinstances_delete)
+- [Get](#virtualmachineinstances_get)
+- [List](#virtualmachineinstances_list)
+- [Restart](#virtualmachineinstances_restart)
+- [Start](#virtualmachineinstances_start)
+- [Stop](#virtualmachineinstances_stop)
+- [Update](#virtualmachineinstances_update)
### ArcSettings_ConsentAndInstallDefaultExtensions
```java
@@ -108,16 +186,16 @@
public final class ArcSettingsConsentAndInstallDefaultExtensionsSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
* ConsentAndInstallDefaultExtensions.json
*/
/**
* Sample code: Consent And Install Default Extensions.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
public static void
- consentAndInstallDefaultExtensions(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ consentAndInstallDefaultExtensions(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.arcSettings()
.consentAndInstallDefaultExtensionsWithResponse("test-rg", "myCluster", "default",
com.azure.core.util.Context.NONE);
@@ -134,15 +212,15 @@ public final class ArcSettingsConsentAndInstallDefaultExtensionsSamples {
public final class ArcSettingsCreateSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * PutArcSetting.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/PutArcSetting.
+ * json
*/
/**
* Sample code: Create ArcSetting.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void createArcSetting(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ public static void createArcSetting(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.arcSettings().define("default").withExistingCluster("test-rg", "myCluster").create();
}
}
@@ -157,15 +235,15 @@ public final class ArcSettingsCreateSamples {
public final class ArcSettingsCreateIdentitySamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * CreateArcIdentity.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/CreateArcIdentity
+ * .json
*/
/**
* Sample code: Create Arc Identity.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void createArcIdentity(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ public static void createArcIdentity(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.arcSettings().createIdentity("test-rg", "myCluster", "default", com.azure.core.util.Context.NONE);
}
}
@@ -180,15 +258,15 @@ public final class ArcSettingsCreateIdentitySamples {
public final class ArcSettingsDeleteSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * DeleteArcSetting.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/DeleteArcSetting.
+ * json
*/
/**
* Sample code: Delete ArcSetting.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void deleteArcSetting(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ public static void deleteArcSetting(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.arcSettings().delete("test-rg", "myCluster", "default", com.azure.core.util.Context.NONE);
}
}
@@ -203,15 +281,15 @@ public final class ArcSettingsDeleteSamples {
public final class ArcSettingsGeneratePasswordSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * GeneratePassword.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/GeneratePassword.
+ * json
*/
/**
* Sample code: Generate Password.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void generatePassword(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ public static void generatePassword(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.arcSettings()
.generatePasswordWithResponse("test-rg", "myCluster", "default", com.azure.core.util.Context.NONE);
}
@@ -227,15 +305,15 @@ public final class ArcSettingsGeneratePasswordSamples {
public final class ArcSettingsGetSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * GetArcSetting.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/GetArcSetting.
+ * json
*/
/**
* Sample code: Get ArcSetting.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void getArcSetting(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ public static void getArcSetting(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.arcSettings().getWithResponse("test-rg", "myCluster", "default", com.azure.core.util.Context.NONE);
}
}
@@ -250,15 +328,15 @@ public final class ArcSettingsGetSamples {
public final class ArcSettingsInitializeDisableProcessSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
* InitializeDisableProcess.json
*/
/**
* Sample code: Trigger ARC Disable.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void triggerARCDisable(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ public static void triggerARCDisable(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.arcSettings()
.initializeDisableProcess("test-rg", "myCluster", "default", com.azure.core.util.Context.NONE);
}
@@ -274,16 +352,16 @@ public final class ArcSettingsInitializeDisableProcessSamples {
public final class ArcSettingsListByClusterSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
* ListArcSettingsByCluster.json
*/
/**
* Sample code: List ArcSetting resources by HCI Cluster.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
public static void
- listArcSettingResourcesByHCICluster(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ listArcSettingResourcesByHCICluster(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.arcSettings().listByCluster("test-rg", "myCluster", com.azure.core.util.Context.NONE);
}
}
@@ -303,15 +381,15 @@ import java.io.IOException;
public final class ArcSettingsUpdateSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * PatchArcSetting.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/PatchArcSetting.
+ * json
*/
/**
* Sample code: Patch ArcSetting.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void patchArcSetting(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager)
+ public static void patchArcSetting(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager)
throws IOException {
ArcSetting resource = manager.arcSettings()
.getWithResponse("test-rg", "myCluster", "default", com.azure.core.util.Context.NONE)
@@ -325,39 +403,6 @@ public final class ArcSettingsUpdateSamples {
}
```
-### Clusters_ConfigureRemoteSupport
-
-```java
-import com.azure.resourcemanager.azurestackhci.models.RemoteSupportRequest;
-import com.azure.resourcemanager.azurestackhci.models.RemoteSupportRequestProperties;
-import com.azure.resourcemanager.azurestackhci.models.RemoteSupportType;
-import java.time.OffsetDateTime;
-
-/**
- * Samples for Clusters ConfigureRemoteSupport.
- */
-public final class ClustersConfigureRemoteSupportSamples {
- /*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ConfigureRemoteSupport.json
- */
- /**
- * Sample code: Configure Remote Support.
- *
- * @param manager Entry point to AzureStackHciManager.
- */
- public static void configureRemoteSupport(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.clusters()
- .configureRemoteSupport("test-rg", "mycluster",
- new RemoteSupportRequest().withProperties(new RemoteSupportRequestProperties()
- .withExpirationTimestamp(OffsetDateTime.parse("2020-01-01T17:18:19.1234567Z"))
- .withRemoteSupportType(RemoteSupportType.ENABLE)),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
### Clusters_Create
```java
@@ -369,15 +414,15 @@ import com.azure.resourcemanager.azurestackhci.models.ManagedServiceIdentityType
public final class ClustersCreateSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * CreateCluster.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/CreateCluster.
+ * json
*/
/**
* Sample code: Create cluster.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void createCluster(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ public static void createCluster(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.clusters()
.define("myCluster")
.withRegion("East US")
@@ -400,15 +445,15 @@ public final class ClustersCreateSamples {
public final class ClustersCreateIdentitySamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
* CreateClusterIdentity.json
*/
/**
* Sample code: Create cluster Identity.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void createClusterIdentity(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ public static void createClusterIdentity(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.clusters().createIdentity("test-rg", "myCluster", com.azure.core.util.Context.NONE);
}
}
@@ -423,15 +468,15 @@ public final class ClustersCreateIdentitySamples {
public final class ClustersDeleteSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * DeleteCluster.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/DeleteCluster.
+ * json
*/
/**
* Sample code: Delete cluster.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void deleteCluster(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ public static void deleteCluster(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.clusters().delete("test-rg", "myCluster", com.azure.core.util.Context.NONE);
}
}
@@ -450,15 +495,15 @@ import com.azure.resourcemanager.azurestackhci.models.SoftwareAssuranceIntent;
public final class ClustersExtendSoftwareAssuranceBenefitSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
* ExtendSoftwareAssuranceBenefit.json
*/
/**
* Sample code: Create cluster Identity.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void createClusterIdentity(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ public static void createClusterIdentity(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.clusters()
.extendSoftwareAssuranceBenefit("test-rg", "myCluster",
new SoftwareAssuranceChangeRequest().withProperties(new SoftwareAssuranceChangeRequestProperties()
@@ -477,15 +522,14 @@ public final class ClustersExtendSoftwareAssuranceBenefitSamples {
public final class ClustersGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * GetCluster.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/GetCluster.json
*/
/**
* Sample code: Get cluster.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void getCluster(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ public static void getCluster(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.clusters().getByResourceGroupWithResponse("test-rg", "myCluster", com.azure.core.util.Context.NONE);
}
}
@@ -500,16 +544,16 @@ public final class ClustersGetByResourceGroupSamples {
public final class ClustersListSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
* ListClustersBySubscription.json
*/
/**
* Sample code: List clusters in a given subscription.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
public static void
- listClustersInAGivenSubscription(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ listClustersInAGivenSubscription(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.clusters().list(com.azure.core.util.Context.NONE);
}
}
@@ -524,53 +568,21 @@ public final class ClustersListSamples {
public final class ClustersListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
* ListClustersByResourceGroup.json
*/
/**
* Sample code: List clusters in a given resource group.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
public static void
- listClustersInAGivenResourceGroup(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ listClustersInAGivenResourceGroup(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.clusters().listByResourceGroup("test-rg", com.azure.core.util.Context.NONE);
}
}
```
-### Clusters_TriggerLogCollection
-
-```java
-import com.azure.resourcemanager.azurestackhci.models.LogCollectionRequest;
-import com.azure.resourcemanager.azurestackhci.models.LogCollectionRequestProperties;
-import java.time.OffsetDateTime;
-
-/**
- * Samples for Clusters TriggerLogCollection.
- */
-public final class ClustersTriggerLogCollectionSamples {
- /*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * TriggerLogCollection.json
- */
- /**
- * Sample code: Trigger Log Collection.
- *
- * @param manager Entry point to AzureStackHciManager.
- */
- public static void triggerLogCollection(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.clusters()
- .triggerLogCollection("test-rg", "mycluster",
- new LogCollectionRequest().withProperties(new LogCollectionRequestProperties()
- .withFromDate(OffsetDateTime.parse("2020-01-01T17:18:19.1234567Z"))
- .withToDate(OffsetDateTime.parse("2021-01-01T17:18:19.1234567Z"))),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
### Clusters_Update
```java
@@ -588,15 +600,15 @@ import java.util.Map;
public final class ClustersUpdateSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * UpdateCluster.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/UpdateCluster.
+ * json
*/
/**
* Sample code: Update cluster.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void updateCluster(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ public static void updateCluster(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
Cluster resource = manager.clusters()
.getByResourceGroupWithResponse("test-rg", "myCluster", com.azure.core.util.Context.NONE)
.getValue();
@@ -637,15 +649,15 @@ import java.util.Arrays;
public final class ClustersUploadCertificateSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * UploadCertificate.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/UploadCertificate
+ * .json
*/
/**
* Sample code: Upload certificate.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void uploadCertificate(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ public static void uploadCertificate(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.clusters()
.uploadCertificate("test-rg", "myCluster",
new UploadCertificateRequest().withProperties(
@@ -658,35 +670,24 @@ public final class ClustersUploadCertificateSamples {
### DeploymentSettings_CreateOrUpdate
```java
+import com.azure.resourcemanager.azurestackhci.models.AdapterPropertyOverrides;
import com.azure.resourcemanager.azurestackhci.models.DeploymentCluster;
import com.azure.resourcemanager.azurestackhci.models.DeploymentConfiguration;
import com.azure.resourcemanager.azurestackhci.models.DeploymentData;
import com.azure.resourcemanager.azurestackhci.models.DeploymentMode;
import com.azure.resourcemanager.azurestackhci.models.DeploymentSecuritySettings;
-import com.azure.resourcemanager.azurestackhci.models.DeploymentSettingAdapterPropertyOverrides;
-import com.azure.resourcemanager.azurestackhci.models.DeploymentSettingHostNetwork;
-import com.azure.resourcemanager.azurestackhci.models.DeploymentSettingIntents;
-import com.azure.resourcemanager.azurestackhci.models.DeploymentSettingStorageAdapterIpInfo;
-import com.azure.resourcemanager.azurestackhci.models.DeploymentSettingStorageNetworks;
-import com.azure.resourcemanager.azurestackhci.models.DeploymentSettingVirtualSwitchConfigurationOverrides;
-import com.azure.resourcemanager.azurestackhci.models.EceDeploymentSecrets;
-import com.azure.resourcemanager.azurestackhci.models.EceSecrets;
+import com.azure.resourcemanager.azurestackhci.models.HostNetwork;
import com.azure.resourcemanager.azurestackhci.models.InfrastructureNetwork;
+import com.azure.resourcemanager.azurestackhci.models.Intents;
import com.azure.resourcemanager.azurestackhci.models.IpPools;
-import com.azure.resourcemanager.azurestackhci.models.NetworkController;
import com.azure.resourcemanager.azurestackhci.models.Observability;
-import com.azure.resourcemanager.azurestackhci.models.OperationType;
import com.azure.resourcemanager.azurestackhci.models.OptionalServices;
import com.azure.resourcemanager.azurestackhci.models.PhysicalNodes;
import com.azure.resourcemanager.azurestackhci.models.QosPolicyOverrides;
-import com.azure.resourcemanager.azurestackhci.models.SbeCredentials;
-import com.azure.resourcemanager.azurestackhci.models.SbeDeploymentInfo;
-import com.azure.resourcemanager.azurestackhci.models.SbePartnerInfo;
-import com.azure.resourcemanager.azurestackhci.models.SbePartnerProperties;
import com.azure.resourcemanager.azurestackhci.models.ScaleUnits;
-import com.azure.resourcemanager.azurestackhci.models.SdnIntegration;
import com.azure.resourcemanager.azurestackhci.models.Storage;
-import java.time.OffsetDateTime;
+import com.azure.resourcemanager.azurestackhci.models.StorageNetworks;
+import com.azure.resourcemanager.azurestackhci.models.VirtualSwitchConfigurationOverrides;
import java.util.Arrays;
/**
@@ -695,15 +696,15 @@ import java.util.Arrays;
public final class DeploymentSettingsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
* PutDeploymentSettings.json
*/
/**
* Sample code: Create Deployment Settings.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void createDeploymentSettings(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ public static void createDeploymentSettings(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.deploymentSettings()
.define("default")
.withExistingCluster("test-rg", "myCluster")
@@ -711,97 +712,60 @@ public final class DeploymentSettingsCreateOrUpdateSamples {
"/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1",
"/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2"))
.withDeploymentMode(DeploymentMode.DEPLOY)
- .withOperationType(OperationType.CLUSTER_PROVISIONING)
- .withDeploymentConfiguration(
- new DeploymentConfiguration().withVersion("string")
- .withScaleUnits(Arrays.asList(new ScaleUnits()
- .withDeploymentData(new DeploymentData()
- .withSecuritySettings(new DeploymentSecuritySettings().withHvciProtection(true)
- .withDrtmProtection(true)
- .withDriftControlEnforced(true)
- .withCredentialGuardEnforced(false)
- .withSmbSigningEnforced(true)
- .withSmbClusterEncryption(false)
- .withSideChannelMitigationEnforced(true)
- .withBitlockerBootVolume(true)
- .withBitlockerDataVolumes(true)
- .withWdacEnforced(true))
- .withObservability(new Observability().withStreamingDataClient(true)
- .withEuLocation(false)
- .withEpisodicDataUpload(true))
- .withCluster(new DeploymentCluster().withName("testHCICluster")
- .withWitnessType("Cloud")
- .withWitnessPath("Cloud")
- .withCloudAccountName("myasestoragacct")
- .withAzureServiceEndpoint("core.windows.net"))
- .withStorage(new Storage().withConfigurationMode("Express"))
- .withNamingPrefix("ms169")
- .withDomainFqdn("ASZ1PLab8.nttest.microsoft.com")
- .withInfrastructureNetwork(Arrays.asList(new InfrastructureNetwork()
- .withSubnetMask("255.255.248.0")
- .withGateway("255.255.248.0")
- .withIpPools(Arrays.asList(
- new IpPools().withStartingAddress("10.57.48.60").withEndingAddress("10.57.48.66")))
- .withDnsServers(Arrays.asList("10.57.50.90"))))
- .withPhysicalNodes(Arrays.asList(
- new PhysicalNodes().withName("ms169host").withIpv4Address("10.57.51.224"),
- new PhysicalNodes().withName("ms154host").withIpv4Address("10.57.53.236")))
- .withHostNetwork(new DeploymentSettingHostNetwork()
- .withIntents(Arrays.asList(new DeploymentSettingIntents().withName("Compute_Management")
- .withTrafficType(Arrays.asList("Compute", "Management"))
- .withAdapter(Arrays.asList("Port2"))
- .withOverrideVirtualSwitchConfiguration(false)
- .withVirtualSwitchConfigurationOverrides(
- new DeploymentSettingVirtualSwitchConfigurationOverrides().withEnableIov("True")
- .withLoadBalancingAlgorithm("HyperVPort"))
- .withOverrideQosPolicy(false)
- .withQosPolicyOverrides(
- new QosPolicyOverrides().withPriorityValue8021ActionCluster("7")
- .withPriorityValue8021ActionSmb("3")
- .withBandwidthPercentageSmb("50"))
- .withOverrideAdapterProperty(false)
- .withAdapterPropertyOverrides(
- new DeploymentSettingAdapterPropertyOverrides().withJumboPacket("1514")
- .withNetworkDirect("Enabled")
- .withNetworkDirectTechnology("iWARP"))))
- .withStorageNetworks(
- Arrays.asList(new DeploymentSettingStorageNetworks().withName("Storage1Network")
- .withNetworkAdapterName("Port3")
- .withVlanId("5")
- .withStorageAdapterIpInfo(Arrays.asList(
- new DeploymentSettingStorageAdapterIpInfo().withPhysicalNode("string")
- .withIpv4Address("10.57.48.60")
- .withSubnetMask("255.255.248.0")))))
- .withStorageConnectivitySwitchless(true)
- .withEnableStorageAutoIp(false))
- .withSdnIntegration(new SdnIntegration().withNetworkController(
- new NetworkController().withMacAddressPoolStart("00-0D-3A-1B-C7-21")
- .withMacAddressPoolStop("00-0D-3A-1B-C7-29")
- .withNetworkVirtualizationEnabled(true)))
- .withAdouPath("OU=ms169,DC=ASZ1PLab8,DC=nttest,DC=microsoft,DC=com")
- .withSecretsLocation("fakeTokenPlaceholder")
- .withSecrets(Arrays.asList(
- new EceDeploymentSecrets().withSecretName("fakeTokenPlaceholder")
- .withEceSecretName(EceSecrets.fromString("BMCAdminUserCred"))
- .withSecretLocation("fakeTokenPlaceholder"),
- new EceDeploymentSecrets().withSecretName("fakeTokenPlaceholder")
- .withEceSecretName(EceSecrets.AZURE_STACK_LCMUSER_CREDENTIAL)
- .withSecretLocation("fakeTokenPlaceholder")))
- .withOptionalServices(new OptionalServices().withCustomLocation("customLocationName")))
- .withSbePartnerInfo(new SbePartnerInfo()
- .withSbeDeploymentInfo(new SbeDeploymentInfo().withVersion("4.0.2309.13")
- .withFamily("Gen5")
- .withPublisher("Contoso")
- .withSbeManifestSource("default")
- .withSbeManifestCreationDate(OffsetDateTime.parse("2023-07-25T02:40:33Z")))
- .withPartnerProperties(
- Arrays.asList(new SbePartnerProperties().withName("EnableBMCIpV6").withValue("false"),
- new SbePartnerProperties().withName("PhoneHomePort").withValue("1653"),
- new SbePartnerProperties().withName("BMCSecurityState").withValue("HighSecurity")))
- .withCredentialList(
- Arrays.asList(new SbeCredentials().withSecretName("fakeTokenPlaceholder")
- .withEceSecretName("fakeTokenPlaceholder")
- .withSecretLocation("fakeTokenPlaceholder")))))))
+ .withDeploymentConfiguration(new DeploymentConfiguration().withVersion("string")
+ .withScaleUnits(Arrays.asList(new ScaleUnits().withDeploymentData(new DeploymentData()
+ .withSecuritySettings(new DeploymentSecuritySettings().withHvciProtection(true)
+ .withDrtmProtection(true)
+ .withDriftControlEnforced(true)
+ .withCredentialGuardEnforced(false)
+ .withSmbSigningEnforced(true)
+ .withSmbClusterEncryption(false)
+ .withSideChannelMitigationEnforced(true)
+ .withBitlockerBootVolume(true)
+ .withBitlockerDataVolumes(true)
+ .withWdacEnforced(true))
+ .withObservability(new Observability().withStreamingDataClient(true)
+ .withEuLocation(false)
+ .withEpisodicDataUpload(true))
+ .withCluster(new DeploymentCluster().withName("testHCICluster")
+ .withWitnessType("Cloud")
+ .withWitnessPath("Cloud")
+ .withCloudAccountName("myasestoragacct")
+ .withAzureServiceEndpoint("core.windows.net"))
+ .withStorage(new Storage().withConfigurationMode("Express"))
+ .withNamingPrefix("ms169")
+ .withDomainFqdn("ASZ1PLab8.nttest.microsoft.com")
+ .withInfrastructureNetwork(Arrays.asList(new InfrastructureNetwork().withSubnetMask("255.255.248.0")
+ .withGateway("255.255.248.0")
+ .withIpPools(Arrays
+ .asList(new IpPools().withStartingAddress("10.57.48.60").withEndingAddress("10.57.48.66")))
+ .withDnsServers(Arrays.asList("10.57.50.90"))))
+ .withPhysicalNodes(
+ Arrays.asList(new PhysicalNodes().withName("ms169host").withIpv4Address("10.57.51.224"),
+ new PhysicalNodes().withName("ms154host").withIpv4Address("10.57.53.236")))
+ .withHostNetwork(new HostNetwork()
+ .withIntents(Arrays.asList(new Intents().withName("Compute_Management")
+ .withTrafficType(Arrays.asList("Compute", "Management"))
+ .withAdapter(Arrays.asList("Port2"))
+ .withOverrideVirtualSwitchConfiguration(false)
+ .withVirtualSwitchConfigurationOverrides(
+ new VirtualSwitchConfigurationOverrides().withEnableIov("True")
+ .withLoadBalancingAlgorithm("HyperVPort"))
+ .withOverrideQosPolicy(false)
+ .withQosPolicyOverrides(new QosPolicyOverrides().withPriorityValue8021ActionCluster("7")
+ .withPriorityValue8021ActionSmb("3")
+ .withBandwidthPercentageSmb("50"))
+ .withOverrideAdapterProperty(false)
+ .withAdapterPropertyOverrides(new AdapterPropertyOverrides().withJumboPacket("1514")
+ .withNetworkDirect("Enabled")
+ .withNetworkDirectTechnology("iWARP"))))
+ .withStorageNetworks(Arrays.asList(new StorageNetworks().withName("Storage1Network")
+ .withNetworkAdapterName("Port3")
+ .withVlanId("5")))
+ .withStorageConnectivitySwitchless(true))
+ .withAdouPath("OU=ms169,DC=ASZ1PLab8,DC=nttest,DC=microsoft,DC=com")
+ .withSecretsLocation("fakeTokenPlaceholder")
+ .withOptionalServices(new OptionalServices().withCustomLocation("customLocationName"))))))
.create();
}
}
@@ -816,15 +780,15 @@ public final class DeploymentSettingsCreateOrUpdateSamples {
public final class DeploymentSettingsDeleteSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
* DeleteDeploymentSettings.json
*/
/**
* Sample code: Delete Deployment Settings.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void deleteDeploymentSettings(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ public static void deleteDeploymentSettings(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.deploymentSettings().delete("test-rg", "myCluster", "default", com.azure.core.util.Context.NONE);
}
}
@@ -839,15 +803,15 @@ public final class DeploymentSettingsDeleteSamples {
public final class DeploymentSettingsGetSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
* GetDeploymentSettings.json
*/
/**
* Sample code: Get Deployment Settings.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void getDeploymentSettings(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ public static void getDeploymentSettings(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.deploymentSettings()
.getWithResponse("test-rg", "myCluster", "default", com.azure.core.util.Context.NONE);
}
@@ -863,15 +827,15 @@ public final class DeploymentSettingsGetSamples {
public final class DeploymentSettingsListByClustersSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
* ListDeploymentSettingsByCluster.json
*/
/**
* Sample code: List Deployment Settings.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void listDeploymentSettings(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ public static void listDeploymentSettings(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.deploymentSettings().listByClusters("test-rg", "myCluster", com.azure.core.util.Context.NONE);
}
}
@@ -881,8 +845,6 @@ public final class DeploymentSettingsListByClustersSamples {
```java
import com.azure.resourcemanager.azurestackhci.models.DeviceConfiguration;
-import com.azure.resourcemanager.azurestackhci.models.HciEdgeDevice;
-import com.azure.resourcemanager.azurestackhci.models.HciEdgeDeviceProperties;
import com.azure.resourcemanager.azurestackhci.models.NicDetail;
import java.util.Arrays;
@@ -892,30 +854,30 @@ import java.util.Arrays;
public final class EdgeDevicesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * CreateHciEdgeDevice.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/PutEdgeDevices.
+ * json
*/
/**
- * Sample code: Create HCI Edge Device.
+ * Sample code: Create Edge Device.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void createHCIEdgeDevice(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ public static void createEdgeDevice(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.edgeDevices()
- .createOrUpdate(
- "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1",
- "default",
- new HciEdgeDevice().withProperties(new HciEdgeDeviceProperties().withDeviceConfiguration(
- new DeviceConfiguration().withNicDetails(Arrays.asList(new NicDetail().withAdapterName("ethernet")
- .withInterfaceDescription("NDIS 6.70 ")
- .withComponentId("VMBUS{f8615163-df3e-46c5-913f-f2d2f965ed0g} ")
- .withDriverVersion("10.0.20348.1547 ")
- .withIp4Address("10.10.10.10")
- .withSubnetMask("255.255.255.0")
- .withDefaultGateway("10.10.10.1")
- .withDnsServers(Arrays.asList("100.10.10.1"))
- .withDefaultIsolationId("0"))).withDeviceMetadata(""))),
- com.azure.core.util.Context.NONE);
+ .define("default")
+ .withExistingResourceUri(
+ "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1")
+ .withDeviceConfiguration(
+ new DeviceConfiguration().withNicDetails(Arrays.asList(new NicDetail().withAdapterName("ethernet")
+ .withInterfaceDescription("NDIS 6.70 ")
+ .withComponentId("VMBUS{f8615163-df3e-46c5-913f-f2d2f965ed0g} ")
+ .withDriverVersion("10.0.20348.1547 ")
+ .withIp4Address("10.10.10.10")
+ .withSubnetMask("255.255.255.0")
+ .withDefaultGateway("10.10.10.1")
+ .withDnsServers(Arrays.asList("100.10.10.1"))
+ .withDefaultIsolationId("0"))).withDeviceMetadata(""))
+ .create();
}
}
```
@@ -929,15 +891,15 @@ public final class EdgeDevicesCreateOrUpdateSamples {
public final class EdgeDevicesDeleteSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * DeleteEdgeDevices.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/DeleteEdgeDevices
+ * .json
*/
/**
* Sample code: Delete Edge Devices.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void deleteEdgeDevices(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ public static void deleteEdgeDevices(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.edgeDevices()
.delete(
"subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1",
@@ -955,15 +917,15 @@ public final class EdgeDevicesDeleteSamples {
public final class EdgeDevicesGetSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * GetEdgeDevices.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/GetEdgeDevices.
+ * json
*/
/**
* Sample code: Get Edge Device.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void getEdgeDevice(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ public static void getEdgeDevice(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.edgeDevices()
.getWithResponse(
"subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1",
@@ -981,15 +943,15 @@ public final class EdgeDevicesGetSamples {
public final class EdgeDevicesListSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ListEdgeDevices.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/ListEdgeDevices.
+ * json
*/
/**
* Sample code: List Edge Devices.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void listEdgeDevices(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ public static void listEdgeDevices(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.edgeDevices()
.list(
"subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1",
@@ -1010,15 +972,15 @@ import java.util.Arrays;
public final class EdgeDevicesValidateSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
* ValidateEdgeDevices.json
*/
/**
* Sample code: Validate Edge Devices.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void validateEdgeDevices(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ public static void validateEdgeDevices(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.edgeDevices()
.validate(
"subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1",
@@ -1045,15 +1007,14 @@ import java.io.IOException;
public final class ExtensionsCreateSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * PutExtension.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/PutExtension.json
*/
/**
* Sample code: Create Arc Extension.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void createArcExtension(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager)
+ public static void createArcExtension(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager)
throws IOException {
manager.extensions()
.define("MicrosoftMonitoringAgent")
@@ -1080,15 +1041,15 @@ public final class ExtensionsCreateSamples {
public final class ExtensionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * DeleteExtension.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/DeleteExtension.
+ * json
*/
/**
* Sample code: Delete Arc Extension.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void deleteArcExtension(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ public static void deleteArcExtension(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.extensions()
.delete("test-rg", "myCluster", "default", "MicrosoftMonitoringAgent", com.azure.core.util.Context.NONE);
}
@@ -1104,15 +1065,14 @@ public final class ExtensionsDeleteSamples {
public final class ExtensionsGetSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * GetExtension.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/GetExtension.json
*/
/**
* Sample code: Get ArcSettings Extension.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void getArcSettingsExtension(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ public static void getArcSettingsExtension(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.extensions()
.getWithResponse("test-rg", "myCluster", "default", "MicrosoftMonitoringAgent",
com.azure.core.util.Context.NONE);
@@ -1129,16 +1089,16 @@ public final class ExtensionsGetSamples {
public final class ExtensionsListByArcSettingSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
* ListExtensionsByArcSetting.json
*/
/**
* Sample code: List Extensions under ArcSetting resource.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
public static void
- listExtensionsUnderArcSettingResource(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ listExtensionsUnderArcSettingResource(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.extensions().listByArcSetting("test-rg", "myCluster", "default", com.azure.core.util.Context.NONE);
}
}
@@ -1159,15 +1119,15 @@ import java.io.IOException;
public final class ExtensionsUpdateSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * PatchExtension.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/PatchExtension.
+ * json
*/
/**
* Sample code: Update Arc Extension.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void updateArcExtension(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager)
+ public static void updateArcExtension(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager)
throws IOException {
Extension resource = manager.extensions()
.getWithResponse("test-rg", "myCluster", "default", "MicrosoftMonitoringAgent",
@@ -1196,15 +1156,15 @@ import com.azure.resourcemanager.azurestackhci.models.ExtensionUpgradeParameters
public final class ExtensionsUpgradeSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
* Extensions_Upgrade.json
*/
/**
* Sample code: Upgrade Machine Extensions.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void upgradeMachineExtensions(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ public static void upgradeMachineExtensions(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
manager.extensions()
.upgrade("test-rg", "myCluster", "default", "MicrosoftMonitoringAgent",
new ExtensionUpgradeParameters().withTargetVersion("1.0.18062.0"), com.azure.core.util.Context.NONE);
@@ -1212,669 +1172,2249 @@ public final class ExtensionsUpgradeSamples {
}
```
-### Offers_Get
+### GalleryImagesOperation_CreateOrUpdate
```java
+import com.azure.resourcemanager.azurestackhci.models.ExtendedLocation;
+import com.azure.resourcemanager.azurestackhci.models.ExtendedLocationTypes;
+import com.azure.resourcemanager.azurestackhci.models.OperatingSystemTypes;
+
/**
- * Samples for Offers Get.
+ * Samples for GalleryImagesOperation CreateOrUpdate.
*/
-public final class OffersGetSamples {
+public final class GalleryImagesOperationCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/GetOffer
- * .json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/PutGalleryImage.
+ * json
*/
/**
- * Sample code: Get Offer.
+ * Sample code: PutGalleryImage.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void getOffer(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.offers()
- .getWithResponse("test-rg", "myCluster", "publisher1", "offer1", null, com.azure.core.util.Context.NONE);
+ public static void putGalleryImage(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.galleryImagesOperations()
+ .define("test-gallery-image")
+ .withRegion("West US2")
+ .withExistingResourceGroup("test-rg")
+ .withExtendedLocation(new ExtendedLocation().withName(
+ "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location")
+ .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
+ .withContainerId(
+ "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container")
+ .withImagePath("C:\\test.vhdx")
+ .withOsType(OperatingSystemTypes.LINUX)
+ .create();
}
}
```
-### Offers_ListByCluster
+### GalleryImagesOperation_Delete
```java
/**
- * Samples for Offers ListByCluster.
+ * Samples for GalleryImagesOperation Delete.
*/
-public final class OffersListByClusterSamples {
+public final class GalleryImagesOperationDeleteSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ListOffersByCluster.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * DeleteGalleryImage.json
*/
/**
- * Sample code: List Offer resources by HCI Cluster.
+ * Sample code: DeleteGalleryImage.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void
- listOfferResourcesByHCICluster(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.offers().listByCluster("test-rg", "myCluster", null, com.azure.core.util.Context.NONE);
+ public static void deleteGalleryImage(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.galleryImagesOperations().delete("test-rg", "test-gallery-image", com.azure.core.util.Context.NONE);
}
}
```
-### Offers_ListByPublisher
+### GalleryImagesOperation_GetByResourceGroup
```java
/**
- * Samples for Offers ListByPublisher.
+ * Samples for GalleryImagesOperation GetByResourceGroup.
*/
-public final class OffersListByPublisherSamples {
+public final class GalleryImagesOperationGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ListOffersByPublisher.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/GetGalleryImage.
+ * json
*/
/**
- * Sample code: List Offer resources by publisher for the HCI Cluster.
+ * Sample code: GetGalleryImage.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void listOfferResourcesByPublisherForTheHCICluster(
- com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.offers().listByPublisher("test-rg", "myCluster", "publisher1", null, com.azure.core.util.Context.NONE);
+ public static void getGalleryImage(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.galleryImagesOperations()
+ .getByResourceGroupWithResponse("test-rg", "test-gallery-image", com.azure.core.util.Context.NONE);
}
}
```
-### Operations_List
+### GalleryImagesOperation_List
```java
/**
- * Samples for Operations List.
+ * Samples for GalleryImagesOperation List.
*/
-public final class OperationsListSamples {
+public final class GalleryImagesOperationListSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/operations/stable/2024-04-01/examples/
- * ListOperations.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * ListGalleryImageBySubscription.json
*/
/**
- * Sample code: Create cluster.
+ * Sample code: ListGalleryImageBySubscription.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void createCluster(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.operations().listWithResponse(com.azure.core.util.Context.NONE);
+ public static void
+ listGalleryImageBySubscription(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.galleryImagesOperations().list(com.azure.core.util.Context.NONE);
}
}
```
-### Publishers_Get
+### GalleryImagesOperation_ListByResourceGroup
```java
/**
- * Samples for Publishers Get.
+ * Samples for GalleryImagesOperation ListByResourceGroup.
*/
-public final class PublishersGetSamples {
+public final class GalleryImagesOperationListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * GetPublisher.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * ListGalleryImageByResourceGroup.json
*/
/**
- * Sample code: Get Publisher.
+ * Sample code: ListGalleryImageByResourceGroup.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void getPublisher(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.publishers().getWithResponse("test-rg", "myCluster", "publisher1", com.azure.core.util.Context.NONE);
+ public static void
+ listGalleryImageByResourceGroup(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.galleryImagesOperations().listByResourceGroup("test-rg", com.azure.core.util.Context.NONE);
}
}
```
-### Publishers_ListByCluster
+### GalleryImagesOperation_Update
```java
+import com.azure.resourcemanager.azurestackhci.models.GalleryImages;
+import java.util.HashMap;
+import java.util.Map;
+
/**
- * Samples for Publishers ListByCluster.
+ * Samples for GalleryImagesOperation Update.
*/
-public final class PublishersListByClusterSamples {
+public final class GalleryImagesOperationUpdateSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ListPublishersByCluster.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * UpdateGalleryImage.json
*/
/**
- * Sample code: List Publisher resources by HCI Cluster.
+ * Sample code: UpdateGalleryImage.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void
- listPublisherResourcesByHCICluster(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.publishers().listByCluster("test-rg", "myCluster", com.azure.core.util.Context.NONE);
+ public static void updateGalleryImage(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ GalleryImages resource = manager.galleryImagesOperations()
+ .getByResourceGroupWithResponse("test-rg", "test-gallery-image", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("additionalProperties", "sample")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
}
}
```
-### SecuritySettings_CreateOrUpdate
+### GuestAgent_Create
```java
-import com.azure.resourcemanager.azurestackhci.models.ComplianceAssignmentType;
+import com.azure.resourcemanager.azurestackhci.fluent.models.GuestAgentInner;
+import com.azure.resourcemanager.azurestackhci.models.GuestCredential;
+import com.azure.resourcemanager.azurestackhci.models.ProvisioningAction;
/**
- * Samples for SecuritySettings CreateOrUpdate.
+ * Samples for GuestAgent Create.
*/
-public final class SecuritySettingsCreateOrUpdateSamples {
+public final class GuestAgentCreateSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * PutSecuritySettings.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/CreateGuestAgent.
+ * json
*/
/**
- * Sample code: Create Security Settings.
+ * Sample code: CreateGuestAgent.
*
- * @param manager Entry point to AzureStackHciManager.
- */
- public static void createSecuritySettings(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.securitySettings()
- .define("default")
- .withExistingCluster("test-rg", "myCluster")
- .withSecuredCoreComplianceAssignment(ComplianceAssignmentType.AUDIT)
- .withWdacComplianceAssignment(ComplianceAssignmentType.APPLY_AND_AUTO_CORRECT)
- .withSmbEncryptionForIntraClusterTrafficComplianceAssignment(ComplianceAssignmentType.AUDIT)
- .create();
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void createGuestAgent(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.guestAgents()
+ .create(
+ "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM",
+ new GuestAgentInner()
+ .withCredentials(
+ new GuestCredential().withUsername("tempuser").withPassword("fakeTokenPlaceholder"))
+ .withProvisioningAction(ProvisioningAction.INSTALL),
+ com.azure.core.util.Context.NONE);
}
}
```
-### SecuritySettings_Delete
+### GuestAgent_Delete
```java
/**
- * Samples for SecuritySettings Delete.
+ * Samples for GuestAgent Delete.
*/
-public final class SecuritySettingsDeleteSamples {
+public final class GuestAgentDeleteSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * DeleteSecuritySettings.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/DeleteGuestAgent.
+ * json
*/
/**
- * Sample code: Delete Security Settings.
+ * Sample code: DeleteGuestAgent.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void deleteSecuritySettings(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.securitySettings().delete("test-rg", "myCluster", "default", com.azure.core.util.Context.NONE);
+ public static void deleteGuestAgent(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.guestAgents()
+ .delete(
+ "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM",
+ com.azure.core.util.Context.NONE);
}
}
```
-### SecuritySettings_Get
+### GuestAgent_Get
```java
/**
- * Samples for SecuritySettings Get.
+ * Samples for GuestAgent Get.
*/
-public final class SecuritySettingsGetSamples {
+public final class GuestAgentGetSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * GetSecuritySettings.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/GetGuestAgent.
+ * json
*/
/**
- * Sample code: Get Security Settings.
+ * Sample code: GetGuestAgent.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void getSecuritySettings(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.securitySettings().getWithResponse("test-rg", "myCluster", "default", com.azure.core.util.Context.NONE);
+ public static void getGuestAgent(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.guestAgents()
+ .getWithResponse(
+ "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM",
+ com.azure.core.util.Context.NONE);
}
}
```
-### SecuritySettings_ListByClusters
+### GuestAgentsOperation_List
```java
/**
- * Samples for SecuritySettings ListByClusters.
+ * Samples for GuestAgentsOperation List.
*/
-public final class SecuritySettingsListByClustersSamples {
+public final class GuestAgentsOperationListSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ListSecuritySettingsByCluster.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/GuestAgent_List.
+ * json
*/
/**
- * Sample code: List Security Settings.
+ * Sample code: GuestAgentListByVirtualMachineInstances.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void listSecuritySettings(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.securitySettings().listByClusters("test-rg", "myCluster", com.azure.core.util.Context.NONE);
+ public static void
+ guestAgentListByVirtualMachineInstances(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.guestAgentsOperations()
+ .list(
+ "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM",
+ com.azure.core.util.Context.NONE);
}
}
```
-### Skus_Get
+### HybridIdentityMetadata_Get
```java
/**
- * Samples for Skus Get.
+ * Samples for HybridIdentityMetadata Get.
*/
-public final class SkusGetSamples {
+public final class HybridIdentityMetadataGetSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/GetSku.
- * json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * GetHybridIdentityMetadata.json
*/
/**
- * Sample code: Get Sku.
+ * Sample code: GetHybridIdentityMetadata.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void getSku(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.skus()
- .getWithResponse("test-rg", "myCluster", "publisher1", "offer1", "sku1", null,
+ public static void getHybridIdentityMetadata(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.hybridIdentityMetadatas()
+ .getWithResponse(
+ "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM",
com.azure.core.util.Context.NONE);
}
}
```
-### Skus_ListByOffer
+### HybridIdentityMetadata_List
```java
/**
- * Samples for Skus ListByOffer.
+ * Samples for HybridIdentityMetadata List.
*/
-public final class SkusListByOfferSamples {
+public final class HybridIdentityMetadataListSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ListSkusByOffer.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * HybridIdentityMetadata_List.json
*/
/**
- * Sample code: List SKU resources by offer for the HCI Cluster.
+ * Sample code: HybridIdentityMetadataListByVirtualMachineInstances.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void
- listSKUResourcesByOfferForTheHCICluster(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.skus()
- .listByOffer("test-rg", "myCluster", "publisher1", "offer1", null, com.azure.core.util.Context.NONE);
+ public static void hybridIdentityMetadataListByVirtualMachineInstances(
+ com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.hybridIdentityMetadatas()
+ .list(
+ "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM",
+ com.azure.core.util.Context.NONE);
}
}
```
-### UpdateRuns_Delete
+### LogicalNetworksOperation_CreateOrUpdate
```java
+import com.azure.resourcemanager.azurestackhci.models.ExtendedLocation;
+import com.azure.resourcemanager.azurestackhci.models.ExtendedLocationTypes;
+
/**
- * Samples for UpdateRuns Delete.
+ * Samples for LogicalNetworksOperation CreateOrUpdate.
*/
-public final class UpdateRunsDeleteSamples {
+public final class LogicalNetworksOperationCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * DeleteUpdateRuns.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/PutLogicalNetwork
+ * .json
*/
/**
- * Sample code: Delete an Update.
+ * Sample code: PutLogicalNetwork.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void deleteAnUpdate(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.updateRuns()
- .delete("testrg", "testcluster", "Microsoft4.2203.2.32", "23b779ba-0d52-4a80-8571-45ca74664ec3",
- com.azure.core.util.Context.NONE);
+ public static void putLogicalNetwork(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.logicalNetworksOperations()
+ .define("test-lnet")
+ .withRegion("West US2")
+ .withExistingResourceGroup("test-rg")
+ .withExtendedLocation(new ExtendedLocation().withName(
+ "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location")
+ .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
+ .create();
}
}
```
-### UpdateRuns_Get
+### LogicalNetworksOperation_Delete
```java
/**
- * Samples for UpdateRuns Get.
+ * Samples for LogicalNetworksOperation Delete.
*/
-public final class UpdateRunsGetSamples {
+public final class LogicalNetworksOperationDeleteSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * GetUpdateRuns.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * DeleteLogicalNetwork.json
*/
/**
- * Sample code: Get Update runs under cluster resource.
+ * Sample code: DeleteLogicalNetwork.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void
- getUpdateRunsUnderClusterResource(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.updateRuns()
- .getWithResponse("testrg", "testcluster", "Microsoft4.2203.2.32", "23b779ba-0d52-4a80-8571-45ca74664ec3",
- com.azure.core.util.Context.NONE);
+ public static void deleteLogicalNetwork(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.logicalNetworksOperations().delete("test-rg", "test-lnet", com.azure.core.util.Context.NONE);
}
}
```
-### UpdateRuns_List
+### LogicalNetworksOperation_GetByResourceGroup
```java
/**
- * Samples for UpdateRuns List.
+ * Samples for LogicalNetworksOperation GetByResourceGroup.
*/
-public final class UpdateRunsListSamples {
+public final class LogicalNetworksOperationGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ListUpdateRuns.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/GetLogicalNetwork
+ * .json
*/
/**
- * Sample code: List Update runs under cluster resource.
+ * Sample code: GetLogicalNetwork.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void
- listUpdateRunsUnderClusterResource(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.updateRuns().list("testrg", "testcluster", "Microsoft4.2203.2.32", com.azure.core.util.Context.NONE);
+ public static void getLogicalNetwork(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.logicalNetworksOperations()
+ .getByResourceGroupWithResponse("test-rg", "test-lnet", com.azure.core.util.Context.NONE);
}
}
```
-### UpdateRuns_Put
+### LogicalNetworksOperation_List
```java
-import com.azure.resourcemanager.azurestackhci.fluent.models.Step;
-import com.azure.resourcemanager.azurestackhci.models.UpdateRun;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-
/**
- * Samples for UpdateRuns Put.
+ * Samples for LogicalNetworksOperation List.
*/
-public final class UpdateRunsPutSamples {
+public final class LogicalNetworksOperationListSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * PutUpdateRuns.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * ListLogicalNetworkBySubscription.json
*/
/**
- * Sample code: Get Update runs under cluster resource.
+ * Sample code: ListLogicalNetworkBySubscription.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
public static void
- getUpdateRunsUnderClusterResource(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- UpdateRun resource = manager.updateRuns()
- .getWithResponse("testrg", "testcluster", "Microsoft4.2203.2.32", "23b779ba-0d52-4a80-8571-45ca74664ec3",
- com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withNamePropertiesName("Unnamed step")
- .withDescription("Update Azure Stack.")
- .withErrorMessage("")
- .withStatus("Success")
- .withStartTimeUtc(OffsetDateTime.parse("2022-04-06T01:36:33.3876751+00:00"))
- .withEndTimeUtc(OffsetDateTime.parse("2022-04-06T13:58:42.969006+00:00"))
- .withLastUpdatedTimeUtc(OffsetDateTime.parse("2022-04-06T13:58:42.969006+00:00"))
- .withSteps(Arrays.asList(new Step().withName("PreUpdate Cloud")
- .withDescription("Prepare for SSU update")
- .withErrorMessage("")
- .withStatus("Success")
- .withStartTimeUtc(OffsetDateTime.parse("2022-04-06T01:36:33.3876751+00:00"))
- .withEndTimeUtc(OffsetDateTime.parse("2022-04-06T01:37:16.8728314+00:00"))
- .withLastUpdatedTimeUtc(OffsetDateTime.parse("2022-04-06T01:37:16.8728314+00:00"))
- .withSteps(Arrays.asList())))
- .apply();
+ listLogicalNetworkBySubscription(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.logicalNetworksOperations().list(com.azure.core.util.Context.NONE);
}
}
```
-### UpdateSummariesOperation_Delete
+### LogicalNetworksOperation_ListByResourceGroup
```java
/**
- * Samples for UpdateSummariesOperation Delete.
+ * Samples for LogicalNetworksOperation ListByResourceGroup.
*/
-public final class UpdateSummariesOperationDeleteSamples {
+public final class LogicalNetworksOperationListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * DeleteUpdateSummaries.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * ListLogicalNetworkByResourceGroup.json
+ */
+ /**
+ * Sample code: ListLogicalNetworkByResourceGroup.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void
+ listLogicalNetworkByResourceGroup(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.logicalNetworksOperations().listByResourceGroup("test-rg", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### LogicalNetworksOperation_Update
+
+```java
+import com.azure.resourcemanager.azurestackhci.models.LogicalNetworks;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for LogicalNetworksOperation Update.
+ */
+public final class LogicalNetworksOperationUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * UpdateLogicalNetwork.json
+ */
+ /**
+ * Sample code: UpdateLogicalNetwork.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void updateLogicalNetwork(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ LogicalNetworks resource = manager.logicalNetworksOperations()
+ .getByResourceGroupWithResponse("test-rg", "test-lnet", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("additionalProperties", "sample")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### MarketplaceGalleryImagesOperation_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.azurestackhci.models.CloudInitDataSource;
+import com.azure.resourcemanager.azurestackhci.models.ExtendedLocation;
+import com.azure.resourcemanager.azurestackhci.models.ExtendedLocationTypes;
+import com.azure.resourcemanager.azurestackhci.models.GalleryImageIdentifier;
+import com.azure.resourcemanager.azurestackhci.models.GalleryImageVersion;
+import com.azure.resourcemanager.azurestackhci.models.HyperVGeneration;
+import com.azure.resourcemanager.azurestackhci.models.OperatingSystemTypes;
+
+/**
+ * Samples for MarketplaceGalleryImagesOperation CreateOrUpdate.
+ */
+public final class MarketplaceGalleryImagesOperationCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * PutMarketplaceGalleryImage.json
+ */
+ /**
+ * Sample code: PutMarketplaceGalleryImage.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void
+ putMarketplaceGalleryImage(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.marketplaceGalleryImagesOperations()
+ .define("test-marketplace-gallery-image")
+ .withRegion("West US2")
+ .withExistingResourceGroup("test-rg")
+ .withExtendedLocation(new ExtendedLocation().withName(
+ "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location")
+ .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
+ .withContainerId(
+ "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container")
+ .withOsType(OperatingSystemTypes.WINDOWS)
+ .withCloudInitDataSource(CloudInitDataSource.AZURE)
+ .withHyperVGeneration(HyperVGeneration.V1)
+ .withIdentifier(new GalleryImageIdentifier().withPublisher("myPublisherName")
+ .withOffer("myOfferName")
+ .withSku("mySkuName"))
+ .withVersion(new GalleryImageVersion().withName("1.0.0"))
+ .create();
+ }
+}
+```
+
+### MarketplaceGalleryImagesOperation_Delete
+
+```java
+/**
+ * Samples for MarketplaceGalleryImagesOperation Delete.
+ */
+public final class MarketplaceGalleryImagesOperationDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * DeleteMarketplaceGalleryImage.json
+ */
+ /**
+ * Sample code: DeleteMarketplaceGalleryImage.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void
+ deleteMarketplaceGalleryImage(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.marketplaceGalleryImagesOperations()
+ .delete("test-rg", "test-marketplace-gallery-image", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### MarketplaceGalleryImagesOperation_GetByResourceGroup
+
+```java
+/**
+ * Samples for MarketplaceGalleryImagesOperation GetByResourceGroup.
+ */
+public final class MarketplaceGalleryImagesOperationGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * GetMarketplaceGalleryImage.json
+ */
+ /**
+ * Sample code: GetMarketplaceGalleryImage.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void
+ getMarketplaceGalleryImage(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.marketplaceGalleryImagesOperations()
+ .getByResourceGroupWithResponse("test-rg", "test-marketplace-gallery-image",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### MarketplaceGalleryImagesOperation_List
+
+```java
+/**
+ * Samples for MarketplaceGalleryImagesOperation List.
+ */
+public final class MarketplaceGalleryImagesOperationListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * ListMarketplaceGalleryImageBySubscription.json
+ */
+ /**
+ * Sample code: ListMarketplaceGalleryImageBySubscription.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void listMarketplaceGalleryImageBySubscription(
+ com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.marketplaceGalleryImagesOperations().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### MarketplaceGalleryImagesOperation_ListByResourceGroup
+
+```java
+/**
+ * Samples for MarketplaceGalleryImagesOperation ListByResourceGroup.
+ */
+public final class MarketplaceGalleryImagesOperationListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * ListMarketplaceGalleryImageByResourceGroup.json
+ */
+ /**
+ * Sample code: ListMarketplaceGalleryImageByResourceGroup.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void listMarketplaceGalleryImageByResourceGroup(
+ com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.marketplaceGalleryImagesOperations().listByResourceGroup("test-rg", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### MarketplaceGalleryImagesOperation_Update
+
+```java
+import com.azure.resourcemanager.azurestackhci.models.MarketplaceGalleryImages;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for MarketplaceGalleryImagesOperation Update.
+ */
+public final class MarketplaceGalleryImagesOperationUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * UpdateMarketplaceGalleryImage.json
+ */
+ /**
+ * Sample code: UpdateMarketplaceGalleryImage.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void
+ updateMarketplaceGalleryImage(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ MarketplaceGalleryImages resource = manager.marketplaceGalleryImagesOperations()
+ .getByResourceGroupWithResponse("test-rg", "test-marketplce-gallery-image",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("additionalProperties", "sample")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### NetworkInterfacesOperation_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.azurestackhci.models.ExtendedLocation;
+import com.azure.resourcemanager.azurestackhci.models.ExtendedLocationTypes;
+import com.azure.resourcemanager.azurestackhci.models.IpConfiguration;
+import com.azure.resourcemanager.azurestackhci.models.IpConfigurationProperties;
+import com.azure.resourcemanager.azurestackhci.models.IpConfigurationPropertiesSubnet;
+import java.util.Arrays;
+
+/**
+ * Samples for NetworkInterfacesOperation CreateOrUpdate.
+ */
+public final class NetworkInterfacesOperationCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * PutNetworkInterface.json
+ */
+ /**
+ * Sample code: PutNetworkInterface.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void putNetworkInterface(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.networkInterfacesOperations()
+ .define("test-nic")
+ .withRegion("West US2")
+ .withExistingResourceGroup("test-rg")
+ .withExtendedLocation(new ExtendedLocation().withName(
+ "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location")
+ .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
+ .withIpConfigurations(Arrays.asList(new IpConfiguration().withName("ipconfig-sample")
+ .withProperties(new IpConfigurationProperties()
+ .withSubnet(new IpConfigurationPropertiesSubnet().withId("test-lnet")))))
+ .create();
+ }
+}
+```
+
+### NetworkInterfacesOperation_Delete
+
+```java
+/**
+ * Samples for NetworkInterfacesOperation Delete.
+ */
+public final class NetworkInterfacesOperationDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * DeleteNetworkInterface.json
+ */
+ /**
+ * Sample code: DeleteNetworkInterface.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void deleteNetworkInterface(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.networkInterfacesOperations().delete("test-rg", "test-nic", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### NetworkInterfacesOperation_GetByResourceGroup
+
+```java
+/**
+ * Samples for NetworkInterfacesOperation GetByResourceGroup.
+ */
+public final class NetworkInterfacesOperationGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * GetNetworkInterface.json
+ */
+ /**
+ * Sample code: GetNetworkInterface.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void getNetworkInterface(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.networkInterfacesOperations()
+ .getByResourceGroupWithResponse("test-rg", "test-nic", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### NetworkInterfacesOperation_List
+
+```java
+/**
+ * Samples for NetworkInterfacesOperation List.
+ */
+public final class NetworkInterfacesOperationListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * ListNetworkInterfaceBySubscription.json
+ */
+ /**
+ * Sample code: ListNetworkInterfaceBySubscription.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void
+ listNetworkInterfaceBySubscription(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.networkInterfacesOperations().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### NetworkInterfacesOperation_ListByResourceGroup
+
+```java
+/**
+ * Samples for NetworkInterfacesOperation ListByResourceGroup.
+ */
+public final class NetworkInterfacesOperationListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * ListNetworkInterfaceByResourceGroup.json
+ */
+ /**
+ * Sample code: ListNetworkInterfaceByResourceGroup.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void
+ listNetworkInterfaceByResourceGroup(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.networkInterfacesOperations().listByResourceGroup("test-rg", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### NetworkInterfacesOperation_Update
+
+```java
+import com.azure.resourcemanager.azurestackhci.models.NetworkInterfaces;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for NetworkInterfacesOperation Update.
+ */
+public final class NetworkInterfacesOperationUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * UpdateNetworkInterface.json
+ */
+ /**
+ * Sample code: UpdateNetworkInterface.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void updateNetworkInterface(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ NetworkInterfaces resource = manager.networkInterfacesOperations()
+ .getByResourceGroupWithResponse("test-rg", "test-nic", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("additionalProperties", "sample")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Offers_Get
+
+```java
+/**
+ * Samples for Offers Get.
+ */
+public final class OffersGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/GetOffer.json
+ */
+ /**
+ * Sample code: Get Offer.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void getOffer(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.offers()
+ .getWithResponse("test-rg", "myCluster", "publisher1", "offer1", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Offers_ListByCluster
+
+```java
+/**
+ * Samples for Offers ListByCluster.
+ */
+public final class OffersListByClusterSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * ListOffersByCluster.json
+ */
+ /**
+ * Sample code: List Offer resources by HCI Cluster.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void
+ listOfferResourcesByHCICluster(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.offers().listByCluster("test-rg", "myCluster", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Offers_ListByPublisher
+
+```java
+/**
+ * Samples for Offers ListByPublisher.
+ */
+public final class OffersListByPublisherSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * ListOffersByPublisher.json
+ */
+ /**
+ * Sample code: List Offer resources by publisher for the HCI Cluster.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void listOfferResourcesByPublisherForTheHCICluster(
+ com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.offers().listByPublisher("test-rg", "myCluster", "publisher1", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Operations_List
+
+```java
+/**
+ * Samples for Operations List.
+ */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/ListOperations.
+ * json
+ */
+ /**
+ * Sample code: Create cluster.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void createCluster(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.operations().listWithResponse(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Publishers_Get
+
+```java
+/**
+ * Samples for Publishers Get.
+ */
+public final class PublishersGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/GetPublisher.json
+ */
+ /**
+ * Sample code: Get Publisher.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void getPublisher(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.publishers().getWithResponse("test-rg", "myCluster", "publisher1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Publishers_ListByCluster
+
+```java
+/**
+ * Samples for Publishers ListByCluster.
+ */
+public final class PublishersListByClusterSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * ListPublishersByCluster.json
+ */
+ /**
+ * Sample code: List Publisher resources by HCI Cluster.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void
+ listPublisherResourcesByHCICluster(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.publishers().listByCluster("test-rg", "myCluster", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### SecuritySettings_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.azurestackhci.models.ComplianceAssignmentType;
+
+/**
+ * Samples for SecuritySettings CreateOrUpdate.
+ */
+public final class SecuritySettingsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * PutSecuritySettings.json
+ */
+ /**
+ * Sample code: Create Security Settings.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void createSecuritySettings(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.securitySettings()
+ .define("default")
+ .withExistingCluster("test-rg", "myCluster")
+ .withSecuredCoreComplianceAssignment(ComplianceAssignmentType.AUDIT)
+ .create();
+ }
+}
+```
+
+### SecuritySettings_Delete
+
+```java
+/**
+ * Samples for SecuritySettings Delete.
+ */
+public final class SecuritySettingsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * DeleteSecuritySettings.json
+ */
+ /**
+ * Sample code: Delete Security Settings.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void deleteSecuritySettings(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.securitySettings().delete("test-rg", "myCluster", "default", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### SecuritySettings_Get
+
+```java
+/**
+ * Samples for SecuritySettings Get.
+ */
+public final class SecuritySettingsGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * GetSecuritySettings.json
+ */
+ /**
+ * Sample code: Get Security Settings.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void getSecuritySettings(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.securitySettings().getWithResponse("test-rg", "myCluster", "default", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### SecuritySettings_ListByClusters
+
+```java
+/**
+ * Samples for SecuritySettings ListByClusters.
+ */
+public final class SecuritySettingsListByClustersSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * ListSecuritySettingsByCluster.json
+ */
+ /**
+ * Sample code: List Security Settings.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void listSecuritySettings(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.securitySettings().listByClusters("test-rg", "myCluster", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Skus_Get
+
+```java
+/**
+ * Samples for Skus Get.
+ */
+public final class SkusGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/GetSku.json
+ */
+ /**
+ * Sample code: Get Sku.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void getSku(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.skus()
+ .getWithResponse("test-rg", "myCluster", "publisher1", "offer1", "sku1", null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Skus_ListByOffer
+
+```java
+/**
+ * Samples for Skus ListByOffer.
+ */
+public final class SkusListByOfferSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/ListSkusByOffer.
+ * json
+ */
+ /**
+ * Sample code: List SKU resources by offer for the HCI Cluster.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void
+ listSKUResourcesByOfferForTheHCICluster(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.skus()
+ .listByOffer("test-rg", "myCluster", "publisher1", "offer1", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StorageContainersOperation_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.azurestackhci.models.ExtendedLocation;
+import com.azure.resourcemanager.azurestackhci.models.ExtendedLocationTypes;
+
+/**
+ * Samples for StorageContainersOperation CreateOrUpdate.
+ */
+public final class StorageContainersOperationCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * PutStorageContainer.json
+ */
+ /**
+ * Sample code: PutStorageContainer.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void putStorageContainer(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.storageContainersOperations()
+ .define("Default_Container")
+ .withRegion("West US2")
+ .withExistingResourceGroup("test-rg")
+ .withExtendedLocation(new ExtendedLocation().withName(
+ "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location")
+ .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
+ .withPath("C:\\container_storage")
+ .create();
+ }
+}
+```
+
+### StorageContainersOperation_Delete
+
+```java
+/**
+ * Samples for StorageContainersOperation Delete.
+ */
+public final class StorageContainersOperationDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * DeleteStorageContainer.json
+ */
+ /**
+ * Sample code: DeleteStorageContainer.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void deleteStorageContainer(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.storageContainersOperations().delete("test-rg", "Default_Container", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StorageContainersOperation_GetByResourceGroup
+
+```java
+/**
+ * Samples for StorageContainersOperation GetByResourceGroup.
+ */
+public final class StorageContainersOperationGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * GetStorageContainer.json
+ */
+ /**
+ * Sample code: GetStorageContainer.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void getStorageContainer(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.storageContainersOperations()
+ .getByResourceGroupWithResponse("test-rg", "Default_Container", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StorageContainersOperation_List
+
+```java
+/**
+ * Samples for StorageContainersOperation List.
+ */
+public final class StorageContainersOperationListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * ListStorageContainerBySubscription.json
+ */
+ /**
+ * Sample code: ListStorageContainerBySubscription.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void
+ listStorageContainerBySubscription(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.storageContainersOperations().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StorageContainersOperation_ListByResourceGroup
+
+```java
+/**
+ * Samples for StorageContainersOperation ListByResourceGroup.
+ */
+public final class StorageContainersOperationListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * ListStorageContainerByResourceGroup.json
+ */
+ /**
+ * Sample code: ListStorageContainerByResourceGroup.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void
+ listStorageContainerByResourceGroup(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.storageContainersOperations().listByResourceGroup("test-rg", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### StorageContainersOperation_Update
+
+```java
+import com.azure.resourcemanager.azurestackhci.models.StorageContainers;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for StorageContainersOperation Update.
+ */
+public final class StorageContainersOperationUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * UpdateStorageContainer.json
+ */
+ /**
+ * Sample code: UpdateStorageContainer.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void updateStorageContainer(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ StorageContainers resource = manager.storageContainersOperations()
+ .getByResourceGroupWithResponse("test-rg", "Default_Container", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("additionalProperties", "sample")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### UpdateRuns_Delete
+
+```java
+/**
+ * Samples for UpdateRuns Delete.
+ */
+public final class UpdateRunsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/DeleteUpdateRuns.
+ * json
+ */
+ /**
+ * Sample code: Delete an Update.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void deleteAnUpdate(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.updateRuns()
+ .delete("testrg", "testcluster", "Microsoft4.2203.2.32", "23b779ba-0d52-4a80-8571-45ca74664ec3",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### UpdateRuns_Get
+
+```java
+/**
+ * Samples for UpdateRuns Get.
+ */
+public final class UpdateRunsGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/GetUpdateRuns.
+ * json
+ */
+ /**
+ * Sample code: Get Update runs under cluster resource.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void
+ getUpdateRunsUnderClusterResource(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.updateRuns()
+ .getWithResponse("testrg", "testcluster", "Microsoft4.2203.2.32", "23b779ba-0d52-4a80-8571-45ca74664ec3",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### UpdateRuns_List
+
+```java
+/**
+ * Samples for UpdateRuns List.
+ */
+public final class UpdateRunsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/ListUpdateRuns.
+ * json
+ */
+ /**
+ * Sample code: List Update runs under cluster resource.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void
+ listUpdateRunsUnderClusterResource(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.updateRuns().list("testrg", "testcluster", "Microsoft4.2203.2.32", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### UpdateRuns_Put
+
+```java
+import com.azure.resourcemanager.azurestackhci.fluent.models.Step;
+import com.azure.resourcemanager.azurestackhci.models.UpdateRun;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+
+/**
+ * Samples for UpdateRuns Put.
+ */
+public final class UpdateRunsPutSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/PutUpdateRuns.
+ * json
+ */
+ /**
+ * Sample code: Get Update runs under cluster resource.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void
+ getUpdateRunsUnderClusterResource(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ UpdateRun resource = manager.updateRuns()
+ .getWithResponse("testrg", "testcluster", "Microsoft4.2203.2.32", "23b779ba-0d52-4a80-8571-45ca74664ec3",
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withNamePropertiesName("Unnamed step")
+ .withDescription("Update Azure Stack.")
+ .withErrorMessage("")
+ .withStatus("Success")
+ .withStartTimeUtc(OffsetDateTime.parse("2022-04-06T01:36:33.3876751+00:00"))
+ .withEndTimeUtc(OffsetDateTime.parse("2022-04-06T13:58:42.969006+00:00"))
+ .withLastUpdatedTimeUtc(OffsetDateTime.parse("2022-04-06T13:58:42.969006+00:00"))
+ .withSteps(Arrays.asList(new Step().withName("PreUpdate Cloud")
+ .withDescription("Prepare for SSU update")
+ .withErrorMessage("")
+ .withStatus("Success")
+ .withStartTimeUtc(OffsetDateTime.parse("2022-04-06T01:36:33.3876751+00:00"))
+ .withEndTimeUtc(OffsetDateTime.parse("2022-04-06T01:37:16.8728314+00:00"))
+ .withLastUpdatedTimeUtc(OffsetDateTime.parse("2022-04-06T01:37:16.8728314+00:00"))
+ .withSteps(Arrays.asList())))
+ .apply();
+ }
+}
+```
+
+### UpdateSummariesOperation_Delete
+
+```java
+/**
+ * Samples for UpdateSummariesOperation Delete.
+ */
+public final class UpdateSummariesOperationDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * DeleteUpdateSummaries.json
+ */
+ /**
+ * Sample code: Delete an Update.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void deleteAnUpdate(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.updateSummariesOperations().delete("testrg", "testcluster", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### UpdateSummariesOperation_Get
+
+```java
+/**
+ * Samples for UpdateSummariesOperation Get.
+ */
+public final class UpdateSummariesOperationGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * GetUpdateSummaries.json
+ */
+ /**
+ * Sample code: Get Update summaries under cluster resource.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void
+ getUpdateSummariesUnderClusterResource(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.updateSummariesOperations().getWithResponse("testrg", "testcluster", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### UpdateSummariesOperation_List
+
+```java
+/**
+ * Samples for UpdateSummariesOperation List.
+ */
+public final class UpdateSummariesOperationListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * ListUpdateSummaries.json
+ */
+ /**
+ * Sample code: Get Update summaries under cluster resource.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void
+ getUpdateSummariesUnderClusterResource(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.updateSummariesOperations().list("testrg", "testcluster", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### UpdateSummariesOperation_Put
+
+```java
+import com.azure.resourcemanager.azurestackhci.fluent.models.UpdateSummariesInner;
+import com.azure.resourcemanager.azurestackhci.models.UpdateSummariesPropertiesState;
+import java.time.OffsetDateTime;
+
+/**
+ * Samples for UpdateSummariesOperation Put.
+ */
+public final class UpdateSummariesOperationPutSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * PutUpdateSummaries.json
+ */
+ /**
+ * Sample code: Put Update summaries under cluster resource.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void
+ putUpdateSummariesUnderClusterResource(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.updateSummariesOperations()
+ .putWithResponse("testrg", "testcluster",
+ new UpdateSummariesInner().withOemFamily("DellEMC")
+ .withHardwareModel("PowerEdge R730xd")
+ .withCurrentVersion("4.2203.2.32")
+ .withLastUpdated(OffsetDateTime.parse("2022-04-06T14:08:18.254Z"))
+ .withLastChecked(OffsetDateTime.parse("2022-04-07T18:04:07Z"))
+ .withState(UpdateSummariesPropertiesState.APPLIED_SUCCESSFULLY),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Updates_Delete
+
+```java
+/**
+ * Samples for Updates Delete.
+ */
+public final class UpdatesDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/DeleteUpdates.
+ * json
*/
/**
* Sample code: Delete an Update.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void deleteAnUpdate(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.updates().delete("testrg", "testcluster", "Microsoft4.2203.2.32", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Updates_Get
+
+```java
+/**
+ * Samples for Updates Get.
+ */
+public final class UpdatesGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/GetUpdates.json
+ */
+ /**
+ * Sample code: Get a specific update.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void getASpecificUpdate(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.updates()
+ .getWithResponse("testrg", "testcluster", "Microsoft4.2203.2.32", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Updates_List
+
+```java
+/**
+ * Samples for Updates List.
+ */
+public final class UpdatesListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/ListUpdates.json
+ */
+ /**
+ * Sample code: List available updates.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void listAvailableUpdates(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.updates().list("testrg", "testcluster", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Updates_Post
+
+```java
+/**
+ * Samples for Updates Post.
+ */
+public final class UpdatesPostSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/PostUpdates.json
+ */
+ /**
+ * Sample code: List available updates.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void listAvailableUpdates(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.updates().post("testrg", "testcluster", "Microsoft4.2203.2.32", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Updates_Put
+
+```java
+import com.azure.resourcemanager.azurestackhci.models.AvailabilityType;
+import com.azure.resourcemanager.azurestackhci.models.HciUpdate;
+import com.azure.resourcemanager.azurestackhci.models.State;
+import com.azure.resourcemanager.azurestackhci.models.UpdatePrerequisite;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+
+/**
+ * Samples for Updates Put.
+ */
+public final class UpdatesPutSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/PutUpdates.json
+ */
+ /**
+ * Sample code: Put a specific update.
+ *
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void deleteAnUpdate(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.updateSummariesOperations().delete("testrg", "testcluster", com.azure.core.util.Context.NONE);
+ public static void putASpecificUpdate(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ HciUpdate resource = manager.updates()
+ .getWithResponse("testrg", "testcluster", "Microsoft4.2203.2.32", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withInstalledDate(OffsetDateTime.parse("2022-04-06T14:08:18.254Z"))
+ .withDescription("AzS Update 4.2203.2.32")
+ .withState(State.INSTALLED)
+ .withPrerequisites(Arrays.asList(new UpdatePrerequisite().withUpdateType("update type")
+ .withVersion("prerequisite version")
+ .withPackageName("update package name")))
+ .withPackagePath("\\\\SU1FileServer\\SU1_Infrastructure_2\\Updates\\Packages\\Microsoft4.2203.2.32")
+ .withPackageSizeInMb(18858.0F)
+ .withDisplayName("AzS Update - 4.2203.2.32")
+ .withVersion("4.2203.2.32")
+ .withPublisher("Microsoft")
+ .withReleaseLink("https://docs.microsoft.com/azure-stack/operator/release-notes?view=azs-2203")
+ .withAvailabilityType(AvailabilityType.LOCAL)
+ .withPackageType("Infrastructure")
+ .withAdditionalProperties("additional properties")
+ .withProgressPercentage(0.0F)
+ .withNotifyMessage("Brief message with instructions for updates of AvailabilityType Notify")
+ .apply();
}
}
```
-### UpdateSummariesOperation_Get
+### VirtualHardDisksOperation_CreateOrUpdate
```java
+import com.azure.resourcemanager.azurestackhci.models.ExtendedLocation;
+import com.azure.resourcemanager.azurestackhci.models.ExtendedLocationTypes;
+
/**
- * Samples for UpdateSummariesOperation Get.
+ * Samples for VirtualHardDisksOperation CreateOrUpdate.
*/
-public final class UpdateSummariesOperationGetSamples {
+public final class VirtualHardDisksOperationCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * GetUpdateSummaries.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * PutVirtualHardDisk.json
*/
/**
- * Sample code: Get Update summaries under cluster resource.
+ * Sample code: PutVirtualHardDisk.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void putVirtualHardDisk(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.virtualHardDisksOperations()
+ .define("test-vhd")
+ .withRegion("West US2")
+ .withExistingResourceGroup("test-rg")
+ .withExtendedLocation(new ExtendedLocation().withName(
+ "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location")
+ .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
+ .withDiskSizeGB(32L)
+ .create();
+ }
+}
+```
+
+### VirtualHardDisksOperation_Delete
+
+```java
+/**
+ * Samples for VirtualHardDisksOperation Delete.
+ */
+public final class VirtualHardDisksOperationDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * DeleteVirtualHardDisk.json
+ */
+ /**
+ * Sample code: DeleteVirtualHardDisk.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void deleteVirtualHardDisk(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.virtualHardDisksOperations().delete("test-rg", "test-vhd", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### VirtualHardDisksOperation_GetByResourceGroup
+
+```java
+/**
+ * Samples for VirtualHardDisksOperation GetByResourceGroup.
+ */
+public final class VirtualHardDisksOperationGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * GetVirtualHardDisk.json
+ */
+ /**
+ * Sample code: GetVirtualHardDisk.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void getVirtualHardDisk(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.virtualHardDisksOperations()
+ .getByResourceGroupWithResponse("test-rg", "test-vhd", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### VirtualHardDisksOperation_List
+
+```java
+/**
+ * Samples for VirtualHardDisksOperation List.
+ */
+public final class VirtualHardDisksOperationListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * ListVirtualHardDiskBySubscription.json
+ */
+ /**
+ * Sample code: ListVirtualHardDiskBySubscription.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
public static void
- getUpdateSummariesUnderClusterResource(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.updateSummariesOperations().getWithResponse("testrg", "testcluster", com.azure.core.util.Context.NONE);
+ listVirtualHardDiskBySubscription(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.virtualHardDisksOperations().list(com.azure.core.util.Context.NONE);
}
}
```
-### UpdateSummariesOperation_List
+### VirtualHardDisksOperation_ListByResourceGroup
```java
/**
- * Samples for UpdateSummariesOperation List.
+ * Samples for VirtualHardDisksOperation ListByResourceGroup.
*/
-public final class UpdateSummariesOperationListSamples {
+public final class VirtualHardDisksOperationListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ListUpdateSummaries.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * ListVirtualHardDiskByResourceGroup.json
*/
/**
- * Sample code: Get Update summaries under cluster resource.
+ * Sample code: ListVirtualHardDiskByResourceGroup.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
public static void
- getUpdateSummariesUnderClusterResource(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.updateSummariesOperations().list("testrg", "testcluster", com.azure.core.util.Context.NONE);
+ listVirtualHardDiskByResourceGroup(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.virtualHardDisksOperations().listByResourceGroup("test-rg", com.azure.core.util.Context.NONE);
}
}
```
-### UpdateSummariesOperation_Put
+### VirtualHardDisksOperation_Update
```java
-import com.azure.resourcemanager.azurestackhci.fluent.models.UpdateSummariesInner;
-import com.azure.resourcemanager.azurestackhci.models.UpdateSummariesPropertiesState;
-import java.time.OffsetDateTime;
+import com.azure.resourcemanager.azurestackhci.models.VirtualHardDisks;
+import java.util.HashMap;
+import java.util.Map;
/**
- * Samples for UpdateSummariesOperation Put.
+ * Samples for VirtualHardDisksOperation Update.
*/
-public final class UpdateSummariesOperationPutSamples {
+public final class VirtualHardDisksOperationUpdateSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * PutUpdateSummaries.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * UpdateVirtualHardDisk.json
*/
/**
- * Sample code: Put Update summaries under cluster resource.
+ * Sample code: UpdateVirtualHardDisk.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void updateVirtualHardDisk(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ VirtualHardDisks resource = manager.virtualHardDisksOperations()
+ .getByResourceGroupWithResponse("test-rg", "test-vhd", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("additionalProperties", "sample")).apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### VirtualMachineInstances_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.azurestackhci.fluent.models.VirtualMachineInstanceInner;
+import com.azure.resourcemanager.azurestackhci.models.ExtendedLocation;
+import com.azure.resourcemanager.azurestackhci.models.ExtendedLocationTypes;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstancePropertiesHardwareProfile;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstancePropertiesNetworkProfile;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstancePropertiesNetworkProfileNetworkInterfacesItem;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstancePropertiesOsProfile;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstancePropertiesOsProfileWindowsConfiguration;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstancePropertiesSecurityProfile;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstancePropertiesSecurityProfileUefiSettings;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstancePropertiesStorageProfile;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstancePropertiesStorageProfileImageReference;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstancePropertiesStorageProfileOsDisk;
+import com.azure.resourcemanager.azurestackhci.models.VmSizeEnum;
+import java.util.Arrays;
+
+/**
+ * Samples for VirtualMachineInstances CreateOrUpdate.
+ */
+public final class VirtualMachineInstancesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * PutVirtualMachineInstanceWithGalleryImage.json
+ */
+ /**
+ * Sample code: PutVirtualMachineInstanceWithGalleryImage.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void putVirtualMachineInstanceWithGalleryImage(
+ com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.virtualMachineInstances()
+ .createOrUpdate(
+ "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM",
+ new VirtualMachineInstanceInner().withExtendedLocation(new ExtendedLocation().withName(
+ "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location")
+ .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
+ .withHardwareProfile(
+ new VirtualMachineInstancePropertiesHardwareProfile().withVmSize(VmSizeEnum.DEFAULT))
+ .withNetworkProfile(new VirtualMachineInstancePropertiesNetworkProfile().withNetworkInterfaces(
+ Arrays.asList(new VirtualMachineInstancePropertiesNetworkProfileNetworkInterfacesItem()
+ .withId("test-nic"))))
+ .withOsProfile(
+ new VirtualMachineInstancePropertiesOsProfile().withAdminPassword("fakeTokenPlaceholder")
+ .withAdminUsername("localadmin")
+ .withComputerName("luamaster"))
+ .withSecurityProfile(new VirtualMachineInstancePropertiesSecurityProfile().withEnableTpm(true)
+ .withUefiSettings(new VirtualMachineInstancePropertiesSecurityProfileUefiSettings()
+ .withSecureBootEnabled(true)))
+ .withStorageProfile(new VirtualMachineInstancePropertiesStorageProfile()
+ .withImageReference(new VirtualMachineInstancePropertiesStorageProfileImageReference().withId(
+ "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image"))
+ .withVmConfigStoragePathId(
+ "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container")),
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * PutVirtualMachineInstanceWithOsDisk.json
+ */
+ /**
+ * Sample code: PutVirtualMachineInstanceWithOsDisk.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
public static void
- putUpdateSummariesUnderClusterResource(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.updateSummariesOperations()
- .putWithResponse("testrg", "testcluster",
- new UpdateSummariesInner().withOemFamily("DellEMC")
- .withHardwareModel("PowerEdge R730xd")
- .withCurrentVersion("4.2203.2.32")
- .withLastUpdated(OffsetDateTime.parse("2022-04-06T14:08:18.254Z"))
- .withLastChecked(OffsetDateTime.parse("2022-04-07T18:04:07Z"))
- .withState(UpdateSummariesPropertiesState.APPLIED_SUCCESSFULLY),
+ putVirtualMachineInstanceWithOsDisk(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.virtualMachineInstances()
+ .createOrUpdate(
+ "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM",
+ new VirtualMachineInstanceInner().withExtendedLocation(new ExtendedLocation().withName(
+ "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location")
+ .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
+ .withHardwareProfile(
+ new VirtualMachineInstancePropertiesHardwareProfile().withVmSize(VmSizeEnum.DEFAULT))
+ .withNetworkProfile(new VirtualMachineInstancePropertiesNetworkProfile().withNetworkInterfaces(
+ Arrays.asList(new VirtualMachineInstancePropertiesNetworkProfileNetworkInterfacesItem()
+ .withId("test-nic"))))
+ .withSecurityProfile(new VirtualMachineInstancePropertiesSecurityProfile().withEnableTpm(true)
+ .withUefiSettings(new VirtualMachineInstancePropertiesSecurityProfileUefiSettings()
+ .withSecureBootEnabled(true)))
+ .withStorageProfile(new VirtualMachineInstancePropertiesStorageProfile()
+ .withOsDisk(new VirtualMachineInstancePropertiesStorageProfileOsDisk().withId(
+ "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd"))
+ .withVmConfigStoragePathId(
+ "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container")),
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * PutVirtualMachineInstanceWithMarketplaceGalleryImage.json
+ */
+ /**
+ * Sample code: PutVirtualMachineInstanceWithMarketplaceGalleryImage.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void putVirtualMachineInstanceWithMarketplaceGalleryImage(
+ com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.virtualMachineInstances()
+ .createOrUpdate(
+ "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM",
+ new VirtualMachineInstanceInner().withExtendedLocation(new ExtendedLocation().withName(
+ "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location")
+ .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
+ .withHardwareProfile(
+ new VirtualMachineInstancePropertiesHardwareProfile().withVmSize(VmSizeEnum.DEFAULT))
+ .withNetworkProfile(new VirtualMachineInstancePropertiesNetworkProfile().withNetworkInterfaces(
+ Arrays.asList(new VirtualMachineInstancePropertiesNetworkProfileNetworkInterfacesItem()
+ .withId("test-nic"))))
+ .withOsProfile(
+ new VirtualMachineInstancePropertiesOsProfile().withAdminPassword("fakeTokenPlaceholder")
+ .withAdminUsername("localadmin")
+ .withComputerName("luamaster"))
+ .withSecurityProfile(new VirtualMachineInstancePropertiesSecurityProfile().withEnableTpm(true)
+ .withUefiSettings(new VirtualMachineInstancePropertiesSecurityProfileUefiSettings()
+ .withSecureBootEnabled(true)))
+ .withStorageProfile(new VirtualMachineInstancePropertiesStorageProfile()
+ .withImageReference(new VirtualMachineInstancePropertiesStorageProfileImageReference().withId(
+ "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image"))
+ .withVmConfigStoragePathId(
+ "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container")),
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * PutVirtualMachineInstanceWithVMConfigAgent.json
+ */
+ /**
+ * Sample code: PutVirtualMachineInstanceWithVMConfigAgent.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void putVirtualMachineInstanceWithVMConfigAgent(
+ com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.virtualMachineInstances()
+ .createOrUpdate(
+ "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM",
+ new VirtualMachineInstanceInner().withExtendedLocation(new ExtendedLocation().withName(
+ "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location")
+ .withType(ExtendedLocationTypes.CUSTOM_LOCATION))
+ .withHardwareProfile(
+ new VirtualMachineInstancePropertiesHardwareProfile().withVmSize(VmSizeEnum.DEFAULT))
+ .withNetworkProfile(new VirtualMachineInstancePropertiesNetworkProfile().withNetworkInterfaces(
+ Arrays.asList(new VirtualMachineInstancePropertiesNetworkProfileNetworkInterfacesItem()
+ .withId("test-nic"))))
+ .withOsProfile(new VirtualMachineInstancePropertiesOsProfile()
+ .withAdminPassword("fakeTokenPlaceholder")
+ .withAdminUsername("localadmin")
+ .withComputerName("luamaster")
+ .withWindowsConfiguration(new VirtualMachineInstancePropertiesOsProfileWindowsConfiguration()
+ .withProvisionVMConfigAgent(true)))
+ .withSecurityProfile(new VirtualMachineInstancePropertiesSecurityProfile().withEnableTpm(true)
+ .withUefiSettings(new VirtualMachineInstancePropertiesSecurityProfileUefiSettings()
+ .withSecureBootEnabled(true)))
+ .withStorageProfile(new VirtualMachineInstancePropertiesStorageProfile()
+ .withImageReference(new VirtualMachineInstancePropertiesStorageProfileImageReference().withId(
+ "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image"))
+ .withVmConfigStoragePathId(
+ "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container")),
com.azure.core.util.Context.NONE);
}
}
```
-### Updates_Delete
+### VirtualMachineInstances_Delete
```java
/**
- * Samples for Updates Delete.
+ * Samples for VirtualMachineInstances Delete.
*/
-public final class UpdatesDeleteSamples {
+public final class VirtualMachineInstancesDeleteSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * DeleteUpdates.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * DeleteVirtualMachineInstance.json
*/
/**
- * Sample code: Delete an Update.
+ * Sample code: DeleteVirtualMachine.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void deleteAnUpdate(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.updates().delete("testrg", "testcluster", "Microsoft4.2203.2.32", com.azure.core.util.Context.NONE);
+ public static void deleteVirtualMachine(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.virtualMachineInstances()
+ .delete(
+ "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM",
+ com.azure.core.util.Context.NONE);
}
}
```
-### Updates_Get
+### VirtualMachineInstances_Get
```java
/**
- * Samples for Updates Get.
+ * Samples for VirtualMachineInstances Get.
*/
-public final class UpdatesGetSamples {
+public final class VirtualMachineInstancesGetSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * GetUpdates.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * GetVirtualMachineInstance.json
*/
/**
- * Sample code: Get a specific update.
+ * Sample code: GetVirtualMachineInstance.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void getASpecificUpdate(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.updates()
- .getWithResponse("testrg", "testcluster", "Microsoft4.2203.2.32", com.azure.core.util.Context.NONE);
+ public static void getVirtualMachineInstance(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.virtualMachineInstances()
+ .getWithResponse(
+ "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM",
+ com.azure.core.util.Context.NONE);
}
}
```
-### Updates_List
+### VirtualMachineInstances_List
```java
/**
- * Samples for Updates List.
+ * Samples for VirtualMachineInstances List.
*/
-public final class UpdatesListSamples {
+public final class VirtualMachineInstancesListSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ListUpdates.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * ListVirtualMachineInstances.json
*/
/**
- * Sample code: List available updates.
+ * Sample code: ListVirtualMachineInstances.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void listAvailableUpdates(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.updates().list("testrg", "testcluster", com.azure.core.util.Context.NONE);
+ public static void
+ listVirtualMachineInstances(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.virtualMachineInstances()
+ .list(
+ "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM",
+ com.azure.core.util.Context.NONE);
}
}
```
-### Updates_Post
+### VirtualMachineInstances_Restart
```java
/**
- * Samples for Updates Post.
+ * Samples for VirtualMachineInstances Restart.
*/
-public final class UpdatesPostSamples {
+public final class VirtualMachineInstancesRestartSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * PostUpdates.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * RestartVirtualMachineInstance.json
*/
/**
- * Sample code: List available updates.
+ * Sample code: RestartVirtualMachine.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void listAvailableUpdates(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.updates().post("testrg", "testcluster", "Microsoft4.2203.2.32", com.azure.core.util.Context.NONE);
+ public static void restartVirtualMachine(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.virtualMachineInstances()
+ .restart(
+ "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default",
+ com.azure.core.util.Context.NONE);
}
}
```
-### Updates_Put
+### VirtualMachineInstances_Start
```java
-import com.azure.resourcemanager.azurestackhci.models.AvailabilityType;
-import com.azure.resourcemanager.azurestackhci.models.HciUpdate;
-import com.azure.resourcemanager.azurestackhci.models.State;
-import com.azure.resourcemanager.azurestackhci.models.UpdatePrerequisite;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
+/**
+ * Samples for VirtualMachineInstances Start.
+ */
+public final class VirtualMachineInstancesStartSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * StartVirtualMachineInstance.json
+ */
+ /**
+ * Sample code: StartVirtualMachine.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void startVirtualMachine(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.virtualMachineInstances()
+ .start(
+ "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+### VirtualMachineInstances_Stop
+
+```java
/**
- * Samples for Updates Put.
+ * Samples for VirtualMachineInstances Stop.
*/
-public final class UpdatesPutSamples {
+public final class VirtualMachineInstancesStopSamples {
/*
* x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * PutUpdates.json
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * StopVirtualMachineInstance.json
*/
/**
- * Sample code: Put a specific update.
+ * Sample code: StopVirtualMachine.
*
- * @param manager Entry point to AzureStackHciManager.
+ * @param manager Entry point to AzurestackhciManager.
*/
- public static void putASpecificUpdate(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- HciUpdate resource = manager.updates()
- .getWithResponse("testrg", "testcluster", "Microsoft4.2203.2.32", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withInstalledDate(OffsetDateTime.parse("2022-04-06T14:08:18.254Z"))
- .withDescription("AzS Update 4.2203.2.32")
- .withState(State.INSTALLED)
- .withPrerequisites(Arrays.asList(new UpdatePrerequisite().withUpdateType("update type")
- .withVersion("prerequisite version")
- .withPackageName("update package name")))
- .withPackagePath("\\\\SU1FileServer\\SU1_Infrastructure_2\\Updates\\Packages\\Microsoft4.2203.2.32")
- .withPackageSizeInMb(18858.0F)
- .withDisplayName("AzS Update - 4.2203.2.32")
- .withVersion("4.2203.2.32")
- .withPublisher("Microsoft")
- .withReleaseLink("https://docs.microsoft.com/azure-stack/operator/release-notes?view=azs-2203")
- .withAvailabilityType(AvailabilityType.LOCAL)
- .withPackageType("Infrastructure")
- .withAdditionalProperties("additional properties")
- .withProgressPercentage(0.0F)
- .withNotifyMessage("Brief message with instructions for updates of AvailabilityType Notify")
- .apply();
+ public static void stopVirtualMachine(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.virtualMachineInstances()
+ .stop(
+ "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### VirtualMachineInstances_Update
+
+```java
+import com.azure.resourcemanager.azurestackhci.models.StorageProfileUpdate;
+import com.azure.resourcemanager.azurestackhci.models.StorageProfileUpdateDataDisksItem;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstanceUpdateProperties;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstanceUpdateRequest;
+import java.util.Arrays;
+
+/**
+ * Samples for VirtualMachineInstances Update.
+ */
+public final class VirtualMachineInstancesUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2024-01-01/examples/
+ * UpdateVirtualMachineInstance.json
+ */
+ /**
+ * Sample code: UpdateVirtualMachine.
+ *
+ * @param manager Entry point to AzurestackhciManager.
+ */
+ public static void updateVirtualMachine(com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager) {
+ manager.virtualMachineInstances()
+ .update(
+ "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM",
+ new VirtualMachineInstanceUpdateRequest().withProperties(
+ new VirtualMachineInstanceUpdateProperties().withStorageProfile(new StorageProfileUpdate()
+ .withDataDisks(Arrays.asList(new StorageProfileUpdateDataDisksItem().withId(
+ "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd"))))),
+ com.azure.core.util.Context.NONE);
}
}
```
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/pom.xml b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/pom.xml
index 488cce53b45b..53a292c26e94 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/pom.xml
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/pom.xml
@@ -17,8 +17,8 @@
1.0.0-beta.6
jar
- Microsoft Azure SDK for AzureStackHci Management
- 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-2024-04.
+ Microsoft Azure SDK for azurestackhci Management
+ 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-2024-01.
https://github.com/Azure/azure-sdk-for-java
@@ -46,13 +46,9 @@
0
0
true
+ false
-
- com.azure
- azure-json
- 1.3.0
-
com.azure
azure-core
@@ -63,6 +59,11 @@
azure-core-management
1.15.6
+
+ com.azure
+ azure-json
+ 1.3.0
+
com.azure
azure-core-test
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/AzureStackHciManager.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/AzurestackhciManager.java
similarity index 66%
rename from sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/AzureStackHciManager.java
rename to sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/AzurestackhciManager.java
index 89f4053a15c9..2078c05fd5df 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/AzureStackHciManager.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/AzurestackhciManager.java
@@ -11,15 +11,15 @@
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
-import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.http.policy.HttpPolicyProviders;
import com.azure.core.http.policy.RequestIdPolicy;
import com.azure.core.http.policy.RetryOptions;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
-import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
@@ -30,27 +30,47 @@
import com.azure.resourcemanager.azurestackhci.implementation.DeploymentSettingsImpl;
import com.azure.resourcemanager.azurestackhci.implementation.EdgeDevicesImpl;
import com.azure.resourcemanager.azurestackhci.implementation.ExtensionsImpl;
+import com.azure.resourcemanager.azurestackhci.implementation.GalleryImagesOperationsImpl;
+import com.azure.resourcemanager.azurestackhci.implementation.GuestAgentsImpl;
+import com.azure.resourcemanager.azurestackhci.implementation.GuestAgentsOperationsImpl;
+import com.azure.resourcemanager.azurestackhci.implementation.HybridIdentityMetadatasImpl;
+import com.azure.resourcemanager.azurestackhci.implementation.LogicalNetworksOperationsImpl;
+import com.azure.resourcemanager.azurestackhci.implementation.MarketplaceGalleryImagesOperationsImpl;
+import com.azure.resourcemanager.azurestackhci.implementation.NetworkInterfacesOperationsImpl;
import com.azure.resourcemanager.azurestackhci.implementation.OffersImpl;
import com.azure.resourcemanager.azurestackhci.implementation.OperationsImpl;
import com.azure.resourcemanager.azurestackhci.implementation.PublishersImpl;
import com.azure.resourcemanager.azurestackhci.implementation.SecuritySettingsImpl;
import com.azure.resourcemanager.azurestackhci.implementation.SkusImpl;
+import com.azure.resourcemanager.azurestackhci.implementation.StorageContainersOperationsImpl;
import com.azure.resourcemanager.azurestackhci.implementation.UpdateRunsImpl;
-import com.azure.resourcemanager.azurestackhci.implementation.UpdatesImpl;
import com.azure.resourcemanager.azurestackhci.implementation.UpdateSummariesOperationsImpl;
+import com.azure.resourcemanager.azurestackhci.implementation.UpdatesImpl;
+import com.azure.resourcemanager.azurestackhci.implementation.VirtualHardDisksOperationsImpl;
+import com.azure.resourcemanager.azurestackhci.implementation.VirtualMachineInstancesImpl;
import com.azure.resourcemanager.azurestackhci.models.ArcSettings;
import com.azure.resourcemanager.azurestackhci.models.Clusters;
import com.azure.resourcemanager.azurestackhci.models.DeploymentSettings;
import com.azure.resourcemanager.azurestackhci.models.EdgeDevices;
import com.azure.resourcemanager.azurestackhci.models.Extensions;
+import com.azure.resourcemanager.azurestackhci.models.GalleryImagesOperations;
+import com.azure.resourcemanager.azurestackhci.models.GuestAgents;
+import com.azure.resourcemanager.azurestackhci.models.GuestAgentsOperations;
+import com.azure.resourcemanager.azurestackhci.models.HybridIdentityMetadatas;
+import com.azure.resourcemanager.azurestackhci.models.LogicalNetworksOperations;
+import com.azure.resourcemanager.azurestackhci.models.MarketplaceGalleryImagesOperations;
+import com.azure.resourcemanager.azurestackhci.models.NetworkInterfacesOperations;
import com.azure.resourcemanager.azurestackhci.models.Offers;
import com.azure.resourcemanager.azurestackhci.models.Operations;
import com.azure.resourcemanager.azurestackhci.models.Publishers;
import com.azure.resourcemanager.azurestackhci.models.SecuritySettings;
import com.azure.resourcemanager.azurestackhci.models.Skus;
+import com.azure.resourcemanager.azurestackhci.models.StorageContainersOperations;
import com.azure.resourcemanager.azurestackhci.models.UpdateRuns;
-import com.azure.resourcemanager.azurestackhci.models.Updates;
import com.azure.resourcemanager.azurestackhci.models.UpdateSummariesOperations;
+import com.azure.resourcemanager.azurestackhci.models.Updates;
+import com.azure.resourcemanager.azurestackhci.models.VirtualHardDisksOperations;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstances;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
@@ -59,10 +79,10 @@
import java.util.stream.Collectors;
/**
- * Entry point to AzureStackHciManager.
+ * Entry point to AzurestackhciManager.
* Azure Stack HCI management service.
*/
-public final class AzureStackHciManager {
+public final class AzurestackhciManager {
private ArcSettings arcSettings;
private Clusters clusters;
@@ -73,6 +93,14 @@ public final class AzureStackHciManager {
private Extensions extensions;
+ private GalleryImagesOperations galleryImagesOperations;
+
+ private LogicalNetworksOperations logicalNetworksOperations;
+
+ private MarketplaceGalleryImagesOperations marketplaceGalleryImagesOperations;
+
+ private NetworkInterfacesOperations networkInterfacesOperations;
+
private Offers offers;
private Operations operations;
@@ -83,15 +111,27 @@ public final class AzureStackHciManager {
private Skus skus;
+ private StorageContainersOperations storageContainersOperations;
+
private UpdateRuns updateRuns;
private UpdateSummariesOperations updateSummariesOperations;
private Updates updates;
+ private VirtualHardDisksOperations virtualHardDisksOperations;
+
+ private VirtualMachineInstances virtualMachineInstances;
+
+ private HybridIdentityMetadatas hybridIdentityMetadatas;
+
+ private GuestAgents guestAgents;
+
+ private GuestAgentsOperations guestAgentsOperations;
+
private final AzureStackHciClient clientObject;
- private AzureStackHciManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ private AzurestackhciManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
this.clientObject = new AzureStackHciClientBuilder().pipeline(httpPipeline)
@@ -102,38 +142,38 @@ private AzureStackHciManager(HttpPipeline httpPipeline, AzureProfile profile, Du
}
/**
- * Creates an instance of AzureStackHci service API entry point.
+ * Creates an instance of azurestackhci service API entry point.
*
* @param credential the credential to use.
* @param profile the Azure profile for client.
- * @return the AzureStackHci service API instance.
+ * @return the azurestackhci service API instance.
*/
- public static AzureStackHciManager authenticate(TokenCredential credential, AzureProfile profile) {
+ public static AzurestackhciManager authenticate(TokenCredential credential, AzureProfile profile) {
Objects.requireNonNull(credential, "'credential' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
return configure().authenticate(credential, profile);
}
/**
- * Creates an instance of AzureStackHci service API entry point.
+ * Creates an instance of azurestackhci service API entry point.
*
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
* @param profile the Azure profile for client.
- * @return the AzureStackHci service API instance.
+ * @return the azurestackhci service API instance.
*/
- public static AzureStackHciManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) {
+ public static AzurestackhciManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
- return new AzureStackHciManager(httpPipeline, profile, null);
+ return new AzurestackhciManager(httpPipeline, profile, null);
}
/**
- * Gets a Configurable instance that can be used to create AzureStackHciManager with optional configuration.
+ * Gets a Configurable instance that can be used to create AzurestackhciManager with optional configuration.
*
* @return the Configurable instance allowing configurations.
*/
public static Configurable configure() {
- return new AzureStackHciManager.Configurable();
+ return new AzurestackhciManager.Configurable();
}
/**
@@ -238,13 +278,13 @@ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
}
/**
- * Creates an instance of AzureStackHci service API entry point.
+ * Creates an instance of azurestackhci service API entry point.
*
* @param credential the credential to use.
* @param profile the Azure profile for client.
- * @return the AzureStackHci service API instance.
+ * @return the azurestackhci service API instance.
*/
- public AzureStackHciManager authenticate(TokenCredential credential, AzureProfile profile) {
+ public AzurestackhciManager authenticate(TokenCredential credential, AzureProfile profile) {
Objects.requireNonNull(credential, "'credential' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
@@ -253,7 +293,7 @@ public AzureStackHciManager authenticate(TokenCredential credential, AzureProfil
.append("-")
.append("com.azure.resourcemanager.azurestackhci")
.append("/")
- .append("1.0.0-beta.5");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -286,7 +326,7 @@ public AzureStackHciManager authenticate(TokenCredential credential, AzureProfil
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
- policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.collect(Collectors.toList()));
@@ -295,7 +335,7 @@ public AzureStackHciManager authenticate(TokenCredential credential, AzureProfil
HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient)
.policies(policies.toArray(new HttpPipelinePolicy[0]))
.build();
- return new AzureStackHciManager(httpPipeline, profile, defaultPollInterval);
+ return new AzurestackhciManager(httpPipeline, profile, defaultPollInterval);
}
}
@@ -336,7 +376,7 @@ public DeploymentSettings deploymentSettings() {
}
/**
- * Gets the resource collection API of EdgeDevices.
+ * Gets the resource collection API of EdgeDevices. It manages EdgeDevice.
*
* @return Resource collection API of EdgeDevices.
*/
@@ -359,6 +399,58 @@ public Extensions extensions() {
return extensions;
}
+ /**
+ * Gets the resource collection API of GalleryImagesOperations. It manages GalleryImages.
+ *
+ * @return Resource collection API of GalleryImagesOperations.
+ */
+ public GalleryImagesOperations galleryImagesOperations() {
+ if (this.galleryImagesOperations == null) {
+ this.galleryImagesOperations
+ = new GalleryImagesOperationsImpl(clientObject.getGalleryImagesOperations(), this);
+ }
+ return galleryImagesOperations;
+ }
+
+ /**
+ * Gets the resource collection API of LogicalNetworksOperations. It manages LogicalNetworks.
+ *
+ * @return Resource collection API of LogicalNetworksOperations.
+ */
+ public LogicalNetworksOperations logicalNetworksOperations() {
+ if (this.logicalNetworksOperations == null) {
+ this.logicalNetworksOperations
+ = new LogicalNetworksOperationsImpl(clientObject.getLogicalNetworksOperations(), this);
+ }
+ return logicalNetworksOperations;
+ }
+
+ /**
+ * Gets the resource collection API of MarketplaceGalleryImagesOperations. It manages MarketplaceGalleryImages.
+ *
+ * @return Resource collection API of MarketplaceGalleryImagesOperations.
+ */
+ public MarketplaceGalleryImagesOperations marketplaceGalleryImagesOperations() {
+ if (this.marketplaceGalleryImagesOperations == null) {
+ this.marketplaceGalleryImagesOperations = new MarketplaceGalleryImagesOperationsImpl(
+ clientObject.getMarketplaceGalleryImagesOperations(), this);
+ }
+ return marketplaceGalleryImagesOperations;
+ }
+
+ /**
+ * Gets the resource collection API of NetworkInterfacesOperations. It manages NetworkInterfaces.
+ *
+ * @return Resource collection API of NetworkInterfacesOperations.
+ */
+ public NetworkInterfacesOperations networkInterfacesOperations() {
+ if (this.networkInterfacesOperations == null) {
+ this.networkInterfacesOperations
+ = new NetworkInterfacesOperationsImpl(clientObject.getNetworkInterfacesOperations(), this);
+ }
+ return networkInterfacesOperations;
+ }
+
/**
* Gets the resource collection API of Offers.
*
@@ -419,6 +511,19 @@ public Skus skus() {
return skus;
}
+ /**
+ * Gets the resource collection API of StorageContainersOperations. It manages StorageContainers.
+ *
+ * @return Resource collection API of StorageContainersOperations.
+ */
+ public StorageContainersOperations storageContainersOperations() {
+ if (this.storageContainersOperations == null) {
+ this.storageContainersOperations
+ = new StorageContainersOperationsImpl(clientObject.getStorageContainersOperations(), this);
+ }
+ return storageContainersOperations;
+ }
+
/**
* Gets the resource collection API of UpdateRuns. It manages UpdateRun.
*
@@ -456,6 +561,69 @@ public Updates updates() {
return updates;
}
+ /**
+ * Gets the resource collection API of VirtualHardDisksOperations. It manages VirtualHardDisks.
+ *
+ * @return Resource collection API of VirtualHardDisksOperations.
+ */
+ public VirtualHardDisksOperations virtualHardDisksOperations() {
+ if (this.virtualHardDisksOperations == null) {
+ this.virtualHardDisksOperations
+ = new VirtualHardDisksOperationsImpl(clientObject.getVirtualHardDisksOperations(), this);
+ }
+ return virtualHardDisksOperations;
+ }
+
+ /**
+ * Gets the resource collection API of VirtualMachineInstances.
+ *
+ * @return Resource collection API of VirtualMachineInstances.
+ */
+ public VirtualMachineInstances virtualMachineInstances() {
+ if (this.virtualMachineInstances == null) {
+ this.virtualMachineInstances
+ = new VirtualMachineInstancesImpl(clientObject.getVirtualMachineInstances(), this);
+ }
+ return virtualMachineInstances;
+ }
+
+ /**
+ * Gets the resource collection API of HybridIdentityMetadatas.
+ *
+ * @return Resource collection API of HybridIdentityMetadatas.
+ */
+ public HybridIdentityMetadatas hybridIdentityMetadatas() {
+ if (this.hybridIdentityMetadatas == null) {
+ this.hybridIdentityMetadatas
+ = new HybridIdentityMetadatasImpl(clientObject.getHybridIdentityMetadatas(), this);
+ }
+ return hybridIdentityMetadatas;
+ }
+
+ /**
+ * Gets the resource collection API of GuestAgents.
+ *
+ * @return Resource collection API of GuestAgents.
+ */
+ public GuestAgents guestAgents() {
+ if (this.guestAgents == null) {
+ this.guestAgents = new GuestAgentsImpl(clientObject.getGuestAgents(), this);
+ }
+ return guestAgents;
+ }
+
+ /**
+ * Gets the resource collection API of GuestAgentsOperations.
+ *
+ * @return Resource collection API of GuestAgentsOperations.
+ */
+ public GuestAgentsOperations guestAgentsOperations() {
+ if (this.guestAgentsOperations == null) {
+ this.guestAgentsOperations = new GuestAgentsOperationsImpl(clientObject.getGuestAgentsOperations(), this);
+ }
+ return guestAgentsOperations;
+ }
+
/**
* Gets wrapped service client AzureStackHciClient providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/AzureStackHciClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/AzureStackHciClient.java
index 60bae890277c..cbc3ac09a81a 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/AzureStackHciClient.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/AzureStackHciClient.java
@@ -12,7 +12,7 @@
*/
public interface AzureStackHciClient {
/**
- * Gets The ID of the target subscription. The value must be an UUID.
+ * Gets The ID of the target subscription.
*
* @return the subscriptionId value.
*/
@@ -81,6 +81,34 @@ public interface AzureStackHciClient {
*/
ExtensionsClient getExtensions();
+ /**
+ * Gets the GalleryImagesOperationsClient object to access its operations.
+ *
+ * @return the GalleryImagesOperationsClient object.
+ */
+ GalleryImagesOperationsClient getGalleryImagesOperations();
+
+ /**
+ * Gets the LogicalNetworksOperationsClient object to access its operations.
+ *
+ * @return the LogicalNetworksOperationsClient object.
+ */
+ LogicalNetworksOperationsClient getLogicalNetworksOperations();
+
+ /**
+ * Gets the MarketplaceGalleryImagesOperationsClient object to access its operations.
+ *
+ * @return the MarketplaceGalleryImagesOperationsClient object.
+ */
+ MarketplaceGalleryImagesOperationsClient getMarketplaceGalleryImagesOperations();
+
+ /**
+ * Gets the NetworkInterfacesOperationsClient object to access its operations.
+ *
+ * @return the NetworkInterfacesOperationsClient object.
+ */
+ NetworkInterfacesOperationsClient getNetworkInterfacesOperations();
+
/**
* Gets the OffersClient object to access its operations.
*
@@ -116,6 +144,13 @@ public interface AzureStackHciClient {
*/
SkusClient getSkus();
+ /**
+ * Gets the StorageContainersOperationsClient object to access its operations.
+ *
+ * @return the StorageContainersOperationsClient object.
+ */
+ StorageContainersOperationsClient getStorageContainersOperations();
+
/**
* Gets the UpdateRunsClient object to access its operations.
*
@@ -136,4 +171,39 @@ public interface AzureStackHciClient {
* @return the UpdatesClient object.
*/
UpdatesClient getUpdates();
+
+ /**
+ * Gets the VirtualHardDisksOperationsClient object to access its operations.
+ *
+ * @return the VirtualHardDisksOperationsClient object.
+ */
+ VirtualHardDisksOperationsClient getVirtualHardDisksOperations();
+
+ /**
+ * Gets the VirtualMachineInstancesClient object to access its operations.
+ *
+ * @return the VirtualMachineInstancesClient object.
+ */
+ VirtualMachineInstancesClient getVirtualMachineInstances();
+
+ /**
+ * Gets the HybridIdentityMetadatasClient object to access its operations.
+ *
+ * @return the HybridIdentityMetadatasClient object.
+ */
+ HybridIdentityMetadatasClient getHybridIdentityMetadatas();
+
+ /**
+ * Gets the GuestAgentsClient object to access its operations.
+ *
+ * @return the GuestAgentsClient object.
+ */
+ GuestAgentsClient getGuestAgents();
+
+ /**
+ * Gets the GuestAgentsOperationsClient object to access its operations.
+ *
+ * @return the GuestAgentsOperationsClient object.
+ */
+ GuestAgentsOperationsClient getGuestAgentsOperations();
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ClustersClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ClustersClient.java
index 2dcf0710ebb4..98a1661602d8 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ClustersClient.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ClustersClient.java
@@ -14,8 +14,6 @@
import com.azure.resourcemanager.azurestackhci.fluent.models.ClusterIdentityResponseInner;
import com.azure.resourcemanager.azurestackhci.fluent.models.ClusterInner;
import com.azure.resourcemanager.azurestackhci.models.ClusterPatch;
-import com.azure.resourcemanager.azurestackhci.models.LogCollectionRequest;
-import com.azure.resourcemanager.azurestackhci.models.RemoteSupportRequest;
import com.azure.resourcemanager.azurestackhci.models.SoftwareAssuranceChangeRequest;
import com.azure.resourcemanager.azurestackhci.models.UploadCertificateRequest;
@@ -387,128 +385,4 @@ ClusterInner extendSoftwareAssuranceBenefit(String resourceGroupName, String clu
@ServiceMethod(returns = ReturnType.SINGLE)
ClusterInner extendSoftwareAssuranceBenefit(String resourceGroupName, String clusterName,
SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest, Context context);
-
- /**
- * Trigger Log Collection on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param logCollectionRequest Trigger Log Collection Request Payload.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of cluster details.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ClusterInner> beginTriggerLogCollection(String resourceGroupName,
- String clusterName, LogCollectionRequest logCollectionRequest);
-
- /**
- * Trigger Log Collection on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param logCollectionRequest Trigger Log Collection Request Payload.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of cluster details.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ClusterInner> beginTriggerLogCollection(String resourceGroupName,
- String clusterName, LogCollectionRequest logCollectionRequest, Context context);
-
- /**
- * Trigger Log Collection on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param logCollectionRequest Trigger Log Collection Request Payload.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cluster details.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ClusterInner triggerLogCollection(String resourceGroupName, String clusterName,
- LogCollectionRequest logCollectionRequest);
-
- /**
- * Trigger Log Collection on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param logCollectionRequest Trigger Log Collection Request Payload.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cluster details.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ClusterInner triggerLogCollection(String resourceGroupName, String clusterName,
- LogCollectionRequest logCollectionRequest, Context context);
-
- /**
- * Configure RemoteSupport on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param remoteSupportRequest Configure Remote Support Request Payload.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of cluster details.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ClusterInner> beginConfigureRemoteSupport(String resourceGroupName,
- String clusterName, RemoteSupportRequest remoteSupportRequest);
-
- /**
- * Configure RemoteSupport on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param remoteSupportRequest Configure Remote Support Request Payload.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of cluster details.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ClusterInner> beginConfigureRemoteSupport(String resourceGroupName,
- String clusterName, RemoteSupportRequest remoteSupportRequest, Context context);
-
- /**
- * Configure RemoteSupport on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param remoteSupportRequest Configure Remote Support Request Payload.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cluster details.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ClusterInner configureRemoteSupport(String resourceGroupName, String clusterName,
- RemoteSupportRequest remoteSupportRequest);
-
- /**
- * Configure RemoteSupport on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param remoteSupportRequest Configure Remote Support Request Payload.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cluster details.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ClusterInner configureRemoteSupport(String resourceGroupName, String clusterName,
- RemoteSupportRequest remoteSupportRequest, Context context);
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/GalleryImagesOperationsClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/GalleryImagesOperationsClient.java
new file mode 100644
index 000000000000..f43755f24910
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/GalleryImagesOperationsClient.java
@@ -0,0 +1,279 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.azurestackhci.fluent.models.GalleryImagesInner;
+import com.azure.resourcemanager.azurestackhci.models.GalleryImagesUpdateRequest;
+
+/**
+ * An instance of this class provides access to all the operations defined in GalleryImagesOperationsClient.
+ */
+public interface GalleryImagesOperationsClient {
+ /**
+ * Gets a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a gallery image along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String galleryImageName,
+ Context context);
+
+ /**
+ * Gets a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a gallery image.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GalleryImagesInner getByResourceGroup(String resourceGroupName, String galleryImageName);
+
+ /**
+ * The operation to create or update a gallery image. Please note some properties can be set only during gallery
+ * image creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param galleryImages The galleryImages parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the gallery images resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GalleryImagesInner> beginCreateOrUpdate(String resourceGroupName,
+ String galleryImageName, GalleryImagesInner galleryImages);
+
+ /**
+ * The operation to create or update a gallery image. Please note some properties can be set only during gallery
+ * image creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param galleryImages The galleryImages parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the gallery images resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GalleryImagesInner> beginCreateOrUpdate(String resourceGroupName,
+ String galleryImageName, GalleryImagesInner galleryImages, Context context);
+
+ /**
+ * The operation to create or update a gallery image. Please note some properties can be set only during gallery
+ * image creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param galleryImages The galleryImages parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the gallery images resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GalleryImagesInner createOrUpdate(String resourceGroupName, String galleryImageName,
+ GalleryImagesInner galleryImages);
+
+ /**
+ * The operation to create or update a gallery image. Please note some properties can be set only during gallery
+ * image creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param galleryImages The galleryImages parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the gallery images resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GalleryImagesInner createOrUpdate(String resourceGroupName, String galleryImageName,
+ GalleryImagesInner galleryImages, Context context);
+
+ /**
+ * The operation to delete a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String galleryImageName);
+
+ /**
+ * The operation to delete a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String galleryImageName, Context context);
+
+ /**
+ * The operation to delete a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String galleryImageName);
+
+ /**
+ * The operation to delete a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String galleryImageName, Context context);
+
+ /**
+ * The operation to update a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param galleryImages The galleryImages parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the gallery images resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GalleryImagesInner> beginUpdate(String resourceGroupName,
+ String galleryImageName, GalleryImagesUpdateRequest galleryImages);
+
+ /**
+ * The operation to update a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param galleryImages The galleryImages parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the gallery images resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GalleryImagesInner> beginUpdate(String resourceGroupName,
+ String galleryImageName, GalleryImagesUpdateRequest galleryImages, Context context);
+
+ /**
+ * The operation to update a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param galleryImages The galleryImages parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the gallery images resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GalleryImagesInner update(String resourceGroupName, String galleryImageName,
+ GalleryImagesUpdateRequest galleryImages);
+
+ /**
+ * The operation to update a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param galleryImages The galleryImages parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the gallery images resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GalleryImagesInner update(String resourceGroupName, String galleryImageName,
+ GalleryImagesUpdateRequest galleryImages, Context context);
+
+ /**
+ * Lists all of the gallery images in the specified resource group. Use the nextLink property in the response to get
+ * the next page of gallery images.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of gallery images as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Lists all of the gallery images in the specified resource group. Use the nextLink property in the response to get
+ * the next page of gallery images.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of gallery images as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Lists all of the gallery images in the specified subscription. Use the nextLink property in the response to get
+ * the next page of gallery images.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of gallery images as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all of the gallery images in the specified subscription. Use the nextLink property in the response to get
+ * the next page of gallery images.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of gallery images as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/GuestAgentsClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/GuestAgentsClient.java
new file mode 100644
index 000000000000..71fff973f731
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/GuestAgentsClient.java
@@ -0,0 +1,174 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.azurestackhci.fluent.models.GuestAgentInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in GuestAgentsClient.
+ */
+public interface GuestAgentsClient {
+ /**
+ * Implements GuestAgent PUT method.
+ *
+ * Create Or Update GuestAgent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of defines the GuestAgent.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GuestAgentInner> beginCreate(String resourceUri);
+
+ /**
+ * Implements GuestAgent PUT method.
+ *
+ * Create Or Update GuestAgent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param body Request payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of defines the GuestAgent.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GuestAgentInner> beginCreate(String resourceUri, GuestAgentInner body,
+ Context context);
+
+ /**
+ * Implements GuestAgent PUT method.
+ *
+ * Create Or Update GuestAgent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return defines the GuestAgent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GuestAgentInner create(String resourceUri);
+
+ /**
+ * Implements GuestAgent PUT method.
+ *
+ * Create Or Update GuestAgent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param body Request payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return defines the GuestAgent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GuestAgentInner create(String resourceUri, GuestAgentInner body, Context context);
+
+ /**
+ * Gets GuestAgent.
+ *
+ * Implements GuestAgent GET method.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return defines the GuestAgent along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceUri, Context context);
+
+ /**
+ * Gets GuestAgent.
+ *
+ * Implements GuestAgent GET method.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return defines the GuestAgent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GuestAgentInner get(String resourceUri);
+
+ /**
+ * Deleted an GuestAgent.
+ *
+ * Implements GuestAgent DELETE method.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceUri);
+
+ /**
+ * Deleted an GuestAgent.
+ *
+ * Implements GuestAgent DELETE method.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceUri, Context context);
+
+ /**
+ * Deleted an GuestAgent.
+ *
+ * Implements GuestAgent DELETE method.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceUri);
+
+ /**
+ * Deleted an GuestAgent.
+ *
+ * Implements GuestAgent DELETE method.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceUri, Context context);
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/GuestAgentsOperationsClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/GuestAgentsOperationsClient.java
new file mode 100644
index 000000000000..85e748c6c412
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/GuestAgentsOperationsClient.java
@@ -0,0 +1,47 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.azurestackhci.fluent.models.GuestAgentInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in GuestAgentsOperationsClient.
+ */
+public interface GuestAgentsOperationsClient {
+ /**
+ * Implements GET GuestAgent in a vm.
+ *
+ * Returns the list of GuestAgent of the given vm.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of GuestAgent as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceUri);
+
+ /**
+ * Implements GET GuestAgent in a vm.
+ *
+ * Returns the list of GuestAgent of the given vm.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of GuestAgent as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceUri, Context context);
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/HybridIdentityMetadatasClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/HybridIdentityMetadatasClient.java
new file mode 100644
index 000000000000..4ed15fa023b9
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/HybridIdentityMetadatasClient.java
@@ -0,0 +1,79 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.azurestackhci.fluent.models.HybridIdentityMetadataInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in HybridIdentityMetadatasClient.
+ */
+public interface HybridIdentityMetadatasClient {
+ /**
+ * Gets HybridIdentityMetadata.
+ *
+ * Implements HybridIdentityMetadata GET method.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return defines the HybridIdentityMetadata along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceUri, Context context);
+
+ /**
+ * Gets HybridIdentityMetadata.
+ *
+ * Implements HybridIdentityMetadata GET method.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return defines the HybridIdentityMetadata.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ HybridIdentityMetadataInner get(String resourceUri);
+
+ /**
+ * Implements GET HybridIdentityMetadata in a vm.
+ *
+ * Returns the list of HybridIdentityMetadata of the given vm.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of HybridIdentityMetadata as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceUri);
+
+ /**
+ * Implements GET HybridIdentityMetadata in a vm.
+ *
+ * Returns the list of HybridIdentityMetadata of the given vm.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of HybridIdentityMetadata as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceUri, Context context);
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/LogicalNetworksOperationsClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/LogicalNetworksOperationsClient.java
new file mode 100644
index 000000000000..8a6626c2c5ef
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/LogicalNetworksOperationsClient.java
@@ -0,0 +1,280 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.azurestackhci.fluent.models.LogicalNetworksInner;
+import com.azure.resourcemanager.azurestackhci.models.LogicalNetworksUpdateRequest;
+
+/**
+ * An instance of this class provides access to all the operations defined in LogicalNetworksOperationsClient.
+ */
+public interface LogicalNetworksOperationsClient {
+ /**
+ * The getByResourceGroup operation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param logicalNetworkName Name of the logical network.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the logical network resource definition along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String logicalNetworkName,
+ Context context);
+
+ /**
+ * The getByResourceGroup operation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param logicalNetworkName Name of the logical network.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the logical network resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LogicalNetworksInner getByResourceGroup(String resourceGroupName, String logicalNetworkName);
+
+ /**
+ * The operation to create or update a logical network. Please note some properties can be set only during logical
+ * network creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param logicalNetworkName Name of the logical network.
+ * @param logicalNetworks The logicalNetworks parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the logical network resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, LogicalNetworksInner> beginCreateOrUpdate(String resourceGroupName,
+ String logicalNetworkName, LogicalNetworksInner logicalNetworks);
+
+ /**
+ * The operation to create or update a logical network. Please note some properties can be set only during logical
+ * network creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param logicalNetworkName Name of the logical network.
+ * @param logicalNetworks The logicalNetworks parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the logical network resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, LogicalNetworksInner> beginCreateOrUpdate(String resourceGroupName,
+ String logicalNetworkName, LogicalNetworksInner logicalNetworks, Context context);
+
+ /**
+ * The operation to create or update a logical network. Please note some properties can be set only during logical
+ * network creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param logicalNetworkName Name of the logical network.
+ * @param logicalNetworks The logicalNetworks parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the logical network resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LogicalNetworksInner createOrUpdate(String resourceGroupName, String logicalNetworkName,
+ LogicalNetworksInner logicalNetworks);
+
+ /**
+ * The operation to create or update a logical network. Please note some properties can be set only during logical
+ * network creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param logicalNetworkName Name of the logical network.
+ * @param logicalNetworks The logicalNetworks parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the logical network resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LogicalNetworksInner createOrUpdate(String resourceGroupName, String logicalNetworkName,
+ LogicalNetworksInner logicalNetworks, Context context);
+
+ /**
+ * The operation to delete a logical network.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param logicalNetworkName Name of the logical network.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String logicalNetworkName);
+
+ /**
+ * The operation to delete a logical network.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param logicalNetworkName Name of the logical network.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String logicalNetworkName,
+ Context context);
+
+ /**
+ * The operation to delete a logical network.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param logicalNetworkName Name of the logical network.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String logicalNetworkName);
+
+ /**
+ * The operation to delete a logical network.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param logicalNetworkName Name of the logical network.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String logicalNetworkName, Context context);
+
+ /**
+ * The operation to update a logical network.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param logicalNetworkName Name of the logical network.
+ * @param logicalNetworks The logicalNetworks parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the logical network resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, LogicalNetworksInner> beginUpdate(String resourceGroupName,
+ String logicalNetworkName, LogicalNetworksUpdateRequest logicalNetworks);
+
+ /**
+ * The operation to update a logical network.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param logicalNetworkName Name of the logical network.
+ * @param logicalNetworks The logicalNetworks parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the logical network resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, LogicalNetworksInner> beginUpdate(String resourceGroupName,
+ String logicalNetworkName, LogicalNetworksUpdateRequest logicalNetworks, Context context);
+
+ /**
+ * The operation to update a logical network.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param logicalNetworkName Name of the logical network.
+ * @param logicalNetworks The logicalNetworks parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the logical network resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LogicalNetworksInner update(String resourceGroupName, String logicalNetworkName,
+ LogicalNetworksUpdateRequest logicalNetworks);
+
+ /**
+ * The operation to update a logical network.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param logicalNetworkName Name of the logical network.
+ * @param logicalNetworks The logicalNetworks parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the logical network resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LogicalNetworksInner update(String resourceGroupName, String logicalNetworkName,
+ LogicalNetworksUpdateRequest logicalNetworks, Context context);
+
+ /**
+ * Lists all of the logical networks in the specified resource group. Use the nextLink property in the response to
+ * get the next page of logical networks.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Lists all of the logical networks in the specified resource group. Use the nextLink property in the response to
+ * get the next page of logical networks.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Lists all of the logical networks in the specified subscription. Use the nextLink property in the response to get
+ * the next page of logical networks.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all of the logical networks in the specified subscription. Use the nextLink property in the response to get
+ * the next page of logical networks.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/MarketplaceGalleryImagesOperationsClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/MarketplaceGalleryImagesOperationsClient.java
new file mode 100644
index 000000000000..d3f1b3a576cf
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/MarketplaceGalleryImagesOperationsClient.java
@@ -0,0 +1,284 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.azurestackhci.fluent.models.MarketplaceGalleryImagesInner;
+import com.azure.resourcemanager.azurestackhci.models.MarketplaceGalleryImagesUpdateRequest;
+
+/**
+ * An instance of this class provides access to all the operations defined in MarketplaceGalleryImagesOperationsClient.
+ */
+public interface MarketplaceGalleryImagesOperationsClient {
+ /**
+ * Gets a marketplace gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param marketplaceGalleryImageName Name of the marketplace gallery image.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a marketplace gallery image along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName,
+ String marketplaceGalleryImageName, Context context);
+
+ /**
+ * Gets a marketplace gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param marketplaceGalleryImageName Name of the marketplace gallery image.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a marketplace gallery image.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MarketplaceGalleryImagesInner getByResourceGroup(String resourceGroupName, String marketplaceGalleryImageName);
+
+ /**
+ * The operation to create or update a marketplace gallery image. Please note some properties can be set only during
+ * marketplace gallery image creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param marketplaceGalleryImageName Name of the marketplace gallery image.
+ * @param marketplaceGalleryImages The marketplaceGalleryImages parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the marketplace gallery image resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MarketplaceGalleryImagesInner> beginCreateOrUpdate(
+ String resourceGroupName, String marketplaceGalleryImageName,
+ MarketplaceGalleryImagesInner marketplaceGalleryImages);
+
+ /**
+ * The operation to create or update a marketplace gallery image. Please note some properties can be set only during
+ * marketplace gallery image creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param marketplaceGalleryImageName Name of the marketplace gallery image.
+ * @param marketplaceGalleryImages The marketplaceGalleryImages parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the marketplace gallery image resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MarketplaceGalleryImagesInner> beginCreateOrUpdate(
+ String resourceGroupName, String marketplaceGalleryImageName,
+ MarketplaceGalleryImagesInner marketplaceGalleryImages, Context context);
+
+ /**
+ * The operation to create or update a marketplace gallery image. Please note some properties can be set only during
+ * marketplace gallery image creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param marketplaceGalleryImageName Name of the marketplace gallery image.
+ * @param marketplaceGalleryImages The marketplaceGalleryImages parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the marketplace gallery image resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MarketplaceGalleryImagesInner createOrUpdate(String resourceGroupName, String marketplaceGalleryImageName,
+ MarketplaceGalleryImagesInner marketplaceGalleryImages);
+
+ /**
+ * The operation to create or update a marketplace gallery image. Please note some properties can be set only during
+ * marketplace gallery image creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param marketplaceGalleryImageName Name of the marketplace gallery image.
+ * @param marketplaceGalleryImages The marketplaceGalleryImages parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the marketplace gallery image resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MarketplaceGalleryImagesInner createOrUpdate(String resourceGroupName, String marketplaceGalleryImageName,
+ MarketplaceGalleryImagesInner marketplaceGalleryImages, Context context);
+
+ /**
+ * The operation to delete a marketplace gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param marketplaceGalleryImageName Name of the marketplace gallery image.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String marketplaceGalleryImageName);
+
+ /**
+ * The operation to delete a marketplace gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param marketplaceGalleryImageName Name of the marketplace gallery image.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String marketplaceGalleryImageName,
+ Context context);
+
+ /**
+ * The operation to delete a marketplace gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param marketplaceGalleryImageName Name of the marketplace gallery image.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String marketplaceGalleryImageName);
+
+ /**
+ * The operation to delete a marketplace gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param marketplaceGalleryImageName Name of the marketplace gallery image.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String marketplaceGalleryImageName, Context context);
+
+ /**
+ * The operation to update a marketplace gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param marketplaceGalleryImageName Name of the marketplace gallery image.
+ * @param marketplaceGalleryImages The marketplaceGalleryImages parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the marketplace gallery image resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MarketplaceGalleryImagesInner> beginUpdate(
+ String resourceGroupName, String marketplaceGalleryImageName,
+ MarketplaceGalleryImagesUpdateRequest marketplaceGalleryImages);
+
+ /**
+ * The operation to update a marketplace gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param marketplaceGalleryImageName Name of the marketplace gallery image.
+ * @param marketplaceGalleryImages The marketplaceGalleryImages parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the marketplace gallery image resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MarketplaceGalleryImagesInner> beginUpdate(
+ String resourceGroupName, String marketplaceGalleryImageName,
+ MarketplaceGalleryImagesUpdateRequest marketplaceGalleryImages, Context context);
+
+ /**
+ * The operation to update a marketplace gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param marketplaceGalleryImageName Name of the marketplace gallery image.
+ * @param marketplaceGalleryImages The marketplaceGalleryImages parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the marketplace gallery image resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MarketplaceGalleryImagesInner update(String resourceGroupName, String marketplaceGalleryImageName,
+ MarketplaceGalleryImagesUpdateRequest marketplaceGalleryImages);
+
+ /**
+ * The operation to update a marketplace gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param marketplaceGalleryImageName Name of the marketplace gallery image.
+ * @param marketplaceGalleryImages The marketplaceGalleryImages parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the marketplace gallery image resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MarketplaceGalleryImagesInner update(String resourceGroupName, String marketplaceGalleryImageName,
+ MarketplaceGalleryImagesUpdateRequest marketplaceGalleryImages, Context context);
+
+ /**
+ * Lists all of the marketplace gallery images in the specified resource group. Use the nextLink property in the
+ * response to get the next page of marketplace gallery images.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Lists all of the marketplace gallery images in the specified resource group. Use the nextLink property in the
+ * response to get the next page of marketplace gallery images.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Lists all of the marketplace gallery images in the specified subscription. Use the nextLink property in the
+ * response to get the next page of marketplace gallery images.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all of the marketplace gallery images in the specified subscription. Use the nextLink property in the
+ * response to get the next page of marketplace gallery images.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/NetworkInterfacesOperationsClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/NetworkInterfacesOperationsClient.java
new file mode 100644
index 000000000000..f7e5d94c48b6
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/NetworkInterfacesOperationsClient.java
@@ -0,0 +1,280 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.azurestackhci.fluent.models.NetworkInterfacesInner;
+import com.azure.resourcemanager.azurestackhci.models.NetworkInterfacesUpdateRequest;
+
+/**
+ * An instance of this class provides access to all the operations defined in NetworkInterfacesOperationsClient.
+ */
+public interface NetworkInterfacesOperationsClient {
+ /**
+ * Gets a network interface.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param networkInterfaceName Name of the network interface.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a network interface along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName,
+ String networkInterfaceName, Context context);
+
+ /**
+ * Gets a network interface.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param networkInterfaceName Name of the network interface.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a network interface.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NetworkInterfacesInner getByResourceGroup(String resourceGroupName, String networkInterfaceName);
+
+ /**
+ * The operation to create or update a network interface. Please note some properties can be set only during network
+ * interface creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param networkInterfaceName Name of the network interface.
+ * @param networkInterfaces The networkInterfaces parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the network interface resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, NetworkInterfacesInner> beginCreateOrUpdate(String resourceGroupName,
+ String networkInterfaceName, NetworkInterfacesInner networkInterfaces);
+
+ /**
+ * The operation to create or update a network interface. Please note some properties can be set only during network
+ * interface creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param networkInterfaceName Name of the network interface.
+ * @param networkInterfaces The networkInterfaces parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the network interface resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, NetworkInterfacesInner> beginCreateOrUpdate(String resourceGroupName,
+ String networkInterfaceName, NetworkInterfacesInner networkInterfaces, Context context);
+
+ /**
+ * The operation to create or update a network interface. Please note some properties can be set only during network
+ * interface creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param networkInterfaceName Name of the network interface.
+ * @param networkInterfaces The networkInterfaces parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the network interface resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NetworkInterfacesInner createOrUpdate(String resourceGroupName, String networkInterfaceName,
+ NetworkInterfacesInner networkInterfaces);
+
+ /**
+ * The operation to create or update a network interface. Please note some properties can be set only during network
+ * interface creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param networkInterfaceName Name of the network interface.
+ * @param networkInterfaces The networkInterfaces parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the network interface resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NetworkInterfacesInner createOrUpdate(String resourceGroupName, String networkInterfaceName,
+ NetworkInterfacesInner networkInterfaces, Context context);
+
+ /**
+ * The operation to delete a network interface.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param networkInterfaceName Name of the network interface.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String networkInterfaceName);
+
+ /**
+ * The operation to delete a network interface.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param networkInterfaceName Name of the network interface.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String networkInterfaceName,
+ Context context);
+
+ /**
+ * The operation to delete a network interface.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param networkInterfaceName Name of the network interface.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String networkInterfaceName);
+
+ /**
+ * The operation to delete a network interface.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param networkInterfaceName Name of the network interface.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String networkInterfaceName, Context context);
+
+ /**
+ * The operation to update a network interface.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param networkInterfaceName Name of the network interface.
+ * @param networkInterfaces The networkInterfaces parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the network interface resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, NetworkInterfacesInner> beginUpdate(String resourceGroupName,
+ String networkInterfaceName, NetworkInterfacesUpdateRequest networkInterfaces);
+
+ /**
+ * The operation to update a network interface.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param networkInterfaceName Name of the network interface.
+ * @param networkInterfaces The networkInterfaces parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the network interface resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, NetworkInterfacesInner> beginUpdate(String resourceGroupName,
+ String networkInterfaceName, NetworkInterfacesUpdateRequest networkInterfaces, Context context);
+
+ /**
+ * The operation to update a network interface.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param networkInterfaceName Name of the network interface.
+ * @param networkInterfaces The networkInterfaces parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the network interface resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NetworkInterfacesInner update(String resourceGroupName, String networkInterfaceName,
+ NetworkInterfacesUpdateRequest networkInterfaces);
+
+ /**
+ * The operation to update a network interface.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param networkInterfaceName Name of the network interface.
+ * @param networkInterfaces The networkInterfaces parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the network interface resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NetworkInterfacesInner update(String resourceGroupName, String networkInterfaceName,
+ NetworkInterfacesUpdateRequest networkInterfaces, Context context);
+
+ /**
+ * Lists all of the network interfaces in the specified resource group. Use the nextLink property in the response to
+ * get the next page of network interfaces.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Lists all of the network interfaces in the specified resource group. Use the nextLink property in the response to
+ * get the next page of network interfaces.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Lists all of the network interfaces in the specified subscription. Use the nextLink property in the response to
+ * get the next page of network interfaces.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all of the network interfaces in the specified subscription. Use the nextLink property in the response to
+ * get the next page of network interfaces.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/StorageContainersOperationsClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/StorageContainersOperationsClient.java
new file mode 100644
index 000000000000..3726f688314b
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/StorageContainersOperationsClient.java
@@ -0,0 +1,280 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.azurestackhci.fluent.models.StorageContainersInner;
+import com.azure.resourcemanager.azurestackhci.models.StorageContainersUpdateRequest;
+
+/**
+ * An instance of this class provides access to all the operations defined in StorageContainersOperationsClient.
+ */
+public interface StorageContainersOperationsClient {
+ /**
+ * Gets a storage container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageContainerName Name of the storage container.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a storage container along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName,
+ String storageContainerName, Context context);
+
+ /**
+ * Gets a storage container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageContainerName Name of the storage container.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a storage container.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ StorageContainersInner getByResourceGroup(String resourceGroupName, String storageContainerName);
+
+ /**
+ * The operation to create or update a storage container. Please note some properties can be set only during storage
+ * container creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageContainerName Name of the storage container.
+ * @param storageContainers The storageContainers parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the storage container resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, StorageContainersInner> beginCreateOrUpdate(String resourceGroupName,
+ String storageContainerName, StorageContainersInner storageContainers);
+
+ /**
+ * The operation to create or update a storage container. Please note some properties can be set only during storage
+ * container creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageContainerName Name of the storage container.
+ * @param storageContainers The storageContainers parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the storage container resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, StorageContainersInner> beginCreateOrUpdate(String resourceGroupName,
+ String storageContainerName, StorageContainersInner storageContainers, Context context);
+
+ /**
+ * The operation to create or update a storage container. Please note some properties can be set only during storage
+ * container creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageContainerName Name of the storage container.
+ * @param storageContainers The storageContainers parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the storage container resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ StorageContainersInner createOrUpdate(String resourceGroupName, String storageContainerName,
+ StorageContainersInner storageContainers);
+
+ /**
+ * The operation to create or update a storage container. Please note some properties can be set only during storage
+ * container creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageContainerName Name of the storage container.
+ * @param storageContainers The storageContainers parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the storage container resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ StorageContainersInner createOrUpdate(String resourceGroupName, String storageContainerName,
+ StorageContainersInner storageContainers, Context context);
+
+ /**
+ * The operation to delete a storage container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageContainerName Name of the storage container.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String storageContainerName);
+
+ /**
+ * The operation to delete a storage container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageContainerName Name of the storage container.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String storageContainerName,
+ Context context);
+
+ /**
+ * The operation to delete a storage container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageContainerName Name of the storage container.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String storageContainerName);
+
+ /**
+ * The operation to delete a storage container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageContainerName Name of the storage container.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String storageContainerName, Context context);
+
+ /**
+ * The operation to update a storage container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageContainerName Name of the storage container.
+ * @param storageContainers The storageContainers parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the storage container resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, StorageContainersInner> beginUpdate(String resourceGroupName,
+ String storageContainerName, StorageContainersUpdateRequest storageContainers);
+
+ /**
+ * The operation to update a storage container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageContainerName Name of the storage container.
+ * @param storageContainers The storageContainers parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the storage container resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, StorageContainersInner> beginUpdate(String resourceGroupName,
+ String storageContainerName, StorageContainersUpdateRequest storageContainers, Context context);
+
+ /**
+ * The operation to update a storage container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageContainerName Name of the storage container.
+ * @param storageContainers The storageContainers parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the storage container resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ StorageContainersInner update(String resourceGroupName, String storageContainerName,
+ StorageContainersUpdateRequest storageContainers);
+
+ /**
+ * The operation to update a storage container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageContainerName Name of the storage container.
+ * @param storageContainers The storageContainers parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the storage container resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ StorageContainersInner update(String resourceGroupName, String storageContainerName,
+ StorageContainersUpdateRequest storageContainers, Context context);
+
+ /**
+ * Lists all of the storage containers in the specified resource group. Use the nextLink property in the response to
+ * get the next page of storage containers.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Lists all of the storage containers in the specified resource group. Use the nextLink property in the response to
+ * get the next page of storage containers.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Lists all of the storage containers in the specified subscription. Use the nextLink property in the response to
+ * get the next page of storage containers.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all of the storage containers in the specified subscription. Use the nextLink property in the response to
+ * get the next page of storage containers.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/VirtualHardDisksOperationsClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/VirtualHardDisksOperationsClient.java
new file mode 100644
index 000000000000..5a466690b02e
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/VirtualHardDisksOperationsClient.java
@@ -0,0 +1,280 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.azurestackhci.fluent.models.VirtualHardDisksInner;
+import com.azure.resourcemanager.azurestackhci.models.VirtualHardDisksUpdateRequest;
+
+/**
+ * An instance of this class provides access to all the operations defined in VirtualHardDisksOperationsClient.
+ */
+public interface VirtualHardDisksOperationsClient {
+ /**
+ * Gets a virtual hard disk.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualHardDiskName Name of the virtual hard disk.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a virtual hard disk along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String virtualHardDiskName,
+ Context context);
+
+ /**
+ * Gets a virtual hard disk.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualHardDiskName Name of the virtual hard disk.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a virtual hard disk.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualHardDisksInner getByResourceGroup(String resourceGroupName, String virtualHardDiskName);
+
+ /**
+ * The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual
+ * hard disk creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualHardDiskName Name of the virtual hard disk.
+ * @param virtualHardDisks The virtualHardDisks parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the virtual hard disk resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VirtualHardDisksInner> beginCreateOrUpdate(String resourceGroupName,
+ String virtualHardDiskName, VirtualHardDisksInner virtualHardDisks);
+
+ /**
+ * The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual
+ * hard disk creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualHardDiskName Name of the virtual hard disk.
+ * @param virtualHardDisks The virtualHardDisks parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the virtual hard disk resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VirtualHardDisksInner> beginCreateOrUpdate(String resourceGroupName,
+ String virtualHardDiskName, VirtualHardDisksInner virtualHardDisks, Context context);
+
+ /**
+ * The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual
+ * hard disk creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualHardDiskName Name of the virtual hard disk.
+ * @param virtualHardDisks The virtualHardDisks parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the virtual hard disk resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualHardDisksInner createOrUpdate(String resourceGroupName, String virtualHardDiskName,
+ VirtualHardDisksInner virtualHardDisks);
+
+ /**
+ * The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual
+ * hard disk creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualHardDiskName Name of the virtual hard disk.
+ * @param virtualHardDisks The virtualHardDisks parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the virtual hard disk resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualHardDisksInner createOrUpdate(String resourceGroupName, String virtualHardDiskName,
+ VirtualHardDisksInner virtualHardDisks, Context context);
+
+ /**
+ * The operation to delete a virtual hard disk.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualHardDiskName Name of the virtual hard disk.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String virtualHardDiskName);
+
+ /**
+ * The operation to delete a virtual hard disk.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualHardDiskName Name of the virtual hard disk.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String virtualHardDiskName,
+ Context context);
+
+ /**
+ * The operation to delete a virtual hard disk.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualHardDiskName Name of the virtual hard disk.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String virtualHardDiskName);
+
+ /**
+ * The operation to delete a virtual hard disk.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualHardDiskName Name of the virtual hard disk.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String virtualHardDiskName, Context context);
+
+ /**
+ * The operation to update a virtual hard disk.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualHardDiskName Name of the virtual hard disk.
+ * @param virtualHardDisks The virtualHardDisks parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the virtual hard disk resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VirtualHardDisksInner> beginUpdate(String resourceGroupName,
+ String virtualHardDiskName, VirtualHardDisksUpdateRequest virtualHardDisks);
+
+ /**
+ * The operation to update a virtual hard disk.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualHardDiskName Name of the virtual hard disk.
+ * @param virtualHardDisks The virtualHardDisks parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the virtual hard disk resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VirtualHardDisksInner> beginUpdate(String resourceGroupName,
+ String virtualHardDiskName, VirtualHardDisksUpdateRequest virtualHardDisks, Context context);
+
+ /**
+ * The operation to update a virtual hard disk.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualHardDiskName Name of the virtual hard disk.
+ * @param virtualHardDisks The virtualHardDisks parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the virtual hard disk resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualHardDisksInner update(String resourceGroupName, String virtualHardDiskName,
+ VirtualHardDisksUpdateRequest virtualHardDisks);
+
+ /**
+ * The operation to update a virtual hard disk.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualHardDiskName Name of the virtual hard disk.
+ * @param virtualHardDisks The virtualHardDisks parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the virtual hard disk resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualHardDisksInner update(String resourceGroupName, String virtualHardDiskName,
+ VirtualHardDisksUpdateRequest virtualHardDisks, Context context);
+
+ /**
+ * Lists all of the virtual hard disks in the specified resource group. Use the nextLink property in the response to
+ * get the next page of virtual hard disks.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Lists all of the virtual hard disks in the specified resource group. Use the nextLink property in the response to
+ * get the next page of virtual hard disks.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Lists all of the virtual hard disks in the specified subscription. Use the nextLink property in the response to
+ * get the next page of virtual hard disks.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all of the virtual hard disks in the specified subscription. Use the nextLink property in the response to
+ * get the next page of virtual hard disks.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/VirtualMachineInstancesClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/VirtualMachineInstancesClient.java
new file mode 100644
index 000000000000..5006110e708a
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/VirtualMachineInstancesClient.java
@@ -0,0 +1,417 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.azurestackhci.fluent.models.VirtualMachineInstanceInner;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstanceUpdateRequest;
+
+/**
+ * An instance of this class provides access to all the operations defined in VirtualMachineInstancesClient.
+ */
+public interface VirtualMachineInstancesClient {
+ /**
+ * Gets a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a virtual machine instance along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceUri, Context context);
+
+ /**
+ * Gets a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a virtual machine instance.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualMachineInstanceInner get(String resourceUri);
+
+ /**
+ * The operation to create or update a virtual machine instance. Please note some properties can be set only during
+ * virtual machine instance creation.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param virtualMachineInstance The virtualMachineInstance parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the virtual machine instance resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VirtualMachineInstanceInner>
+ beginCreateOrUpdate(String resourceUri, VirtualMachineInstanceInner virtualMachineInstance);
+
+ /**
+ * The operation to create or update a virtual machine instance. Please note some properties can be set only during
+ * virtual machine instance creation.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param virtualMachineInstance The virtualMachineInstance parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the virtual machine instance resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VirtualMachineInstanceInner>
+ beginCreateOrUpdate(String resourceUri, VirtualMachineInstanceInner virtualMachineInstance, Context context);
+
+ /**
+ * The operation to create or update a virtual machine instance. Please note some properties can be set only during
+ * virtual machine instance creation.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param virtualMachineInstance The virtualMachineInstance parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the virtual machine instance resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualMachineInstanceInner createOrUpdate(String resourceUri, VirtualMachineInstanceInner virtualMachineInstance);
+
+ /**
+ * The operation to create or update a virtual machine instance. Please note some properties can be set only during
+ * virtual machine instance creation.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param virtualMachineInstance The virtualMachineInstance parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the virtual machine instance resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualMachineInstanceInner createOrUpdate(String resourceUri, VirtualMachineInstanceInner virtualMachineInstance,
+ Context context);
+
+ /**
+ * The operation to delete a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceUri);
+
+ /**
+ * The operation to delete a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceUri, Context context);
+
+ /**
+ * The operation to delete a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceUri);
+
+ /**
+ * The operation to delete a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceUri, Context context);
+
+ /**
+ * The operation to update a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param virtualMachineInstance The virtualMachineInstance parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the virtual machine instance resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VirtualMachineInstanceInner> beginUpdate(String resourceUri,
+ VirtualMachineInstanceUpdateRequest virtualMachineInstance);
+
+ /**
+ * The operation to update a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param virtualMachineInstance The virtualMachineInstance parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the virtual machine instance resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VirtualMachineInstanceInner> beginUpdate(String resourceUri,
+ VirtualMachineInstanceUpdateRequest virtualMachineInstance, Context context);
+
+ /**
+ * The operation to update a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param virtualMachineInstance The virtualMachineInstance parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the virtual machine instance resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualMachineInstanceInner update(String resourceUri, VirtualMachineInstanceUpdateRequest virtualMachineInstance);
+
+ /**
+ * The operation to update a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param virtualMachineInstance The virtualMachineInstance parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the virtual machine instance resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualMachineInstanceInner update(String resourceUri, VirtualMachineInstanceUpdateRequest virtualMachineInstance,
+ Context context);
+
+ /**
+ * The operation to start a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the virtual machine instance resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VirtualMachineInstanceInner> beginStart(String resourceUri);
+
+ /**
+ * The operation to start a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the virtual machine instance resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VirtualMachineInstanceInner> beginStart(String resourceUri,
+ Context context);
+
+ /**
+ * The operation to start a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the virtual machine instance resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualMachineInstanceInner start(String resourceUri);
+
+ /**
+ * The operation to start a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the virtual machine instance resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualMachineInstanceInner start(String resourceUri, Context context);
+
+ /**
+ * The operation to stop a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the virtual machine instance resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VirtualMachineInstanceInner> beginStop(String resourceUri);
+
+ /**
+ * The operation to stop a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the virtual machine instance resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VirtualMachineInstanceInner> beginStop(String resourceUri,
+ Context context);
+
+ /**
+ * The operation to stop a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the virtual machine instance resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualMachineInstanceInner stop(String resourceUri);
+
+ /**
+ * The operation to stop a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the virtual machine instance resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualMachineInstanceInner stop(String resourceUri, Context context);
+
+ /**
+ * The operation to restart a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the virtual machine instance resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VirtualMachineInstanceInner> beginRestart(String resourceUri);
+
+ /**
+ * The operation to restart a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the virtual machine instance resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VirtualMachineInstanceInner> beginRestart(String resourceUri,
+ Context context);
+
+ /**
+ * The operation to restart a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the virtual machine instance resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualMachineInstanceInner restart(String resourceUri);
+
+ /**
+ * The operation to restart a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the virtual machine instance resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualMachineInstanceInner restart(String resourceUri, Context context);
+
+ /**
+ * Lists all of the virtual machine instances within the specified parent resource.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceUri);
+
+ /**
+ * Lists all of the virtual machine instances within the specified parent resource.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceUri, Context context);
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcSettingInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcSettingInner.java
index 15a62cf20d63..8be933c2ef01 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcSettingInner.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcSettingInner.java
@@ -33,9 +33,9 @@ public final class ArcSettingInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -43,9 +43,9 @@ public final class ArcSettingInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of ArcSettingInner class.
@@ -72,13 +72,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -92,13 +92,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterInner.java
index 1723360506c4..90402404b61d 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterInner.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterInner.java
@@ -14,10 +14,8 @@
import com.azure.resourcemanager.azurestackhci.models.ClusterReportedProperties;
import com.azure.resourcemanager.azurestackhci.models.ConnectivityStatus;
import com.azure.resourcemanager.azurestackhci.models.IsolatedVmAttestationConfiguration;
-import com.azure.resourcemanager.azurestackhci.models.LogCollectionProperties;
import com.azure.resourcemanager.azurestackhci.models.ManagedServiceIdentityType;
import com.azure.resourcemanager.azurestackhci.models.ProvisioningState;
-import com.azure.resourcemanager.azurestackhci.models.RemoteSupportProperties;
import com.azure.resourcemanager.azurestackhci.models.SoftwareAssuranceProperties;
import com.azure.resourcemanager.azurestackhci.models.Status;
import com.azure.resourcemanager.azurestackhci.models.UserAssignedIdentity;
@@ -47,9 +45,9 @@ public final class ClusterInner extends Resource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -57,9 +55,9 @@ public final class ClusterInner extends Resource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of ClusterInner class.
@@ -95,13 +93,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -115,13 +113,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
@@ -390,52 +388,6 @@ public ClusterInner withSoftwareAssuranceProperties(SoftwareAssuranceProperties
return this;
}
- /**
- * Get the logCollectionProperties property: Log Collection properties of the cluster.
- *
- * @return the logCollectionProperties value.
- */
- public LogCollectionProperties logCollectionProperties() {
- return this.innerProperties() == null ? null : this.innerProperties().logCollectionProperties();
- }
-
- /**
- * Set the logCollectionProperties property: Log Collection properties of the cluster.
- *
- * @param logCollectionProperties the logCollectionProperties value to set.
- * @return the ClusterInner object itself.
- */
- public ClusterInner withLogCollectionProperties(LogCollectionProperties logCollectionProperties) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ClusterProperties();
- }
- this.innerProperties().withLogCollectionProperties(logCollectionProperties);
- return this;
- }
-
- /**
- * Get the remoteSupportProperties property: RemoteSupport properties of the cluster.
- *
- * @return the remoteSupportProperties value.
- */
- public RemoteSupportProperties remoteSupportProperties() {
- return this.innerProperties() == null ? null : this.innerProperties().remoteSupportProperties();
- }
-
- /**
- * Set the remoteSupportProperties property: RemoteSupport properties of the cluster.
- *
- * @param remoteSupportProperties the remoteSupportProperties value to set.
- * @return the ClusterInner object itself.
- */
- public ClusterInner withRemoteSupportProperties(RemoteSupportProperties remoteSupportProperties) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ClusterProperties();
- }
- this.innerProperties().withRemoteSupportProperties(remoteSupportProperties);
- return this;
- }
-
/**
* Get the desiredProperties property: Desired properties of the cluster.
*
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterProperties.java
index 07d16fd324e3..5617f545d6d5 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterProperties.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterProperties.java
@@ -14,9 +14,7 @@
import com.azure.resourcemanager.azurestackhci.models.ClusterReportedProperties;
import com.azure.resourcemanager.azurestackhci.models.ConnectivityStatus;
import com.azure.resourcemanager.azurestackhci.models.IsolatedVmAttestationConfiguration;
-import com.azure.resourcemanager.azurestackhci.models.LogCollectionProperties;
import com.azure.resourcemanager.azurestackhci.models.ProvisioningState;
-import com.azure.resourcemanager.azurestackhci.models.RemoteSupportProperties;
import com.azure.resourcemanager.azurestackhci.models.SoftwareAssuranceProperties;
import com.azure.resourcemanager.azurestackhci.models.Status;
import java.io.IOException;
@@ -77,16 +75,6 @@ public final class ClusterProperties implements JsonSerializable {
- String discriminatorValue = null;
- try (JsonReader readerToUse = reader.bufferObject()) {
- readerToUse.nextToken(); // Prepare for reading
- while (readerToUse.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = readerToUse.getFieldName();
- readerToUse.nextToken();
- if ("kind".equals(fieldName)) {
- discriminatorValue = readerToUse.getString();
- break;
- } else {
- readerToUse.skipChildren();
- }
- }
- // Use the discriminator value to determine which subtype should be deserialized.
- if ("HCI".equals(discriminatorValue)) {
- return HciEdgeDevice.fromJson(readerToUse.reset());
- } else {
- return fromJsonKnownDiscriminator(readerToUse.reset());
- }
- }
- });
- }
-
- static EdgeDeviceInner fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
EdgeDeviceInner deserializedEdgeDeviceInner = new EdgeDeviceInner();
while (reader.nextToken() != JsonToken.END_OBJECT) {
@@ -174,8 +187,8 @@ static EdgeDeviceInner fromJsonKnownDiscriminator(JsonReader jsonReader) throws
deserializedEdgeDeviceInner.name = reader.getString();
} else if ("type".equals(fieldName)) {
deserializedEdgeDeviceInner.type = reader.getString();
- } else if ("kind".equals(fieldName)) {
- deserializedEdgeDeviceInner.kind = DeviceKind.fromString(reader.getString());
+ } else if ("properties".equals(fieldName)) {
+ deserializedEdgeDeviceInner.innerProperties = EdgeDeviceProperties.fromJson(reader);
} else if ("systemData".equals(fieldName)) {
deserializedEdgeDeviceInner.systemData = SystemData.fromJson(reader);
} else {
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/EdgeDeviceProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/EdgeDeviceProperties.java
similarity index 87%
rename from sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/EdgeDeviceProperties.java
rename to sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/EdgeDeviceProperties.java
index cac657831a4b..6dc2746bd9b1 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/EdgeDeviceProperties.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/EdgeDeviceProperties.java
@@ -2,20 +2,22 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.azurestackhci.models;
+package com.azure.resourcemanager.azurestackhci.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurestackhci.models.DeviceConfiguration;
+import com.azure.resourcemanager.azurestackhci.models.ProvisioningState;
import java.io.IOException;
/**
* Edge Device properties.
*/
@Fluent
-public class EdgeDeviceProperties implements JsonSerializable {
+public final class EdgeDeviceProperties implements JsonSerializable {
/*
* Device Configuration
*/
@@ -67,7 +69,7 @@ public ProvisioningState provisioningState() {
* @param provisioningState the provisioningState value to set.
* @return the EdgeDeviceProperties object itself.
*/
- EdgeDeviceProperties withProvisioningState(ProvisioningState provisioningState) {
+ public EdgeDeviceProperties withProvisioningState(ProvisioningState provisioningState) {
this.provisioningState = provisioningState;
return this;
}
@@ -90,6 +92,8 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("deviceConfiguration", this.deviceConfiguration);
+ jsonWriter.writeStringField("provisioningState",
+ this.provisioningState == null ? null : this.provisioningState.toString());
return jsonWriter.writeEndObject();
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionInner.java
index e942d3a82fe7..730959ed2066 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionInner.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionInner.java
@@ -33,9 +33,9 @@ public final class ExtensionInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -43,9 +43,9 @@ public final class ExtensionInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of ExtensionInner class.
@@ -72,13 +72,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -92,13 +92,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/GalleryImageProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/GalleryImageProperties.java
new file mode 100644
index 000000000000..ceada5663ff1
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/GalleryImageProperties.java
@@ -0,0 +1,326 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurestackhci.models.CloudInitDataSource;
+import com.azure.resourcemanager.azurestackhci.models.GalleryImageIdentifier;
+import com.azure.resourcemanager.azurestackhci.models.GalleryImageStatus;
+import com.azure.resourcemanager.azurestackhci.models.GalleryImageVersion;
+import com.azure.resourcemanager.azurestackhci.models.HyperVGeneration;
+import com.azure.resourcemanager.azurestackhci.models.OperatingSystemTypes;
+import com.azure.resourcemanager.azurestackhci.models.ProvisioningStateEnum;
+import java.io.IOException;
+
+/**
+ * Properties under the gallery image resource.
+ */
+@Fluent
+public final class GalleryImageProperties implements JsonSerializable {
+ /*
+ * Storage ContainerID of the storage container to be used for gallery image
+ */
+ private String containerId;
+
+ /*
+ * location of the image the gallery image should be created from
+ */
+ private String imagePath;
+
+ /*
+ * Operating system type that the gallery image uses [Windows, Linux]
+ */
+ private OperatingSystemTypes osType;
+
+ /*
+ * Datasource for the gallery image when provisioning with cloud-init [NoCloud, Azure]
+ */
+ private CloudInitDataSource cloudInitDataSource;
+
+ /*
+ * The hypervisor generation of the Virtual Machine [V1, V2]
+ */
+ private HyperVGeneration hyperVGeneration;
+
+ /*
+ * This is the gallery image definition identifier.
+ */
+ private GalleryImageIdentifier identifier;
+
+ /*
+ * Specifies information about the gallery image version that you want to create or update.
+ */
+ private GalleryImageVersion version;
+
+ /*
+ * Provisioning state of the gallery image.
+ */
+ private ProvisioningStateEnum provisioningState;
+
+ /*
+ * The observed state of gallery images
+ */
+ private GalleryImageStatus status;
+
+ /**
+ * Creates an instance of GalleryImageProperties class.
+ */
+ public GalleryImageProperties() {
+ }
+
+ /**
+ * Get the containerId property: Storage ContainerID of the storage container to be used for gallery image.
+ *
+ * @return the containerId value.
+ */
+ public String containerId() {
+ return this.containerId;
+ }
+
+ /**
+ * Set the containerId property: Storage ContainerID of the storage container to be used for gallery image.
+ *
+ * @param containerId the containerId value to set.
+ * @return the GalleryImageProperties object itself.
+ */
+ public GalleryImageProperties withContainerId(String containerId) {
+ this.containerId = containerId;
+ return this;
+ }
+
+ /**
+ * Get the imagePath property: location of the image the gallery image should be created from.
+ *
+ * @return the imagePath value.
+ */
+ public String imagePath() {
+ return this.imagePath;
+ }
+
+ /**
+ * Set the imagePath property: location of the image the gallery image should be created from.
+ *
+ * @param imagePath the imagePath value to set.
+ * @return the GalleryImageProperties object itself.
+ */
+ public GalleryImageProperties withImagePath(String imagePath) {
+ this.imagePath = imagePath;
+ return this;
+ }
+
+ /**
+ * Get the osType property: Operating system type that the gallery image uses [Windows, Linux].
+ *
+ * @return the osType value.
+ */
+ public OperatingSystemTypes osType() {
+ return this.osType;
+ }
+
+ /**
+ * Set the osType property: Operating system type that the gallery image uses [Windows, Linux].
+ *
+ * @param osType the osType value to set.
+ * @return the GalleryImageProperties object itself.
+ */
+ public GalleryImageProperties withOsType(OperatingSystemTypes osType) {
+ this.osType = osType;
+ return this;
+ }
+
+ /**
+ * Get the cloudInitDataSource property: Datasource for the gallery image when provisioning with cloud-init
+ * [NoCloud, Azure].
+ *
+ * @return the cloudInitDataSource value.
+ */
+ public CloudInitDataSource cloudInitDataSource() {
+ return this.cloudInitDataSource;
+ }
+
+ /**
+ * Set the cloudInitDataSource property: Datasource for the gallery image when provisioning with cloud-init
+ * [NoCloud, Azure].
+ *
+ * @param cloudInitDataSource the cloudInitDataSource value to set.
+ * @return the GalleryImageProperties object itself.
+ */
+ public GalleryImageProperties withCloudInitDataSource(CloudInitDataSource cloudInitDataSource) {
+ this.cloudInitDataSource = cloudInitDataSource;
+ return this;
+ }
+
+ /**
+ * Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine [V1, V2].
+ *
+ * @return the hyperVGeneration value.
+ */
+ public HyperVGeneration hyperVGeneration() {
+ return this.hyperVGeneration;
+ }
+
+ /**
+ * Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine [V1, V2].
+ *
+ * @param hyperVGeneration the hyperVGeneration value to set.
+ * @return the GalleryImageProperties object itself.
+ */
+ public GalleryImageProperties withHyperVGeneration(HyperVGeneration hyperVGeneration) {
+ this.hyperVGeneration = hyperVGeneration;
+ return this;
+ }
+
+ /**
+ * Get the identifier property: This is the gallery image definition identifier.
+ *
+ * @return the identifier value.
+ */
+ public GalleryImageIdentifier identifier() {
+ return this.identifier;
+ }
+
+ /**
+ * Set the identifier property: This is the gallery image definition identifier.
+ *
+ * @param identifier the identifier value to set.
+ * @return the GalleryImageProperties object itself.
+ */
+ public GalleryImageProperties withIdentifier(GalleryImageIdentifier identifier) {
+ this.identifier = identifier;
+ return this;
+ }
+
+ /**
+ * Get the version property: Specifies information about the gallery image version that you want to create or
+ * update.
+ *
+ * @return the version value.
+ */
+ public GalleryImageVersion version() {
+ return this.version;
+ }
+
+ /**
+ * Set the version property: Specifies information about the gallery image version that you want to create or
+ * update.
+ *
+ * @param version the version value to set.
+ * @return the GalleryImageProperties object itself.
+ */
+ public GalleryImageProperties withVersion(GalleryImageVersion version) {
+ this.version = version;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the gallery image.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningStateEnum provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the status property: The observed state of gallery images.
+ *
+ * @return the status value.
+ */
+ public GalleryImageStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (osType() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property osType in model GalleryImageProperties"));
+ }
+ if (identifier() != null) {
+ identifier().validate();
+ }
+ if (version() != null) {
+ version().validate();
+ }
+ if (status() != null) {
+ status().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(GalleryImageProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("osType", this.osType == null ? null : this.osType.toString());
+ jsonWriter.writeStringField("containerId", this.containerId);
+ jsonWriter.writeStringField("imagePath", this.imagePath);
+ jsonWriter.writeStringField("cloudInitDataSource",
+ this.cloudInitDataSource == null ? null : this.cloudInitDataSource.toString());
+ jsonWriter.writeStringField("hyperVGeneration",
+ this.hyperVGeneration == null ? null : this.hyperVGeneration.toString());
+ jsonWriter.writeJsonField("identifier", this.identifier);
+ jsonWriter.writeJsonField("version", this.version);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of GalleryImageProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of GalleryImageProperties if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the GalleryImageProperties.
+ */
+ public static GalleryImageProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ GalleryImageProperties deserializedGalleryImageProperties = new GalleryImageProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("osType".equals(fieldName)) {
+ deserializedGalleryImageProperties.osType = OperatingSystemTypes.fromString(reader.getString());
+ } else if ("containerId".equals(fieldName)) {
+ deserializedGalleryImageProperties.containerId = reader.getString();
+ } else if ("imagePath".equals(fieldName)) {
+ deserializedGalleryImageProperties.imagePath = reader.getString();
+ } else if ("cloudInitDataSource".equals(fieldName)) {
+ deserializedGalleryImageProperties.cloudInitDataSource
+ = CloudInitDataSource.fromString(reader.getString());
+ } else if ("hyperVGeneration".equals(fieldName)) {
+ deserializedGalleryImageProperties.hyperVGeneration
+ = HyperVGeneration.fromString(reader.getString());
+ } else if ("identifier".equals(fieldName)) {
+ deserializedGalleryImageProperties.identifier = GalleryImageIdentifier.fromJson(reader);
+ } else if ("version".equals(fieldName)) {
+ deserializedGalleryImageProperties.version = GalleryImageVersion.fromJson(reader);
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedGalleryImageProperties.provisioningState
+ = ProvisioningStateEnum.fromString(reader.getString());
+ } else if ("status".equals(fieldName)) {
+ deserializedGalleryImageProperties.status = GalleryImageStatus.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedGalleryImageProperties;
+ });
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/GalleryImageVersionProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/GalleryImageVersionProperties.java
new file mode 100644
index 000000000000..a22bd19d6190
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/GalleryImageVersionProperties.java
@@ -0,0 +1,107 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurestackhci.models.GalleryImageVersionStorageProfile;
+import java.io.IOException;
+
+/**
+ * Describes the properties of a gallery image version.
+ */
+@Fluent
+public final class GalleryImageVersionProperties implements JsonSerializable {
+ /*
+ * This is the storage profile of a Gallery Image Version.
+ */
+ private GalleryImageVersionStorageProfile storageProfile;
+
+ /**
+ * Creates an instance of GalleryImageVersionProperties class.
+ */
+ public GalleryImageVersionProperties() {
+ }
+
+ /**
+ * Get the storageProfile property: This is the storage profile of a Gallery Image Version.
+ *
+ * @return the storageProfile value.
+ */
+ public GalleryImageVersionStorageProfile storageProfile() {
+ return this.storageProfile;
+ }
+
+ /**
+ * Set the storageProfile property: This is the storage profile of a Gallery Image Version.
+ *
+ * @param storageProfile the storageProfile value to set.
+ * @return the GalleryImageVersionProperties object itself.
+ */
+ public GalleryImageVersionProperties withStorageProfile(GalleryImageVersionStorageProfile storageProfile) {
+ this.storageProfile = storageProfile;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (storageProfile() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property storageProfile in model GalleryImageVersionProperties"));
+ } else {
+ storageProfile().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(GalleryImageVersionProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("storageProfile", this.storageProfile);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of GalleryImageVersionProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of GalleryImageVersionProperties if the JsonReader was pointing to an instance of it, or null
+ * if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the GalleryImageVersionProperties.
+ */
+ public static GalleryImageVersionProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ GalleryImageVersionProperties deserializedGalleryImageVersionProperties
+ = new GalleryImageVersionProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("storageProfile".equals(fieldName)) {
+ deserializedGalleryImageVersionProperties.storageProfile
+ = GalleryImageVersionStorageProfile.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedGalleryImageVersionProperties;
+ });
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/GalleryImagesInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/GalleryImagesInner.java
new file mode 100644
index 000000000000..9f6711ed93b6
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/GalleryImagesInner.java
@@ -0,0 +1,402 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurestackhci.models.CloudInitDataSource;
+import com.azure.resourcemanager.azurestackhci.models.ExtendedLocation;
+import com.azure.resourcemanager.azurestackhci.models.GalleryImageIdentifier;
+import com.azure.resourcemanager.azurestackhci.models.GalleryImageStatus;
+import com.azure.resourcemanager.azurestackhci.models.GalleryImageVersion;
+import com.azure.resourcemanager.azurestackhci.models.HyperVGeneration;
+import com.azure.resourcemanager.azurestackhci.models.OperatingSystemTypes;
+import com.azure.resourcemanager.azurestackhci.models.ProvisioningStateEnum;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * The gallery images resource definition.
+ */
+@Fluent
+public final class GalleryImagesInner extends Resource {
+ /*
+ * Properties under the gallery image resource
+ */
+ private GalleryImageProperties innerProperties;
+
+ /*
+ * The extendedLocation of the resource.
+ */
+ private ExtendedLocation extendedLocation;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of GalleryImagesInner class.
+ */
+ public GalleryImagesInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Properties under the gallery image resource.
+ *
+ * @return the innerProperties value.
+ */
+ private GalleryImageProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the extendedLocation property: The extendedLocation of the resource.
+ *
+ * @return the extendedLocation value.
+ */
+ public ExtendedLocation extendedLocation() {
+ return this.extendedLocation;
+ }
+
+ /**
+ * Set the extendedLocation property: The extendedLocation of the resource.
+ *
+ * @param extendedLocation the extendedLocation value to set.
+ * @return the GalleryImagesInner object itself.
+ */
+ public GalleryImagesInner withExtendedLocation(ExtendedLocation extendedLocation) {
+ this.extendedLocation = extendedLocation;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public GalleryImagesInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public GalleryImagesInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the containerId property: Storage ContainerID of the storage container to be used for gallery image.
+ *
+ * @return the containerId value.
+ */
+ public String containerId() {
+ return this.innerProperties() == null ? null : this.innerProperties().containerId();
+ }
+
+ /**
+ * Set the containerId property: Storage ContainerID of the storage container to be used for gallery image.
+ *
+ * @param containerId the containerId value to set.
+ * @return the GalleryImagesInner object itself.
+ */
+ public GalleryImagesInner withContainerId(String containerId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new GalleryImageProperties();
+ }
+ this.innerProperties().withContainerId(containerId);
+ return this;
+ }
+
+ /**
+ * Get the imagePath property: location of the image the gallery image should be created from.
+ *
+ * @return the imagePath value.
+ */
+ public String imagePath() {
+ return this.innerProperties() == null ? null : this.innerProperties().imagePath();
+ }
+
+ /**
+ * Set the imagePath property: location of the image the gallery image should be created from.
+ *
+ * @param imagePath the imagePath value to set.
+ * @return the GalleryImagesInner object itself.
+ */
+ public GalleryImagesInner withImagePath(String imagePath) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new GalleryImageProperties();
+ }
+ this.innerProperties().withImagePath(imagePath);
+ return this;
+ }
+
+ /**
+ * Get the osType property: Operating system type that the gallery image uses [Windows, Linux].
+ *
+ * @return the osType value.
+ */
+ public OperatingSystemTypes osType() {
+ return this.innerProperties() == null ? null : this.innerProperties().osType();
+ }
+
+ /**
+ * Set the osType property: Operating system type that the gallery image uses [Windows, Linux].
+ *
+ * @param osType the osType value to set.
+ * @return the GalleryImagesInner object itself.
+ */
+ public GalleryImagesInner withOsType(OperatingSystemTypes osType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new GalleryImageProperties();
+ }
+ this.innerProperties().withOsType(osType);
+ return this;
+ }
+
+ /**
+ * Get the cloudInitDataSource property: Datasource for the gallery image when provisioning with cloud-init
+ * [NoCloud, Azure].
+ *
+ * @return the cloudInitDataSource value.
+ */
+ public CloudInitDataSource cloudInitDataSource() {
+ return this.innerProperties() == null ? null : this.innerProperties().cloudInitDataSource();
+ }
+
+ /**
+ * Set the cloudInitDataSource property: Datasource for the gallery image when provisioning with cloud-init
+ * [NoCloud, Azure].
+ *
+ * @param cloudInitDataSource the cloudInitDataSource value to set.
+ * @return the GalleryImagesInner object itself.
+ */
+ public GalleryImagesInner withCloudInitDataSource(CloudInitDataSource cloudInitDataSource) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new GalleryImageProperties();
+ }
+ this.innerProperties().withCloudInitDataSource(cloudInitDataSource);
+ return this;
+ }
+
+ /**
+ * Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine [V1, V2].
+ *
+ * @return the hyperVGeneration value.
+ */
+ public HyperVGeneration hyperVGeneration() {
+ return this.innerProperties() == null ? null : this.innerProperties().hyperVGeneration();
+ }
+
+ /**
+ * Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine [V1, V2].
+ *
+ * @param hyperVGeneration the hyperVGeneration value to set.
+ * @return the GalleryImagesInner object itself.
+ */
+ public GalleryImagesInner withHyperVGeneration(HyperVGeneration hyperVGeneration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new GalleryImageProperties();
+ }
+ this.innerProperties().withHyperVGeneration(hyperVGeneration);
+ return this;
+ }
+
+ /**
+ * Get the identifier property: This is the gallery image definition identifier.
+ *
+ * @return the identifier value.
+ */
+ public GalleryImageIdentifier identifier() {
+ return this.innerProperties() == null ? null : this.innerProperties().identifier();
+ }
+
+ /**
+ * Set the identifier property: This is the gallery image definition identifier.
+ *
+ * @param identifier the identifier value to set.
+ * @return the GalleryImagesInner object itself.
+ */
+ public GalleryImagesInner withIdentifier(GalleryImageIdentifier identifier) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new GalleryImageProperties();
+ }
+ this.innerProperties().withIdentifier(identifier);
+ return this;
+ }
+
+ /**
+ * Get the version property: Specifies information about the gallery image version that you want to create or
+ * update.
+ *
+ * @return the version value.
+ */
+ public GalleryImageVersion version() {
+ return this.innerProperties() == null ? null : this.innerProperties().version();
+ }
+
+ /**
+ * Set the version property: Specifies information about the gallery image version that you want to create or
+ * update.
+ *
+ * @param version the version value to set.
+ * @return the GalleryImagesInner object itself.
+ */
+ public GalleryImagesInner withVersion(GalleryImageVersion version) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new GalleryImageProperties();
+ }
+ this.innerProperties().withVersion(version);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the gallery image.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningStateEnum provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the status property: The observed state of gallery images.
+ *
+ * @return the status value.
+ */
+ public GalleryImageStatus status() {
+ return this.innerProperties() == null ? null : this.innerProperties().status();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ if (extendedLocation() != null) {
+ extendedLocation().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeJsonField("extendedLocation", this.extendedLocation);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of GalleryImagesInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of GalleryImagesInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the GalleryImagesInner.
+ */
+ public static GalleryImagesInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ GalleryImagesInner deserializedGalleryImagesInner = new GalleryImagesInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedGalleryImagesInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedGalleryImagesInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedGalleryImagesInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedGalleryImagesInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedGalleryImagesInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedGalleryImagesInner.innerProperties = GalleryImageProperties.fromJson(reader);
+ } else if ("extendedLocation".equals(fieldName)) {
+ deserializedGalleryImagesInner.extendedLocation = ExtendedLocation.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedGalleryImagesInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedGalleryImagesInner;
+ });
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/GuestAgentInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/GuestAgentInner.java
new file mode 100644
index 000000000000..619826a764de
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/GuestAgentInner.java
@@ -0,0 +1,227 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurestackhci.models.GuestCredential;
+import com.azure.resourcemanager.azurestackhci.models.ProvisioningAction;
+import java.io.IOException;
+
+/**
+ * Defines the GuestAgent.
+ */
+@Fluent
+public final class GuestAgentInner extends ProxyResource {
+ /*
+ * Resource properties.
+ */
+ private GuestAgentProperties innerProperties = new GuestAgentProperties();
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of GuestAgentInner class.
+ */
+ public GuestAgentInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
+ */
+ private GuestAgentProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the credentials property: Username / Password Credentials to provision guest agent.
+ *
+ * @return the credentials value.
+ */
+ public GuestCredential credentials() {
+ return this.innerProperties() == null ? null : this.innerProperties().credentials();
+ }
+
+ /**
+ * Set the credentials property: Username / Password Credentials to provision guest agent.
+ *
+ * @param credentials the credentials value to set.
+ * @return the GuestAgentInner object itself.
+ */
+ public GuestAgentInner withCredentials(GuestCredential credentials) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new GuestAgentProperties();
+ }
+ this.innerProperties().withCredentials(credentials);
+ return this;
+ }
+
+ /**
+ * Get the provisioningAction property: The guest agent provisioning action.
+ *
+ * @return the provisioningAction value.
+ */
+ public ProvisioningAction provisioningAction() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningAction();
+ }
+
+ /**
+ * Set the provisioningAction property: The guest agent provisioning action.
+ *
+ * @param provisioningAction the provisioningAction value to set.
+ * @return the GuestAgentInner object itself.
+ */
+ public GuestAgentInner withProvisioningAction(ProvisioningAction provisioningAction) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new GuestAgentProperties();
+ }
+ this.innerProperties().withProvisioningAction(provisioningAction);
+ return this;
+ }
+
+ /**
+ * Get the status property: The guest agent status.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.innerProperties() == null ? null : this.innerProperties().status();
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() == null) {
+ throw LOGGER.atError()
+ .log(
+ new IllegalArgumentException("Missing required property innerProperties in model GuestAgentInner"));
+ } else {
+ innerProperties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(GuestAgentInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of GuestAgentInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of GuestAgentInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the GuestAgentInner.
+ */
+ public static GuestAgentInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ GuestAgentInner deserializedGuestAgentInner = new GuestAgentInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedGuestAgentInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedGuestAgentInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedGuestAgentInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedGuestAgentInner.innerProperties = GuestAgentProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedGuestAgentInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedGuestAgentInner;
+ });
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/GuestAgentProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/GuestAgentProperties.java
new file mode 100644
index 000000000000..c3018aa95d92
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/GuestAgentProperties.java
@@ -0,0 +1,160 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurestackhci.models.GuestCredential;
+import com.azure.resourcemanager.azurestackhci.models.ProvisioningAction;
+import java.io.IOException;
+
+/**
+ * Defines the resource properties.
+ */
+@Fluent
+public final class GuestAgentProperties implements JsonSerializable {
+ /*
+ * Username / Password Credentials to provision guest agent.
+ */
+ private GuestCredential credentials;
+
+ /*
+ * The guest agent provisioning action.
+ */
+ private ProvisioningAction provisioningAction;
+
+ /*
+ * The guest agent status.
+ */
+ private String status;
+
+ /*
+ * The provisioning state.
+ */
+ private String provisioningState;
+
+ /**
+ * Creates an instance of GuestAgentProperties class.
+ */
+ public GuestAgentProperties() {
+ }
+
+ /**
+ * Get the credentials property: Username / Password Credentials to provision guest agent.
+ *
+ * @return the credentials value.
+ */
+ public GuestCredential credentials() {
+ return this.credentials;
+ }
+
+ /**
+ * Set the credentials property: Username / Password Credentials to provision guest agent.
+ *
+ * @param credentials the credentials value to set.
+ * @return the GuestAgentProperties object itself.
+ */
+ public GuestAgentProperties withCredentials(GuestCredential credentials) {
+ this.credentials = credentials;
+ return this;
+ }
+
+ /**
+ * Get the provisioningAction property: The guest agent provisioning action.
+ *
+ * @return the provisioningAction value.
+ */
+ public ProvisioningAction provisioningAction() {
+ return this.provisioningAction;
+ }
+
+ /**
+ * Set the provisioningAction property: The guest agent provisioning action.
+ *
+ * @param provisioningAction the provisioningAction value to set.
+ * @return the GuestAgentProperties object itself.
+ */
+ public GuestAgentProperties withProvisioningAction(ProvisioningAction provisioningAction) {
+ this.provisioningAction = provisioningAction;
+ return this;
+ }
+
+ /**
+ * Get the status property: The guest agent status.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.status;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (credentials() != null) {
+ credentials().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("credentials", this.credentials);
+ jsonWriter.writeStringField("provisioningAction",
+ this.provisioningAction == null ? null : this.provisioningAction.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of GuestAgentProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of GuestAgentProperties if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the GuestAgentProperties.
+ */
+ public static GuestAgentProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ GuestAgentProperties deserializedGuestAgentProperties = new GuestAgentProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("credentials".equals(fieldName)) {
+ deserializedGuestAgentProperties.credentials = GuestCredential.fromJson(reader);
+ } else if ("provisioningAction".equals(fieldName)) {
+ deserializedGuestAgentProperties.provisioningAction
+ = ProvisioningAction.fromString(reader.getString());
+ } else if ("status".equals(fieldName)) {
+ deserializedGuestAgentProperties.status = reader.getString();
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedGuestAgentProperties.provisioningState = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedGuestAgentProperties;
+ });
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/HciUpdateInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/HciUpdateInner.java
index c666b15899a7..8065fe26a1ba 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/HciUpdateInner.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/HciUpdateInner.java
@@ -43,9 +43,9 @@ public final class HciUpdateInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -53,9 +53,9 @@ public final class HciUpdateInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of HciUpdateInner class.
@@ -102,13 +102,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -122,13 +122,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
@@ -186,29 +186,6 @@ public HciUpdateInner withDescription(String description) {
return this;
}
- /**
- * Get the minSbeVersionRequired property: Minimum Sbe Version of the update.
- *
- * @return the minSbeVersionRequired value.
- */
- public String minSbeVersionRequired() {
- return this.innerProperties() == null ? null : this.innerProperties().minSbeVersionRequired();
- }
-
- /**
- * Set the minSbeVersionRequired property: Minimum Sbe Version of the update.
- *
- * @param minSbeVersionRequired the minSbeVersionRequired value to set.
- * @return the HciUpdateInner object itself.
- */
- public HciUpdateInner withMinSbeVersionRequired(String minSbeVersionRequired) {
- if (this.innerProperties() == null) {
- this.innerProperties = new UpdateProperties();
- }
- this.innerProperties().withMinSbeVersionRequired(minSbeVersionRequired);
- return this;
- }
-
/**
* Get the state property: State of the update as it relates to this stamp.
*
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/HybridIdentityMetadataInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/HybridIdentityMetadataInner.java
new file mode 100644
index 000000000000..01c72d674e1f
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/HybridIdentityMetadataInner.java
@@ -0,0 +1,227 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurestackhci.models.Identity;
+import java.io.IOException;
+
+/**
+ * Defines the HybridIdentityMetadata.
+ */
+@Fluent
+public final class HybridIdentityMetadataInner extends ProxyResource {
+ /*
+ * Resource properties.
+ */
+ private HybridIdentityMetadataProperties innerProperties = new HybridIdentityMetadataProperties();
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of HybridIdentityMetadataInner class.
+ */
+ public HybridIdentityMetadataInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
+ */
+ private HybridIdentityMetadataProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the resourceUid property: The unique identifier for the resource.
+ *
+ * @return the resourceUid value.
+ */
+ public String resourceUid() {
+ return this.innerProperties() == null ? null : this.innerProperties().resourceUid();
+ }
+
+ /**
+ * Set the resourceUid property: The unique identifier for the resource.
+ *
+ * @param resourceUid the resourceUid value to set.
+ * @return the HybridIdentityMetadataInner object itself.
+ */
+ public HybridIdentityMetadataInner withResourceUid(String resourceUid) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new HybridIdentityMetadataProperties();
+ }
+ this.innerProperties().withResourceUid(resourceUid);
+ return this;
+ }
+
+ /**
+ * Get the publicKey property: The Public Key.
+ *
+ * @return the publicKey value.
+ */
+ public String publicKey() {
+ return this.innerProperties() == null ? null : this.innerProperties().publicKey();
+ }
+
+ /**
+ * Set the publicKey property: The Public Key.
+ *
+ * @param publicKey the publicKey value to set.
+ * @return the HybridIdentityMetadataInner object itself.
+ */
+ public HybridIdentityMetadataInner withPublicKey(String publicKey) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new HybridIdentityMetadataProperties();
+ }
+ this.innerProperties().withPublicKey(publicKey);
+ return this;
+ }
+
+ /**
+ * Get the identity property: Identity for the resource.
+ *
+ * @return the identity value.
+ */
+ public Identity identity() {
+ return this.innerProperties() == null ? null : this.innerProperties().identity();
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property innerProperties in model HybridIdentityMetadataInner"));
+ } else {
+ innerProperties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(HybridIdentityMetadataInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of HybridIdentityMetadataInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of HybridIdentityMetadataInner if the JsonReader was pointing to an instance of it, or null
+ * if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the HybridIdentityMetadataInner.
+ */
+ public static HybridIdentityMetadataInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ HybridIdentityMetadataInner deserializedHybridIdentityMetadataInner = new HybridIdentityMetadataInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedHybridIdentityMetadataInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedHybridIdentityMetadataInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedHybridIdentityMetadataInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedHybridIdentityMetadataInner.innerProperties
+ = HybridIdentityMetadataProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedHybridIdentityMetadataInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedHybridIdentityMetadataInner;
+ });
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/HybridIdentityMetadataProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/HybridIdentityMetadataProperties.java
new file mode 100644
index 000000000000..3b1900099357
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/HybridIdentityMetadataProperties.java
@@ -0,0 +1,158 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurestackhci.models.Identity;
+import java.io.IOException;
+
+/**
+ * Defines the resource properties.
+ */
+@Fluent
+public final class HybridIdentityMetadataProperties implements JsonSerializable {
+ /*
+ * The unique identifier for the resource.
+ */
+ private String resourceUid;
+
+ /*
+ * The Public Key.
+ */
+ private String publicKey;
+
+ /*
+ * Identity for the resource.
+ */
+ private Identity identity;
+
+ /*
+ * The provisioning state.
+ */
+ private String provisioningState;
+
+ /**
+ * Creates an instance of HybridIdentityMetadataProperties class.
+ */
+ public HybridIdentityMetadataProperties() {
+ }
+
+ /**
+ * Get the resourceUid property: The unique identifier for the resource.
+ *
+ * @return the resourceUid value.
+ */
+ public String resourceUid() {
+ return this.resourceUid;
+ }
+
+ /**
+ * Set the resourceUid property: The unique identifier for the resource.
+ *
+ * @param resourceUid the resourceUid value to set.
+ * @return the HybridIdentityMetadataProperties object itself.
+ */
+ public HybridIdentityMetadataProperties withResourceUid(String resourceUid) {
+ this.resourceUid = resourceUid;
+ return this;
+ }
+
+ /**
+ * Get the publicKey property: The Public Key.
+ *
+ * @return the publicKey value.
+ */
+ public String publicKey() {
+ return this.publicKey;
+ }
+
+ /**
+ * Set the publicKey property: The Public Key.
+ *
+ * @param publicKey the publicKey value to set.
+ * @return the HybridIdentityMetadataProperties object itself.
+ */
+ public HybridIdentityMetadataProperties withPublicKey(String publicKey) {
+ this.publicKey = publicKey;
+ return this;
+ }
+
+ /**
+ * Get the identity property: Identity for the resource.
+ *
+ * @return the identity value.
+ */
+ public Identity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (identity() != null) {
+ identity().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("resourceUid", this.resourceUid);
+ jsonWriter.writeStringField("publicKey", this.publicKey);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of HybridIdentityMetadataProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of HybridIdentityMetadataProperties if the JsonReader was pointing to an instance of it, or
+ * null if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the HybridIdentityMetadataProperties.
+ */
+ public static HybridIdentityMetadataProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ HybridIdentityMetadataProperties deserializedHybridIdentityMetadataProperties
+ = new HybridIdentityMetadataProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("resourceUid".equals(fieldName)) {
+ deserializedHybridIdentityMetadataProperties.resourceUid = reader.getString();
+ } else if ("publicKey".equals(fieldName)) {
+ deserializedHybridIdentityMetadataProperties.publicKey = reader.getString();
+ } else if ("identity".equals(fieldName)) {
+ deserializedHybridIdentityMetadataProperties.identity = Identity.fromJson(reader);
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedHybridIdentityMetadataProperties.provisioningState = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedHybridIdentityMetadataProperties;
+ });
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/LogicalNetworkProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/LogicalNetworkProperties.java
new file mode 100644
index 000000000000..5b55ca8c4e13
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/LogicalNetworkProperties.java
@@ -0,0 +1,201 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurestackhci.models.LogicalNetworkPropertiesDhcpOptions;
+import com.azure.resourcemanager.azurestackhci.models.LogicalNetworkStatus;
+import com.azure.resourcemanager.azurestackhci.models.ProvisioningStateEnum;
+import com.azure.resourcemanager.azurestackhci.models.Subnet;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * Properties under the logical network resource.
+ */
+@Fluent
+public final class LogicalNetworkProperties implements JsonSerializable {
+ /*
+ * DhcpOptions contains an array of DNS servers available to VMs deployed in the logical network. Standard DHCP
+ * option for a subnet overrides logical network DHCP options.
+ */
+ private LogicalNetworkPropertiesDhcpOptions dhcpOptions;
+
+ /*
+ * Subnet - list of subnets under the logical network
+ */
+ private List subnets;
+
+ /*
+ * Provisioning state of the logical network.
+ */
+ private ProvisioningStateEnum provisioningState;
+
+ /*
+ * name of the network switch to be used for VMs
+ */
+ private String vmSwitchName;
+
+ /*
+ * The observed state of logical networks
+ */
+ private LogicalNetworkStatus status;
+
+ /**
+ * Creates an instance of LogicalNetworkProperties class.
+ */
+ public LogicalNetworkProperties() {
+ }
+
+ /**
+ * Get the dhcpOptions property: DhcpOptions contains an array of DNS servers available to VMs deployed in the
+ * logical network. Standard DHCP option for a subnet overrides logical network DHCP options.
+ *
+ * @return the dhcpOptions value.
+ */
+ public LogicalNetworkPropertiesDhcpOptions dhcpOptions() {
+ return this.dhcpOptions;
+ }
+
+ /**
+ * Set the dhcpOptions property: DhcpOptions contains an array of DNS servers available to VMs deployed in the
+ * logical network. Standard DHCP option for a subnet overrides logical network DHCP options.
+ *
+ * @param dhcpOptions the dhcpOptions value to set.
+ * @return the LogicalNetworkProperties object itself.
+ */
+ public LogicalNetworkProperties withDhcpOptions(LogicalNetworkPropertiesDhcpOptions dhcpOptions) {
+ this.dhcpOptions = dhcpOptions;
+ return this;
+ }
+
+ /**
+ * Get the subnets property: Subnet - list of subnets under the logical network.
+ *
+ * @return the subnets value.
+ */
+ public List subnets() {
+ return this.subnets;
+ }
+
+ /**
+ * Set the subnets property: Subnet - list of subnets under the logical network.
+ *
+ * @param subnets the subnets value to set.
+ * @return the LogicalNetworkProperties object itself.
+ */
+ public LogicalNetworkProperties withSubnets(List subnets) {
+ this.subnets = subnets;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the logical network.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningStateEnum provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the vmSwitchName property: name of the network switch to be used for VMs.
+ *
+ * @return the vmSwitchName value.
+ */
+ public String vmSwitchName() {
+ return this.vmSwitchName;
+ }
+
+ /**
+ * Set the vmSwitchName property: name of the network switch to be used for VMs.
+ *
+ * @param vmSwitchName the vmSwitchName value to set.
+ * @return the LogicalNetworkProperties object itself.
+ */
+ public LogicalNetworkProperties withVmSwitchName(String vmSwitchName) {
+ this.vmSwitchName = vmSwitchName;
+ return this;
+ }
+
+ /**
+ * Get the status property: The observed state of logical networks.
+ *
+ * @return the status value.
+ */
+ public LogicalNetworkStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (dhcpOptions() != null) {
+ dhcpOptions().validate();
+ }
+ if (subnets() != null) {
+ subnets().forEach(e -> e.validate());
+ }
+ if (status() != null) {
+ status().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("dhcpOptions", this.dhcpOptions);
+ jsonWriter.writeArrayField("subnets", this.subnets, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("vmSwitchName", this.vmSwitchName);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of LogicalNetworkProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of LogicalNetworkProperties if the JsonReader was pointing to an instance of it, or null if
+ * it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the LogicalNetworkProperties.
+ */
+ public static LogicalNetworkProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ LogicalNetworkProperties deserializedLogicalNetworkProperties = new LogicalNetworkProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("dhcpOptions".equals(fieldName)) {
+ deserializedLogicalNetworkProperties.dhcpOptions
+ = LogicalNetworkPropertiesDhcpOptions.fromJson(reader);
+ } else if ("subnets".equals(fieldName)) {
+ List subnets = reader.readArray(reader1 -> Subnet.fromJson(reader1));
+ deserializedLogicalNetworkProperties.subnets = subnets;
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedLogicalNetworkProperties.provisioningState
+ = ProvisioningStateEnum.fromString(reader.getString());
+ } else if ("vmSwitchName".equals(fieldName)) {
+ deserializedLogicalNetworkProperties.vmSwitchName = reader.getString();
+ } else if ("status".equals(fieldName)) {
+ deserializedLogicalNetworkProperties.status = LogicalNetworkStatus.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedLogicalNetworkProperties;
+ });
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/LogicalNetworksInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/LogicalNetworksInner.java
new file mode 100644
index 000000000000..60bd2d1cea8e
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/LogicalNetworksInner.java
@@ -0,0 +1,306 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurestackhci.models.ExtendedLocation;
+import com.azure.resourcemanager.azurestackhci.models.LogicalNetworkPropertiesDhcpOptions;
+import com.azure.resourcemanager.azurestackhci.models.LogicalNetworkStatus;
+import com.azure.resourcemanager.azurestackhci.models.ProvisioningStateEnum;
+import com.azure.resourcemanager.azurestackhci.models.Subnet;
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * The logical network resource definition.
+ */
+@Fluent
+public final class LogicalNetworksInner extends Resource {
+ /*
+ * Properties under the logical network resource
+ */
+ private LogicalNetworkProperties innerProperties;
+
+ /*
+ * The extendedLocation of the resource.
+ */
+ private ExtendedLocation extendedLocation;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of LogicalNetworksInner class.
+ */
+ public LogicalNetworksInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Properties under the logical network resource.
+ *
+ * @return the innerProperties value.
+ */
+ private LogicalNetworkProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the extendedLocation property: The extendedLocation of the resource.
+ *
+ * @return the extendedLocation value.
+ */
+ public ExtendedLocation extendedLocation() {
+ return this.extendedLocation;
+ }
+
+ /**
+ * Set the extendedLocation property: The extendedLocation of the resource.
+ *
+ * @param extendedLocation the extendedLocation value to set.
+ * @return the LogicalNetworksInner object itself.
+ */
+ public LogicalNetworksInner withExtendedLocation(ExtendedLocation extendedLocation) {
+ this.extendedLocation = extendedLocation;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public LogicalNetworksInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public LogicalNetworksInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the dhcpOptions property: DhcpOptions contains an array of DNS servers available to VMs deployed in the
+ * logical network. Standard DHCP option for a subnet overrides logical network DHCP options.
+ *
+ * @return the dhcpOptions value.
+ */
+ public LogicalNetworkPropertiesDhcpOptions dhcpOptions() {
+ return this.innerProperties() == null ? null : this.innerProperties().dhcpOptions();
+ }
+
+ /**
+ * Set the dhcpOptions property: DhcpOptions contains an array of DNS servers available to VMs deployed in the
+ * logical network. Standard DHCP option for a subnet overrides logical network DHCP options.
+ *
+ * @param dhcpOptions the dhcpOptions value to set.
+ * @return the LogicalNetworksInner object itself.
+ */
+ public LogicalNetworksInner withDhcpOptions(LogicalNetworkPropertiesDhcpOptions dhcpOptions) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LogicalNetworkProperties();
+ }
+ this.innerProperties().withDhcpOptions(dhcpOptions);
+ return this;
+ }
+
+ /**
+ * Get the subnets property: Subnet - list of subnets under the logical network.
+ *
+ * @return the subnets value.
+ */
+ public List subnets() {
+ return this.innerProperties() == null ? null : this.innerProperties().subnets();
+ }
+
+ /**
+ * Set the subnets property: Subnet - list of subnets under the logical network.
+ *
+ * @param subnets the subnets value to set.
+ * @return the LogicalNetworksInner object itself.
+ */
+ public LogicalNetworksInner withSubnets(List subnets) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LogicalNetworkProperties();
+ }
+ this.innerProperties().withSubnets(subnets);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the logical network.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningStateEnum provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the vmSwitchName property: name of the network switch to be used for VMs.
+ *
+ * @return the vmSwitchName value.
+ */
+ public String vmSwitchName() {
+ return this.innerProperties() == null ? null : this.innerProperties().vmSwitchName();
+ }
+
+ /**
+ * Set the vmSwitchName property: name of the network switch to be used for VMs.
+ *
+ * @param vmSwitchName the vmSwitchName value to set.
+ * @return the LogicalNetworksInner object itself.
+ */
+ public LogicalNetworksInner withVmSwitchName(String vmSwitchName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LogicalNetworkProperties();
+ }
+ this.innerProperties().withVmSwitchName(vmSwitchName);
+ return this;
+ }
+
+ /**
+ * Get the status property: The observed state of logical networks.
+ *
+ * @return the status value.
+ */
+ public LogicalNetworkStatus status() {
+ return this.innerProperties() == null ? null : this.innerProperties().status();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ if (extendedLocation() != null) {
+ extendedLocation().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeJsonField("extendedLocation", this.extendedLocation);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of LogicalNetworksInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of LogicalNetworksInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the LogicalNetworksInner.
+ */
+ public static LogicalNetworksInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ LogicalNetworksInner deserializedLogicalNetworksInner = new LogicalNetworksInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedLogicalNetworksInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedLogicalNetworksInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedLogicalNetworksInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedLogicalNetworksInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedLogicalNetworksInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedLogicalNetworksInner.innerProperties = LogicalNetworkProperties.fromJson(reader);
+ } else if ("extendedLocation".equals(fieldName)) {
+ deserializedLogicalNetworksInner.extendedLocation = ExtendedLocation.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedLogicalNetworksInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedLogicalNetworksInner;
+ });
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/MarketplaceGalleryImageProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/MarketplaceGalleryImageProperties.java
new file mode 100644
index 000000000000..ec68fa2c4182
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/MarketplaceGalleryImageProperties.java
@@ -0,0 +1,304 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurestackhci.models.CloudInitDataSource;
+import com.azure.resourcemanager.azurestackhci.models.GalleryImageIdentifier;
+import com.azure.resourcemanager.azurestackhci.models.GalleryImageVersion;
+import com.azure.resourcemanager.azurestackhci.models.HyperVGeneration;
+import com.azure.resourcemanager.azurestackhci.models.MarketplaceGalleryImageStatus;
+import com.azure.resourcemanager.azurestackhci.models.OperatingSystemTypes;
+import com.azure.resourcemanager.azurestackhci.models.ProvisioningStateEnum;
+import java.io.IOException;
+
+/**
+ * Properties under the marketplace gallery image resource.
+ */
+@Fluent
+public final class MarketplaceGalleryImageProperties implements JsonSerializable {
+ /*
+ * Storage ContainerID of the storage container to be used for marketplace gallery image
+ */
+ private String containerId;
+
+ /*
+ * Operating system type that the gallery image uses [Windows, Linux]
+ */
+ private OperatingSystemTypes osType;
+
+ /*
+ * Datasource for the gallery image when provisioning with cloud-init [NoCloud, Azure]
+ */
+ private CloudInitDataSource cloudInitDataSource;
+
+ /*
+ * The hypervisor generation of the Virtual Machine [V1, V2]
+ */
+ private HyperVGeneration hyperVGeneration;
+
+ /*
+ * This is the gallery image definition identifier.
+ */
+ private GalleryImageIdentifier identifier;
+
+ /*
+ * Specifies information about the gallery image version that you want to create or update.
+ */
+ private GalleryImageVersion version;
+
+ /*
+ * Provisioning state of the marketplace gallery image.
+ */
+ private ProvisioningStateEnum provisioningState;
+
+ /*
+ * The observed state of marketplace gallery images
+ */
+ private MarketplaceGalleryImageStatus status;
+
+ /**
+ * Creates an instance of MarketplaceGalleryImageProperties class.
+ */
+ public MarketplaceGalleryImageProperties() {
+ }
+
+ /**
+ * Get the containerId property: Storage ContainerID of the storage container to be used for marketplace gallery
+ * image.
+ *
+ * @return the containerId value.
+ */
+ public String containerId() {
+ return this.containerId;
+ }
+
+ /**
+ * Set the containerId property: Storage ContainerID of the storage container to be used for marketplace gallery
+ * image.
+ *
+ * @param containerId the containerId value to set.
+ * @return the MarketplaceGalleryImageProperties object itself.
+ */
+ public MarketplaceGalleryImageProperties withContainerId(String containerId) {
+ this.containerId = containerId;
+ return this;
+ }
+
+ /**
+ * Get the osType property: Operating system type that the gallery image uses [Windows, Linux].
+ *
+ * @return the osType value.
+ */
+ public OperatingSystemTypes osType() {
+ return this.osType;
+ }
+
+ /**
+ * Set the osType property: Operating system type that the gallery image uses [Windows, Linux].
+ *
+ * @param osType the osType value to set.
+ * @return the MarketplaceGalleryImageProperties object itself.
+ */
+ public MarketplaceGalleryImageProperties withOsType(OperatingSystemTypes osType) {
+ this.osType = osType;
+ return this;
+ }
+
+ /**
+ * Get the cloudInitDataSource property: Datasource for the gallery image when provisioning with cloud-init
+ * [NoCloud, Azure].
+ *
+ * @return the cloudInitDataSource value.
+ */
+ public CloudInitDataSource cloudInitDataSource() {
+ return this.cloudInitDataSource;
+ }
+
+ /**
+ * Set the cloudInitDataSource property: Datasource for the gallery image when provisioning with cloud-init
+ * [NoCloud, Azure].
+ *
+ * @param cloudInitDataSource the cloudInitDataSource value to set.
+ * @return the MarketplaceGalleryImageProperties object itself.
+ */
+ public MarketplaceGalleryImageProperties withCloudInitDataSource(CloudInitDataSource cloudInitDataSource) {
+ this.cloudInitDataSource = cloudInitDataSource;
+ return this;
+ }
+
+ /**
+ * Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine [V1, V2].
+ *
+ * @return the hyperVGeneration value.
+ */
+ public HyperVGeneration hyperVGeneration() {
+ return this.hyperVGeneration;
+ }
+
+ /**
+ * Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine [V1, V2].
+ *
+ * @param hyperVGeneration the hyperVGeneration value to set.
+ * @return the MarketplaceGalleryImageProperties object itself.
+ */
+ public MarketplaceGalleryImageProperties withHyperVGeneration(HyperVGeneration hyperVGeneration) {
+ this.hyperVGeneration = hyperVGeneration;
+ return this;
+ }
+
+ /**
+ * Get the identifier property: This is the gallery image definition identifier.
+ *
+ * @return the identifier value.
+ */
+ public GalleryImageIdentifier identifier() {
+ return this.identifier;
+ }
+
+ /**
+ * Set the identifier property: This is the gallery image definition identifier.
+ *
+ * @param identifier the identifier value to set.
+ * @return the MarketplaceGalleryImageProperties object itself.
+ */
+ public MarketplaceGalleryImageProperties withIdentifier(GalleryImageIdentifier identifier) {
+ this.identifier = identifier;
+ return this;
+ }
+
+ /**
+ * Get the version property: Specifies information about the gallery image version that you want to create or
+ * update.
+ *
+ * @return the version value.
+ */
+ public GalleryImageVersion version() {
+ return this.version;
+ }
+
+ /**
+ * Set the version property: Specifies information about the gallery image version that you want to create or
+ * update.
+ *
+ * @param version the version value to set.
+ * @return the MarketplaceGalleryImageProperties object itself.
+ */
+ public MarketplaceGalleryImageProperties withVersion(GalleryImageVersion version) {
+ this.version = version;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the marketplace gallery image.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningStateEnum provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the status property: The observed state of marketplace gallery images.
+ *
+ * @return the status value.
+ */
+ public MarketplaceGalleryImageStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (osType() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property osType in model MarketplaceGalleryImageProperties"));
+ }
+ if (identifier() != null) {
+ identifier().validate();
+ }
+ if (version() != null) {
+ version().validate();
+ }
+ if (status() != null) {
+ status().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(MarketplaceGalleryImageProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("osType", this.osType == null ? null : this.osType.toString());
+ jsonWriter.writeStringField("containerId", this.containerId);
+ jsonWriter.writeStringField("cloudInitDataSource",
+ this.cloudInitDataSource == null ? null : this.cloudInitDataSource.toString());
+ jsonWriter.writeStringField("hyperVGeneration",
+ this.hyperVGeneration == null ? null : this.hyperVGeneration.toString());
+ jsonWriter.writeJsonField("identifier", this.identifier);
+ jsonWriter.writeJsonField("version", this.version);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of MarketplaceGalleryImageProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of MarketplaceGalleryImageProperties if the JsonReader was pointing to an instance of it, or
+ * null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the MarketplaceGalleryImageProperties.
+ */
+ public static MarketplaceGalleryImageProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ MarketplaceGalleryImageProperties deserializedMarketplaceGalleryImageProperties
+ = new MarketplaceGalleryImageProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("osType".equals(fieldName)) {
+ deserializedMarketplaceGalleryImageProperties.osType
+ = OperatingSystemTypes.fromString(reader.getString());
+ } else if ("containerId".equals(fieldName)) {
+ deserializedMarketplaceGalleryImageProperties.containerId = reader.getString();
+ } else if ("cloudInitDataSource".equals(fieldName)) {
+ deserializedMarketplaceGalleryImageProperties.cloudInitDataSource
+ = CloudInitDataSource.fromString(reader.getString());
+ } else if ("hyperVGeneration".equals(fieldName)) {
+ deserializedMarketplaceGalleryImageProperties.hyperVGeneration
+ = HyperVGeneration.fromString(reader.getString());
+ } else if ("identifier".equals(fieldName)) {
+ deserializedMarketplaceGalleryImageProperties.identifier = GalleryImageIdentifier.fromJson(reader);
+ } else if ("version".equals(fieldName)) {
+ deserializedMarketplaceGalleryImageProperties.version = GalleryImageVersion.fromJson(reader);
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedMarketplaceGalleryImageProperties.provisioningState
+ = ProvisioningStateEnum.fromString(reader.getString());
+ } else if ("status".equals(fieldName)) {
+ deserializedMarketplaceGalleryImageProperties.status
+ = MarketplaceGalleryImageStatus.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedMarketplaceGalleryImageProperties;
+ });
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/MarketplaceGalleryImagesInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/MarketplaceGalleryImagesInner.java
new file mode 100644
index 000000000000..59f9ba508c51
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/MarketplaceGalleryImagesInner.java
@@ -0,0 +1,383 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurestackhci.models.CloudInitDataSource;
+import com.azure.resourcemanager.azurestackhci.models.ExtendedLocation;
+import com.azure.resourcemanager.azurestackhci.models.GalleryImageIdentifier;
+import com.azure.resourcemanager.azurestackhci.models.GalleryImageVersion;
+import com.azure.resourcemanager.azurestackhci.models.HyperVGeneration;
+import com.azure.resourcemanager.azurestackhci.models.MarketplaceGalleryImageStatus;
+import com.azure.resourcemanager.azurestackhci.models.OperatingSystemTypes;
+import com.azure.resourcemanager.azurestackhci.models.ProvisioningStateEnum;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * The marketplace gallery image resource definition.
+ */
+@Fluent
+public final class MarketplaceGalleryImagesInner extends Resource {
+ /*
+ * Properties under the marketplace gallery image resource
+ */
+ private MarketplaceGalleryImageProperties innerProperties;
+
+ /*
+ * The extendedLocation of the resource.
+ */
+ private ExtendedLocation extendedLocation;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of MarketplaceGalleryImagesInner class.
+ */
+ public MarketplaceGalleryImagesInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Properties under the marketplace gallery image resource.
+ *
+ * @return the innerProperties value.
+ */
+ private MarketplaceGalleryImageProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the extendedLocation property: The extendedLocation of the resource.
+ *
+ * @return the extendedLocation value.
+ */
+ public ExtendedLocation extendedLocation() {
+ return this.extendedLocation;
+ }
+
+ /**
+ * Set the extendedLocation property: The extendedLocation of the resource.
+ *
+ * @param extendedLocation the extendedLocation value to set.
+ * @return the MarketplaceGalleryImagesInner object itself.
+ */
+ public MarketplaceGalleryImagesInner withExtendedLocation(ExtendedLocation extendedLocation) {
+ this.extendedLocation = extendedLocation;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public MarketplaceGalleryImagesInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public MarketplaceGalleryImagesInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the containerId property: Storage ContainerID of the storage container to be used for marketplace gallery
+ * image.
+ *
+ * @return the containerId value.
+ */
+ public String containerId() {
+ return this.innerProperties() == null ? null : this.innerProperties().containerId();
+ }
+
+ /**
+ * Set the containerId property: Storage ContainerID of the storage container to be used for marketplace gallery
+ * image.
+ *
+ * @param containerId the containerId value to set.
+ * @return the MarketplaceGalleryImagesInner object itself.
+ */
+ public MarketplaceGalleryImagesInner withContainerId(String containerId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MarketplaceGalleryImageProperties();
+ }
+ this.innerProperties().withContainerId(containerId);
+ return this;
+ }
+
+ /**
+ * Get the osType property: Operating system type that the gallery image uses [Windows, Linux].
+ *
+ * @return the osType value.
+ */
+ public OperatingSystemTypes osType() {
+ return this.innerProperties() == null ? null : this.innerProperties().osType();
+ }
+
+ /**
+ * Set the osType property: Operating system type that the gallery image uses [Windows, Linux].
+ *
+ * @param osType the osType value to set.
+ * @return the MarketplaceGalleryImagesInner object itself.
+ */
+ public MarketplaceGalleryImagesInner withOsType(OperatingSystemTypes osType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MarketplaceGalleryImageProperties();
+ }
+ this.innerProperties().withOsType(osType);
+ return this;
+ }
+
+ /**
+ * Get the cloudInitDataSource property: Datasource for the gallery image when provisioning with cloud-init
+ * [NoCloud, Azure].
+ *
+ * @return the cloudInitDataSource value.
+ */
+ public CloudInitDataSource cloudInitDataSource() {
+ return this.innerProperties() == null ? null : this.innerProperties().cloudInitDataSource();
+ }
+
+ /**
+ * Set the cloudInitDataSource property: Datasource for the gallery image when provisioning with cloud-init
+ * [NoCloud, Azure].
+ *
+ * @param cloudInitDataSource the cloudInitDataSource value to set.
+ * @return the MarketplaceGalleryImagesInner object itself.
+ */
+ public MarketplaceGalleryImagesInner withCloudInitDataSource(CloudInitDataSource cloudInitDataSource) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MarketplaceGalleryImageProperties();
+ }
+ this.innerProperties().withCloudInitDataSource(cloudInitDataSource);
+ return this;
+ }
+
+ /**
+ * Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine [V1, V2].
+ *
+ * @return the hyperVGeneration value.
+ */
+ public HyperVGeneration hyperVGeneration() {
+ return this.innerProperties() == null ? null : this.innerProperties().hyperVGeneration();
+ }
+
+ /**
+ * Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine [V1, V2].
+ *
+ * @param hyperVGeneration the hyperVGeneration value to set.
+ * @return the MarketplaceGalleryImagesInner object itself.
+ */
+ public MarketplaceGalleryImagesInner withHyperVGeneration(HyperVGeneration hyperVGeneration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MarketplaceGalleryImageProperties();
+ }
+ this.innerProperties().withHyperVGeneration(hyperVGeneration);
+ return this;
+ }
+
+ /**
+ * Get the identifier property: This is the gallery image definition identifier.
+ *
+ * @return the identifier value.
+ */
+ public GalleryImageIdentifier identifier() {
+ return this.innerProperties() == null ? null : this.innerProperties().identifier();
+ }
+
+ /**
+ * Set the identifier property: This is the gallery image definition identifier.
+ *
+ * @param identifier the identifier value to set.
+ * @return the MarketplaceGalleryImagesInner object itself.
+ */
+ public MarketplaceGalleryImagesInner withIdentifier(GalleryImageIdentifier identifier) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MarketplaceGalleryImageProperties();
+ }
+ this.innerProperties().withIdentifier(identifier);
+ return this;
+ }
+
+ /**
+ * Get the version property: Specifies information about the gallery image version that you want to create or
+ * update.
+ *
+ * @return the version value.
+ */
+ public GalleryImageVersion version() {
+ return this.innerProperties() == null ? null : this.innerProperties().version();
+ }
+
+ /**
+ * Set the version property: Specifies information about the gallery image version that you want to create or
+ * update.
+ *
+ * @param version the version value to set.
+ * @return the MarketplaceGalleryImagesInner object itself.
+ */
+ public MarketplaceGalleryImagesInner withVersion(GalleryImageVersion version) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MarketplaceGalleryImageProperties();
+ }
+ this.innerProperties().withVersion(version);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the marketplace gallery image.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningStateEnum provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the status property: The observed state of marketplace gallery images.
+ *
+ * @return the status value.
+ */
+ public MarketplaceGalleryImageStatus status() {
+ return this.innerProperties() == null ? null : this.innerProperties().status();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ if (extendedLocation() != null) {
+ extendedLocation().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeJsonField("extendedLocation", this.extendedLocation);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of MarketplaceGalleryImagesInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of MarketplaceGalleryImagesInner if the JsonReader was pointing to an instance of it, or null
+ * if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the MarketplaceGalleryImagesInner.
+ */
+ public static MarketplaceGalleryImagesInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ MarketplaceGalleryImagesInner deserializedMarketplaceGalleryImagesInner
+ = new MarketplaceGalleryImagesInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedMarketplaceGalleryImagesInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedMarketplaceGalleryImagesInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedMarketplaceGalleryImagesInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedMarketplaceGalleryImagesInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedMarketplaceGalleryImagesInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedMarketplaceGalleryImagesInner.innerProperties
+ = MarketplaceGalleryImageProperties.fromJson(reader);
+ } else if ("extendedLocation".equals(fieldName)) {
+ deserializedMarketplaceGalleryImagesInner.extendedLocation = ExtendedLocation.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedMarketplaceGalleryImagesInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedMarketplaceGalleryImagesInner;
+ });
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/NetworkInterfaceProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/NetworkInterfaceProperties.java
new file mode 100644
index 000000000000..bc6f320e2237
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/NetworkInterfaceProperties.java
@@ -0,0 +1,199 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurestackhci.models.InterfaceDnsSettings;
+import com.azure.resourcemanager.azurestackhci.models.IpConfiguration;
+import com.azure.resourcemanager.azurestackhci.models.NetworkInterfaceStatus;
+import com.azure.resourcemanager.azurestackhci.models.ProvisioningStateEnum;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * Properties under the network interface resource.
+ */
+@Fluent
+public final class NetworkInterfaceProperties implements JsonSerializable {
+ /*
+ * IPConfigurations - A list of IPConfigurations of the network interface.
+ */
+ private List ipConfigurations;
+
+ /*
+ * MacAddress - The MAC address of the network interface.
+ */
+ private String macAddress;
+
+ /*
+ * DNS Settings for the interface
+ */
+ private InterfaceDnsSettings dnsSettings;
+
+ /*
+ * Provisioning state of the network interface.
+ */
+ private ProvisioningStateEnum provisioningState;
+
+ /*
+ * The observed state of network interfaces
+ */
+ private NetworkInterfaceStatus status;
+
+ /**
+ * Creates an instance of NetworkInterfaceProperties class.
+ */
+ public NetworkInterfaceProperties() {
+ }
+
+ /**
+ * Get the ipConfigurations property: IPConfigurations - A list of IPConfigurations of the network interface.
+ *
+ * @return the ipConfigurations value.
+ */
+ public List ipConfigurations() {
+ return this.ipConfigurations;
+ }
+
+ /**
+ * Set the ipConfigurations property: IPConfigurations - A list of IPConfigurations of the network interface.
+ *
+ * @param ipConfigurations the ipConfigurations value to set.
+ * @return the NetworkInterfaceProperties object itself.
+ */
+ public NetworkInterfaceProperties withIpConfigurations(List ipConfigurations) {
+ this.ipConfigurations = ipConfigurations;
+ return this;
+ }
+
+ /**
+ * Get the macAddress property: MacAddress - The MAC address of the network interface.
+ *
+ * @return the macAddress value.
+ */
+ public String macAddress() {
+ return this.macAddress;
+ }
+
+ /**
+ * Set the macAddress property: MacAddress - The MAC address of the network interface.
+ *
+ * @param macAddress the macAddress value to set.
+ * @return the NetworkInterfaceProperties object itself.
+ */
+ public NetworkInterfaceProperties withMacAddress(String macAddress) {
+ this.macAddress = macAddress;
+ return this;
+ }
+
+ /**
+ * Get the dnsSettings property: DNS Settings for the interface.
+ *
+ * @return the dnsSettings value.
+ */
+ public InterfaceDnsSettings dnsSettings() {
+ return this.dnsSettings;
+ }
+
+ /**
+ * Set the dnsSettings property: DNS Settings for the interface.
+ *
+ * @param dnsSettings the dnsSettings value to set.
+ * @return the NetworkInterfaceProperties object itself.
+ */
+ public NetworkInterfaceProperties withDnsSettings(InterfaceDnsSettings dnsSettings) {
+ this.dnsSettings = dnsSettings;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the network interface.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningStateEnum provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the status property: The observed state of network interfaces.
+ *
+ * @return the status value.
+ */
+ public NetworkInterfaceStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (ipConfigurations() != null) {
+ ipConfigurations().forEach(e -> e.validate());
+ }
+ if (dnsSettings() != null) {
+ dnsSettings().validate();
+ }
+ if (status() != null) {
+ status().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("ipConfigurations", this.ipConfigurations,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("macAddress", this.macAddress);
+ jsonWriter.writeJsonField("dnsSettings", this.dnsSettings);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of NetworkInterfaceProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of NetworkInterfaceProperties if the JsonReader was pointing to an instance of it, or null if
+ * it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the NetworkInterfaceProperties.
+ */
+ public static NetworkInterfaceProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ NetworkInterfaceProperties deserializedNetworkInterfaceProperties = new NetworkInterfaceProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("ipConfigurations".equals(fieldName)) {
+ List ipConfigurations
+ = reader.readArray(reader1 -> IpConfiguration.fromJson(reader1));
+ deserializedNetworkInterfaceProperties.ipConfigurations = ipConfigurations;
+ } else if ("macAddress".equals(fieldName)) {
+ deserializedNetworkInterfaceProperties.macAddress = reader.getString();
+ } else if ("dnsSettings".equals(fieldName)) {
+ deserializedNetworkInterfaceProperties.dnsSettings = InterfaceDnsSettings.fromJson(reader);
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedNetworkInterfaceProperties.provisioningState
+ = ProvisioningStateEnum.fromString(reader.getString());
+ } else if ("status".equals(fieldName)) {
+ deserializedNetworkInterfaceProperties.status = NetworkInterfaceStatus.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedNetworkInterfaceProperties;
+ });
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/NetworkInterfacesInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/NetworkInterfacesInner.java
new file mode 100644
index 000000000000..9aac394d9e1e
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/NetworkInterfacesInner.java
@@ -0,0 +1,304 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurestackhci.models.ExtendedLocation;
+import com.azure.resourcemanager.azurestackhci.models.InterfaceDnsSettings;
+import com.azure.resourcemanager.azurestackhci.models.IpConfiguration;
+import com.azure.resourcemanager.azurestackhci.models.NetworkInterfaceStatus;
+import com.azure.resourcemanager.azurestackhci.models.ProvisioningStateEnum;
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * The network interface resource definition.
+ */
+@Fluent
+public final class NetworkInterfacesInner extends Resource {
+ /*
+ * Properties under the network interface resource
+ */
+ private NetworkInterfaceProperties innerProperties;
+
+ /*
+ * The extendedLocation of the resource.
+ */
+ private ExtendedLocation extendedLocation;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of NetworkInterfacesInner class.
+ */
+ public NetworkInterfacesInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Properties under the network interface resource.
+ *
+ * @return the innerProperties value.
+ */
+ private NetworkInterfaceProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the extendedLocation property: The extendedLocation of the resource.
+ *
+ * @return the extendedLocation value.
+ */
+ public ExtendedLocation extendedLocation() {
+ return this.extendedLocation;
+ }
+
+ /**
+ * Set the extendedLocation property: The extendedLocation of the resource.
+ *
+ * @param extendedLocation the extendedLocation value to set.
+ * @return the NetworkInterfacesInner object itself.
+ */
+ public NetworkInterfacesInner withExtendedLocation(ExtendedLocation extendedLocation) {
+ this.extendedLocation = extendedLocation;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public NetworkInterfacesInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public NetworkInterfacesInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the ipConfigurations property: IPConfigurations - A list of IPConfigurations of the network interface.
+ *
+ * @return the ipConfigurations value.
+ */
+ public List ipConfigurations() {
+ return this.innerProperties() == null ? null : this.innerProperties().ipConfigurations();
+ }
+
+ /**
+ * Set the ipConfigurations property: IPConfigurations - A list of IPConfigurations of the network interface.
+ *
+ * @param ipConfigurations the ipConfigurations value to set.
+ * @return the NetworkInterfacesInner object itself.
+ */
+ public NetworkInterfacesInner withIpConfigurations(List ipConfigurations) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new NetworkInterfaceProperties();
+ }
+ this.innerProperties().withIpConfigurations(ipConfigurations);
+ return this;
+ }
+
+ /**
+ * Get the macAddress property: MacAddress - The MAC address of the network interface.
+ *
+ * @return the macAddress value.
+ */
+ public String macAddress() {
+ return this.innerProperties() == null ? null : this.innerProperties().macAddress();
+ }
+
+ /**
+ * Set the macAddress property: MacAddress - The MAC address of the network interface.
+ *
+ * @param macAddress the macAddress value to set.
+ * @return the NetworkInterfacesInner object itself.
+ */
+ public NetworkInterfacesInner withMacAddress(String macAddress) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new NetworkInterfaceProperties();
+ }
+ this.innerProperties().withMacAddress(macAddress);
+ return this;
+ }
+
+ /**
+ * Get the dnsSettings property: DNS Settings for the interface.
+ *
+ * @return the dnsSettings value.
+ */
+ public InterfaceDnsSettings dnsSettings() {
+ return this.innerProperties() == null ? null : this.innerProperties().dnsSettings();
+ }
+
+ /**
+ * Set the dnsSettings property: DNS Settings for the interface.
+ *
+ * @param dnsSettings the dnsSettings value to set.
+ * @return the NetworkInterfacesInner object itself.
+ */
+ public NetworkInterfacesInner withDnsSettings(InterfaceDnsSettings dnsSettings) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new NetworkInterfaceProperties();
+ }
+ this.innerProperties().withDnsSettings(dnsSettings);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the network interface.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningStateEnum provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the status property: The observed state of network interfaces.
+ *
+ * @return the status value.
+ */
+ public NetworkInterfaceStatus status() {
+ return this.innerProperties() == null ? null : this.innerProperties().status();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ if (extendedLocation() != null) {
+ extendedLocation().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeJsonField("extendedLocation", this.extendedLocation);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of NetworkInterfacesInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of NetworkInterfacesInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the NetworkInterfacesInner.
+ */
+ public static NetworkInterfacesInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ NetworkInterfacesInner deserializedNetworkInterfacesInner = new NetworkInterfacesInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedNetworkInterfacesInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedNetworkInterfacesInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedNetworkInterfacesInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedNetworkInterfacesInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedNetworkInterfacesInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedNetworkInterfacesInner.innerProperties = NetworkInterfaceProperties.fromJson(reader);
+ } else if ("extendedLocation".equals(fieldName)) {
+ deserializedNetworkInterfacesInner.extendedLocation = ExtendedLocation.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedNetworkInterfacesInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedNetworkInterfacesInner;
+ });
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/OfferInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/OfferInner.java
index 08f059d0778d..bdbc300f5ab8 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/OfferInner.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/OfferInner.java
@@ -30,9 +30,9 @@ public final class OfferInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class OfferInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of OfferInner class.
@@ -69,13 +69,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -89,13 +89,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/PublisherInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/PublisherInner.java
index 90b19e0bec07..5361610b007c 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/PublisherInner.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/PublisherInner.java
@@ -28,9 +28,9 @@ public final class PublisherInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -38,9 +38,9 @@ public final class PublisherInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of PublisherInner class.
@@ -67,13 +67,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -87,13 +87,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/RoutePropertiesFormat.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/RoutePropertiesFormat.java
new file mode 100644
index 000000000000..f2cb512ff8d2
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/RoutePropertiesFormat.java
@@ -0,0 +1,124 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * RoutePropertiesFormat - Route resource.
+ */
+@Fluent
+public final class RoutePropertiesFormat implements JsonSerializable {
+ /*
+ * The destination CIDR to which the route applies.
+ */
+ private String addressPrefix;
+
+ /*
+ * The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type
+ * is VirtualAppliance.
+ */
+ private String nextHopIpAddress;
+
+ /**
+ * Creates an instance of RoutePropertiesFormat class.
+ */
+ public RoutePropertiesFormat() {
+ }
+
+ /**
+ * Get the addressPrefix property: The destination CIDR to which the route applies.
+ *
+ * @return the addressPrefix value.
+ */
+ public String addressPrefix() {
+ return this.addressPrefix;
+ }
+
+ /**
+ * Set the addressPrefix property: The destination CIDR to which the route applies.
+ *
+ * @param addressPrefix the addressPrefix value to set.
+ * @return the RoutePropertiesFormat object itself.
+ */
+ public RoutePropertiesFormat withAddressPrefix(String addressPrefix) {
+ this.addressPrefix = addressPrefix;
+ return this;
+ }
+
+ /**
+ * Get the nextHopIpAddress property: The IP address packets should be forwarded to. Next hop values are only
+ * allowed in routes where the next hop type is VirtualAppliance.
+ *
+ * @return the nextHopIpAddress value.
+ */
+ public String nextHopIpAddress() {
+ return this.nextHopIpAddress;
+ }
+
+ /**
+ * Set the nextHopIpAddress property: The IP address packets should be forwarded to. Next hop values are only
+ * allowed in routes where the next hop type is VirtualAppliance.
+ *
+ * @param nextHopIpAddress the nextHopIpAddress value to set.
+ * @return the RoutePropertiesFormat object itself.
+ */
+ public RoutePropertiesFormat withNextHopIpAddress(String nextHopIpAddress) {
+ this.nextHopIpAddress = nextHopIpAddress;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("addressPrefix", this.addressPrefix);
+ jsonWriter.writeStringField("nextHopIpAddress", this.nextHopIpAddress);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of RoutePropertiesFormat from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of RoutePropertiesFormat if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the RoutePropertiesFormat.
+ */
+ public static RoutePropertiesFormat fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ RoutePropertiesFormat deserializedRoutePropertiesFormat = new RoutePropertiesFormat();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("addressPrefix".equals(fieldName)) {
+ deserializedRoutePropertiesFormat.addressPrefix = reader.getString();
+ } else if ("nextHopIpAddress".equals(fieldName)) {
+ deserializedRoutePropertiesFormat.nextHopIpAddress = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedRoutePropertiesFormat;
+ });
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/RouteTablePropertiesFormat.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/RouteTablePropertiesFormat.java
new file mode 100644
index 000000000000..4b3845255acb
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/RouteTablePropertiesFormat.java
@@ -0,0 +1,99 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurestackhci.models.Route;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * RouteTablePropertiesFormat - Route Table resource.
+ */
+@Fluent
+public final class RouteTablePropertiesFormat implements JsonSerializable {
+ /*
+ * Collection of routes contained within a route table.
+ */
+ private List routes;
+
+ /**
+ * Creates an instance of RouteTablePropertiesFormat class.
+ */
+ public RouteTablePropertiesFormat() {
+ }
+
+ /**
+ * Get the routes property: Collection of routes contained within a route table.
+ *
+ * @return the routes value.
+ */
+ public List routes() {
+ return this.routes;
+ }
+
+ /**
+ * Set the routes property: Collection of routes contained within a route table.
+ *
+ * @param routes the routes value to set.
+ * @return the RouteTablePropertiesFormat object itself.
+ */
+ public RouteTablePropertiesFormat withRoutes(List routes) {
+ this.routes = routes;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (routes() != null) {
+ routes().forEach(e -> e.validate());
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("routes", this.routes, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of RouteTablePropertiesFormat from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of RouteTablePropertiesFormat if the JsonReader was pointing to an instance of it, or null if
+ * it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the RouteTablePropertiesFormat.
+ */
+ public static RouteTablePropertiesFormat fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ RouteTablePropertiesFormat deserializedRouteTablePropertiesFormat = new RouteTablePropertiesFormat();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("routes".equals(fieldName)) {
+ List routes = reader.readArray(reader1 -> Route.fromJson(reader1));
+ deserializedRouteTablePropertiesFormat.routes = routes;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedRouteTablePropertiesFormat;
+ });
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/SecurityProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/SecurityProperties.java
index 61e0ee98a238..92e4063cb80d 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/SecurityProperties.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/SecurityProperties.java
@@ -24,16 +24,6 @@ public final class SecurityProperties implements JsonSerializable {
*/
private OffsetDateTime lastUpdatedTimeUtc;
- /*
- * Expected execution time of a given step. This is optionally authored in the update action plan and can be empty.
- */
- private String expectedExecutionTime;
-
/*
* Recursive model for child steps of this step.
*/
@@ -214,28 +209,6 @@ public Step withLastUpdatedTimeUtc(OffsetDateTime lastUpdatedTimeUtc) {
return this;
}
- /**
- * Get the expectedExecutionTime property: Expected execution time of a given step. This is optionally authored in
- * the update action plan and can be empty.
- *
- * @return the expectedExecutionTime value.
- */
- public String expectedExecutionTime() {
- return this.expectedExecutionTime;
- }
-
- /**
- * Set the expectedExecutionTime property: Expected execution time of a given step. This is optionally authored in
- * the update action plan and can be empty.
- *
- * @param expectedExecutionTime the expectedExecutionTime value to set.
- * @return the Step object itself.
- */
- public Step withExpectedExecutionTime(String expectedExecutionTime) {
- this.expectedExecutionTime = expectedExecutionTime;
- return this;
- }
-
/**
* Get the steps property: Recursive model for child steps of this step.
*
@@ -285,7 +258,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
this.lastUpdatedTimeUtc == null
? null
: DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.lastUpdatedTimeUtc));
- jsonWriter.writeStringField("expectedExecutionTime", this.expectedExecutionTime);
jsonWriter.writeArrayField("steps", this.steps, (writer, element) -> writer.writeJson(element));
return jsonWriter.writeEndObject();
}
@@ -322,8 +294,6 @@ public static Step fromJson(JsonReader jsonReader) throws IOException {
} else if ("lastUpdatedTimeUtc".equals(fieldName)) {
deserializedStep.lastUpdatedTimeUtc = reader
.getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
- } else if ("expectedExecutionTime".equals(fieldName)) {
- deserializedStep.expectedExecutionTime = reader.getString();
} else if ("steps".equals(fieldName)) {
List steps = reader.readArray(reader1 -> Step.fromJson(reader1));
deserializedStep.steps = steps;
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/StorageContainerProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/StorageContainerProperties.java
new file mode 100644
index 000000000000..13eee6d92d4b
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/StorageContainerProperties.java
@@ -0,0 +1,140 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurestackhci.models.ProvisioningStateEnum;
+import com.azure.resourcemanager.azurestackhci.models.StorageContainerStatus;
+import java.io.IOException;
+
+/**
+ * Properties under the storage container resource.
+ */
+@Fluent
+public final class StorageContainerProperties implements JsonSerializable {
+ /*
+ * Path of the storage container on the disk
+ */
+ private String path;
+
+ /*
+ * Provisioning state of the storage container.
+ */
+ private ProvisioningStateEnum provisioningState;
+
+ /*
+ * The observed state of storage containers
+ */
+ private StorageContainerStatus status;
+
+ /**
+ * Creates an instance of StorageContainerProperties class.
+ */
+ public StorageContainerProperties() {
+ }
+
+ /**
+ * Get the path property: Path of the storage container on the disk.
+ *
+ * @return the path value.
+ */
+ public String path() {
+ return this.path;
+ }
+
+ /**
+ * Set the path property: Path of the storage container on the disk.
+ *
+ * @param path the path value to set.
+ * @return the StorageContainerProperties object itself.
+ */
+ public StorageContainerProperties withPath(String path) {
+ this.path = path;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the storage container.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningStateEnum provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the status property: The observed state of storage containers.
+ *
+ * @return the status value.
+ */
+ public StorageContainerStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (path() == null) {
+ throw LOGGER.atError()
+ .log(
+ new IllegalArgumentException("Missing required property path in model StorageContainerProperties"));
+ }
+ if (status() != null) {
+ status().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(StorageContainerProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("path", this.path);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of StorageContainerProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of StorageContainerProperties if the JsonReader was pointing to an instance of it, or null if
+ * it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the StorageContainerProperties.
+ */
+ public static StorageContainerProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ StorageContainerProperties deserializedStorageContainerProperties = new StorageContainerProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("path".equals(fieldName)) {
+ deserializedStorageContainerProperties.path = reader.getString();
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedStorageContainerProperties.provisioningState
+ = ProvisioningStateEnum.fromString(reader.getString());
+ } else if ("status".equals(fieldName)) {
+ deserializedStorageContainerProperties.status = StorageContainerStatus.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedStorageContainerProperties;
+ });
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/StorageContainersInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/StorageContainersInner.java
new file mode 100644
index 000000000000..7d515eac7fcd
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/StorageContainersInner.java
@@ -0,0 +1,255 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurestackhci.models.ExtendedLocation;
+import com.azure.resourcemanager.azurestackhci.models.ProvisioningStateEnum;
+import com.azure.resourcemanager.azurestackhci.models.StorageContainerStatus;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * The storage container resource definition.
+ */
+@Fluent
+public final class StorageContainersInner extends Resource {
+ /*
+ * Properties under the storage container resource
+ */
+ private StorageContainerProperties innerProperties;
+
+ /*
+ * The extendedLocation of the resource.
+ */
+ private ExtendedLocation extendedLocation;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of StorageContainersInner class.
+ */
+ public StorageContainersInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Properties under the storage container resource.
+ *
+ * @return the innerProperties value.
+ */
+ private StorageContainerProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the extendedLocation property: The extendedLocation of the resource.
+ *
+ * @return the extendedLocation value.
+ */
+ public ExtendedLocation extendedLocation() {
+ return this.extendedLocation;
+ }
+
+ /**
+ * Set the extendedLocation property: The extendedLocation of the resource.
+ *
+ * @param extendedLocation the extendedLocation value to set.
+ * @return the StorageContainersInner object itself.
+ */
+ public StorageContainersInner withExtendedLocation(ExtendedLocation extendedLocation) {
+ this.extendedLocation = extendedLocation;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public StorageContainersInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public StorageContainersInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the path property: Path of the storage container on the disk.
+ *
+ * @return the path value.
+ */
+ public String path() {
+ return this.innerProperties() == null ? null : this.innerProperties().path();
+ }
+
+ /**
+ * Set the path property: Path of the storage container on the disk.
+ *
+ * @param path the path value to set.
+ * @return the StorageContainersInner object itself.
+ */
+ public StorageContainersInner withPath(String path) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageContainerProperties();
+ }
+ this.innerProperties().withPath(path);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the storage container.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningStateEnum provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the status property: The observed state of storage containers.
+ *
+ * @return the status value.
+ */
+ public StorageContainerStatus status() {
+ return this.innerProperties() == null ? null : this.innerProperties().status();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ if (extendedLocation() != null) {
+ extendedLocation().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeJsonField("extendedLocation", this.extendedLocation);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of StorageContainersInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of StorageContainersInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the StorageContainersInner.
+ */
+ public static StorageContainersInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ StorageContainersInner deserializedStorageContainersInner = new StorageContainersInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedStorageContainersInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedStorageContainersInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedStorageContainersInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedStorageContainersInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedStorageContainersInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedStorageContainersInner.innerProperties = StorageContainerProperties.fromJson(reader);
+ } else if ("extendedLocation".equals(fieldName)) {
+ deserializedStorageContainersInner.extendedLocation = ExtendedLocation.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedStorageContainersInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedStorageContainersInner;
+ });
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/SubnetPropertiesFormat.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/SubnetPropertiesFormat.java
new file mode 100644
index 000000000000..cdb70a116a70
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/SubnetPropertiesFormat.java
@@ -0,0 +1,286 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurestackhci.models.IpAllocationMethodEnum;
+import com.azure.resourcemanager.azurestackhci.models.IpPool;
+import com.azure.resourcemanager.azurestackhci.models.RouteTable;
+import com.azure.resourcemanager.azurestackhci.models.SubnetPropertiesFormatIpConfigurationReferencesItem;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * Properties of the subnet.
+ */
+@Fluent
+public final class SubnetPropertiesFormat implements JsonSerializable {
+ /*
+ * The address prefix for the subnet: Cidr for this subnet - IPv4, IPv6.
+ */
+ private String addressPrefix;
+
+ /*
+ * List of address prefixes for the subnet.
+ */
+ private List addressPrefixes;
+
+ /*
+ * IPAllocationMethod - The IP address allocation method. Possible values include: 'Static', 'Dynamic'
+ */
+ private IpAllocationMethodEnum ipAllocationMethod;
+
+ /*
+ * IPConfigurationReferences - list of IPConfigurationReferences
+ */
+ private List ipConfigurationReferences;
+
+ /*
+ * Route table resource.
+ */
+ private RouteTable routeTable;
+
+ /*
+ * network associated pool of IP Addresses
+ */
+ private List ipPools;
+
+ /*
+ * Vlan to use for the subnet
+ */
+ private Integer vlan;
+
+ /**
+ * Creates an instance of SubnetPropertiesFormat class.
+ */
+ public SubnetPropertiesFormat() {
+ }
+
+ /**
+ * Get the addressPrefix property: The address prefix for the subnet: Cidr for this subnet - IPv4, IPv6.
+ *
+ * @return the addressPrefix value.
+ */
+ public String addressPrefix() {
+ return this.addressPrefix;
+ }
+
+ /**
+ * Set the addressPrefix property: The address prefix for the subnet: Cidr for this subnet - IPv4, IPv6.
+ *
+ * @param addressPrefix the addressPrefix value to set.
+ * @return the SubnetPropertiesFormat object itself.
+ */
+ public SubnetPropertiesFormat withAddressPrefix(String addressPrefix) {
+ this.addressPrefix = addressPrefix;
+ return this;
+ }
+
+ /**
+ * Get the addressPrefixes property: List of address prefixes for the subnet.
+ *
+ * @return the addressPrefixes value.
+ */
+ public List addressPrefixes() {
+ return this.addressPrefixes;
+ }
+
+ /**
+ * Set the addressPrefixes property: List of address prefixes for the subnet.
+ *
+ * @param addressPrefixes the addressPrefixes value to set.
+ * @return the SubnetPropertiesFormat object itself.
+ */
+ public SubnetPropertiesFormat withAddressPrefixes(List addressPrefixes) {
+ this.addressPrefixes = addressPrefixes;
+ return this;
+ }
+
+ /**
+ * Get the ipAllocationMethod property: IPAllocationMethod - The IP address allocation method. Possible values
+ * include: 'Static', 'Dynamic'.
+ *
+ * @return the ipAllocationMethod value.
+ */
+ public IpAllocationMethodEnum ipAllocationMethod() {
+ return this.ipAllocationMethod;
+ }
+
+ /**
+ * Set the ipAllocationMethod property: IPAllocationMethod - The IP address allocation method. Possible values
+ * include: 'Static', 'Dynamic'.
+ *
+ * @param ipAllocationMethod the ipAllocationMethod value to set.
+ * @return the SubnetPropertiesFormat object itself.
+ */
+ public SubnetPropertiesFormat withIpAllocationMethod(IpAllocationMethodEnum ipAllocationMethod) {
+ this.ipAllocationMethod = ipAllocationMethod;
+ return this;
+ }
+
+ /**
+ * Get the ipConfigurationReferences property: IPConfigurationReferences - list of IPConfigurationReferences.
+ *
+ * @return the ipConfigurationReferences value.
+ */
+ public List ipConfigurationReferences() {
+ return this.ipConfigurationReferences;
+ }
+
+ /**
+ * Set the ipConfigurationReferences property: IPConfigurationReferences - list of IPConfigurationReferences.
+ *
+ * @param ipConfigurationReferences the ipConfigurationReferences value to set.
+ * @return the SubnetPropertiesFormat object itself.
+ */
+ public SubnetPropertiesFormat withIpConfigurationReferences(
+ List ipConfigurationReferences) {
+ this.ipConfigurationReferences = ipConfigurationReferences;
+ return this;
+ }
+
+ /**
+ * Get the routeTable property: Route table resource.
+ *
+ * @return the routeTable value.
+ */
+ public RouteTable routeTable() {
+ return this.routeTable;
+ }
+
+ /**
+ * Set the routeTable property: Route table resource.
+ *
+ * @param routeTable the routeTable value to set.
+ * @return the SubnetPropertiesFormat object itself.
+ */
+ public SubnetPropertiesFormat withRouteTable(RouteTable routeTable) {
+ this.routeTable = routeTable;
+ return this;
+ }
+
+ /**
+ * Get the ipPools property: network associated pool of IP Addresses.
+ *
+ * @return the ipPools value.
+ */
+ public List ipPools() {
+ return this.ipPools;
+ }
+
+ /**
+ * Set the ipPools property: network associated pool of IP Addresses.
+ *
+ * @param ipPools the ipPools value to set.
+ * @return the SubnetPropertiesFormat object itself.
+ */
+ public SubnetPropertiesFormat withIpPools(List ipPools) {
+ this.ipPools = ipPools;
+ return this;
+ }
+
+ /**
+ * Get the vlan property: Vlan to use for the subnet.
+ *
+ * @return the vlan value.
+ */
+ public Integer vlan() {
+ return this.vlan;
+ }
+
+ /**
+ * Set the vlan property: Vlan to use for the subnet.
+ *
+ * @param vlan the vlan value to set.
+ * @return the SubnetPropertiesFormat object itself.
+ */
+ public SubnetPropertiesFormat withVlan(Integer vlan) {
+ this.vlan = vlan;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (ipConfigurationReferences() != null) {
+ ipConfigurationReferences().forEach(e -> e.validate());
+ }
+ if (routeTable() != null) {
+ routeTable().validate();
+ }
+ if (ipPools() != null) {
+ ipPools().forEach(e -> e.validate());
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("addressPrefix", this.addressPrefix);
+ jsonWriter.writeArrayField("addressPrefixes", this.addressPrefixes,
+ (writer, element) -> writer.writeString(element));
+ jsonWriter.writeStringField("ipAllocationMethod",
+ this.ipAllocationMethod == null ? null : this.ipAllocationMethod.toString());
+ jsonWriter.writeArrayField("ipConfigurationReferences", this.ipConfigurationReferences,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeJsonField("routeTable", this.routeTable);
+ jsonWriter.writeArrayField("ipPools", this.ipPools, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeNumberField("vlan", this.vlan);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of SubnetPropertiesFormat from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of SubnetPropertiesFormat if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the SubnetPropertiesFormat.
+ */
+ public static SubnetPropertiesFormat fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ SubnetPropertiesFormat deserializedSubnetPropertiesFormat = new SubnetPropertiesFormat();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("addressPrefix".equals(fieldName)) {
+ deserializedSubnetPropertiesFormat.addressPrefix = reader.getString();
+ } else if ("addressPrefixes".equals(fieldName)) {
+ List addressPrefixes = reader.readArray(reader1 -> reader1.getString());
+ deserializedSubnetPropertiesFormat.addressPrefixes = addressPrefixes;
+ } else if ("ipAllocationMethod".equals(fieldName)) {
+ deserializedSubnetPropertiesFormat.ipAllocationMethod
+ = IpAllocationMethodEnum.fromString(reader.getString());
+ } else if ("ipConfigurationReferences".equals(fieldName)) {
+ List ipConfigurationReferences = reader
+ .readArray(reader1 -> SubnetPropertiesFormatIpConfigurationReferencesItem.fromJson(reader1));
+ deserializedSubnetPropertiesFormat.ipConfigurationReferences = ipConfigurationReferences;
+ } else if ("routeTable".equals(fieldName)) {
+ deserializedSubnetPropertiesFormat.routeTable = RouteTable.fromJson(reader);
+ } else if ("ipPools".equals(fieldName)) {
+ List ipPools = reader.readArray(reader1 -> IpPool.fromJson(reader1));
+ deserializedSubnetPropertiesFormat.ipPools = ipPools;
+ } else if ("vlan".equals(fieldName)) {
+ deserializedSubnetPropertiesFormat.vlan = reader.getNullable(JsonReader::getInt);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedSubnetPropertiesFormat;
+ });
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateProperties.java
index eb137ccec19a..e18efdf7e1ab 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateProperties.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateProperties.java
@@ -43,11 +43,6 @@ public final class UpdateProperties implements JsonSerializable writer.writeJson(element));
jsonWriter.writeArrayField("componentVersions", this.componentVersions,
@@ -681,8 +655,6 @@ public static UpdateProperties fromJson(JsonReader jsonReader) throws IOExceptio
.getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
} else if ("description".equals(fieldName)) {
deserializedUpdateProperties.description = reader.getString();
- } else if ("minSbeVersionRequired".equals(fieldName)) {
- deserializedUpdateProperties.minSbeVersionRequired = reader.getString();
} else if ("state".equals(fieldName)) {
deserializedUpdateProperties.state = State.fromString(reader.getString());
} else if ("prerequisites".equals(fieldName)) {
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateRunInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateRunInner.java
index f20578cd3d95..ab4d7a2f84f5 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateRunInner.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateRunInner.java
@@ -37,9 +37,9 @@ public final class UpdateRunInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -47,9 +47,9 @@ public final class UpdateRunInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of UpdateRunInner class.
@@ -96,13 +96,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -116,13 +116,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
@@ -389,31 +389,6 @@ public UpdateRunInner withLastUpdatedTimeUtc(OffsetDateTime lastUpdatedTimeUtc)
return this;
}
- /**
- * Get the expectedExecutionTime property: Expected execution time of a given step. This is optionally authored in
- * the update action plan and can be empty.
- *
- * @return the expectedExecutionTime value.
- */
- public String expectedExecutionTime() {
- return this.innerProperties() == null ? null : this.innerProperties().expectedExecutionTime();
- }
-
- /**
- * Set the expectedExecutionTime property: Expected execution time of a given step. This is optionally authored in
- * the update action plan and can be empty.
- *
- * @param expectedExecutionTime the expectedExecutionTime value to set.
- * @return the UpdateRunInner object itself.
- */
- public UpdateRunInner withExpectedExecutionTime(String expectedExecutionTime) {
- if (this.innerProperties() == null) {
- this.innerProperties = new UpdateRunProperties();
- }
- this.innerProperties().withExpectedExecutionTime(expectedExecutionTime);
- return this;
- }
-
/**
* Get the steps property: Recursive model for child steps of this step.
*
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateRunProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateRunProperties.java
index d594f9b7c4cb..f1cc3eca2b10 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateRunProperties.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateRunProperties.java
@@ -319,31 +319,6 @@ public UpdateRunProperties withLastUpdatedTimeUtc(OffsetDateTime lastUpdatedTime
return this;
}
- /**
- * Get the expectedExecutionTime property: Expected execution time of a given step. This is optionally authored in
- * the update action plan and can be empty.
- *
- * @return the expectedExecutionTime value.
- */
- public String expectedExecutionTime() {
- return this.innerProgress() == null ? null : this.innerProgress().expectedExecutionTime();
- }
-
- /**
- * Set the expectedExecutionTime property: Expected execution time of a given step. This is optionally authored in
- * the update action plan and can be empty.
- *
- * @param expectedExecutionTime the expectedExecutionTime value to set.
- * @return the UpdateRunProperties object itself.
- */
- public UpdateRunProperties withExpectedExecutionTime(String expectedExecutionTime) {
- if (this.innerProgress() == null) {
- this.innerProgress = new Step();
- }
- this.innerProgress().withExpectedExecutionTime(expectedExecutionTime);
- return this;
- }
-
/**
* Get the steps property: Recursive model for child steps of this step.
*
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateSummariesInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateSummariesInner.java
index 492c19f22ed8..a4db3e33ffe5 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateSummariesInner.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateSummariesInner.java
@@ -40,9 +40,9 @@ public final class UpdateSummariesInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -50,9 +50,9 @@ public final class UpdateSummariesInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of UpdateSummariesInner class.
@@ -99,13 +99,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -119,13 +119,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
@@ -160,29 +160,6 @@ public UpdateSummariesInner withOemFamily(String oemFamily) {
return this;
}
- /**
- * Get the currentOemVersion property: Current OEM Version.
- *
- * @return the currentOemVersion value.
- */
- public String currentOemVersion() {
- return this.innerProperties() == null ? null : this.innerProperties().currentOemVersion();
- }
-
- /**
- * Set the currentOemVersion property: Current OEM Version.
- *
- * @param currentOemVersion the currentOemVersion value to set.
- * @return the UpdateSummariesInner object itself.
- */
- public UpdateSummariesInner withCurrentOemVersion(String currentOemVersion) {
- if (this.innerProperties() == null) {
- this.innerProperties = new UpdateSummariesProperties();
- }
- this.innerProperties().withCurrentOemVersion(currentOemVersion);
- return this;
- }
-
/**
* Get the hardwareModel property: Name of the hardware model.
*
@@ -252,29 +229,6 @@ public UpdateSummariesInner withCurrentVersion(String currentVersion) {
return this;
}
- /**
- * Get the currentSbeVersion property: Current Sbe version of the stamp.
- *
- * @return the currentSbeVersion value.
- */
- public String currentSbeVersion() {
- return this.innerProperties() == null ? null : this.innerProperties().currentSbeVersion();
- }
-
- /**
- * Set the currentSbeVersion property: Current Sbe version of the stamp.
- *
- * @param currentSbeVersion the currentSbeVersion value to set.
- * @return the UpdateSummariesInner object itself.
- */
- public UpdateSummariesInner withCurrentSbeVersion(String currentSbeVersion) {
- if (this.innerProperties() == null) {
- this.innerProperties = new UpdateSummariesProperties();
- }
- this.innerProperties().withCurrentSbeVersion(currentSbeVersion);
- return this;
- }
-
/**
* Get the lastUpdated property: Last time an update installation completed successfully.
*
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateSummariesProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateSummariesProperties.java
index ed82d85ee402..096ec118ec96 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateSummariesProperties.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateSummariesProperties.java
@@ -35,11 +35,6 @@ public final class UpdateSummariesProperties implements JsonSerializable writer.writeJson(element));
jsonWriter.writeStringField("currentVersion", this.currentVersion);
- jsonWriter.writeStringField("currentSbeVersion", this.currentSbeVersion);
jsonWriter.writeStringField("lastUpdated",
this.lastUpdated == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.lastUpdated));
jsonWriter.writeStringField("lastChecked",
@@ -405,8 +353,6 @@ public static UpdateSummariesProperties fromJson(JsonReader jsonReader) throws I
= ProvisioningState.fromString(reader.getString());
} else if ("oemFamily".equals(fieldName)) {
deserializedUpdateSummariesProperties.oemFamily = reader.getString();
- } else if ("currentOemVersion".equals(fieldName)) {
- deserializedUpdateSummariesProperties.currentOemVersion = reader.getString();
} else if ("hardwareModel".equals(fieldName)) {
deserializedUpdateSummariesProperties.hardwareModel = reader.getString();
} else if ("packageVersions".equals(fieldName)) {
@@ -415,8 +361,6 @@ public static UpdateSummariesProperties fromJson(JsonReader jsonReader) throws I
deserializedUpdateSummariesProperties.packageVersions = packageVersions;
} else if ("currentVersion".equals(fieldName)) {
deserializedUpdateSummariesProperties.currentVersion = reader.getString();
- } else if ("currentSbeVersion".equals(fieldName)) {
- deserializedUpdateSummariesProperties.currentSbeVersion = reader.getString();
} else if ("lastUpdated".equals(fieldName)) {
deserializedUpdateSummariesProperties.lastUpdated = reader
.getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualHardDiskProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualHardDiskProperties.java
new file mode 100644
index 000000000000..cf45d61ffc18
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualHardDiskProperties.java
@@ -0,0 +1,333 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurestackhci.models.DiskFileFormat;
+import com.azure.resourcemanager.azurestackhci.models.HyperVGeneration;
+import com.azure.resourcemanager.azurestackhci.models.ProvisioningStateEnum;
+import com.azure.resourcemanager.azurestackhci.models.VirtualHardDiskStatus;
+import java.io.IOException;
+
+/**
+ * Properties under the virtual hard disk resource.
+ */
+@Fluent
+public final class VirtualHardDiskProperties implements JsonSerializable {
+ /*
+ * The blockSizeBytes property.
+ */
+ private Integer blockSizeBytes;
+
+ /*
+ * Size of the disk in GB
+ */
+ private Long diskSizeGB;
+
+ /*
+ * Boolean for enabling dynamic sizing on the virtual hard disk
+ */
+ private Boolean dynamic;
+
+ /*
+ * The logicalSectorBytes property.
+ */
+ private Integer logicalSectorBytes;
+
+ /*
+ * The physicalSectorBytes property.
+ */
+ private Integer physicalSectorBytes;
+
+ /*
+ * The hypervisor generation of the Virtual Machine [V1, V2]
+ */
+ private HyperVGeneration hyperVGeneration;
+
+ /*
+ * The format of the actual VHD file [vhd, vhdx]
+ */
+ private DiskFileFormat diskFileFormat;
+
+ /*
+ * Provisioning state of the virtual hard disk.
+ */
+ private ProvisioningStateEnum provisioningState;
+
+ /*
+ * Storage ContainerID of the storage container to be used for VHD
+ */
+ private String containerId;
+
+ /*
+ * The observed state of virtual hard disks
+ */
+ private VirtualHardDiskStatus status;
+
+ /**
+ * Creates an instance of VirtualHardDiskProperties class.
+ */
+ public VirtualHardDiskProperties() {
+ }
+
+ /**
+ * Get the blockSizeBytes property: The blockSizeBytes property.
+ *
+ * @return the blockSizeBytes value.
+ */
+ public Integer blockSizeBytes() {
+ return this.blockSizeBytes;
+ }
+
+ /**
+ * Set the blockSizeBytes property: The blockSizeBytes property.
+ *
+ * @param blockSizeBytes the blockSizeBytes value to set.
+ * @return the VirtualHardDiskProperties object itself.
+ */
+ public VirtualHardDiskProperties withBlockSizeBytes(Integer blockSizeBytes) {
+ this.blockSizeBytes = blockSizeBytes;
+ return this;
+ }
+
+ /**
+ * Get the diskSizeGB property: Size of the disk in GB.
+ *
+ * @return the diskSizeGB value.
+ */
+ public Long diskSizeGB() {
+ return this.diskSizeGB;
+ }
+
+ /**
+ * Set the diskSizeGB property: Size of the disk in GB.
+ *
+ * @param diskSizeGB the diskSizeGB value to set.
+ * @return the VirtualHardDiskProperties object itself.
+ */
+ public VirtualHardDiskProperties withDiskSizeGB(Long diskSizeGB) {
+ this.diskSizeGB = diskSizeGB;
+ return this;
+ }
+
+ /**
+ * Get the dynamic property: Boolean for enabling dynamic sizing on the virtual hard disk.
+ *
+ * @return the dynamic value.
+ */
+ public Boolean dynamic() {
+ return this.dynamic;
+ }
+
+ /**
+ * Set the dynamic property: Boolean for enabling dynamic sizing on the virtual hard disk.
+ *
+ * @param dynamic the dynamic value to set.
+ * @return the VirtualHardDiskProperties object itself.
+ */
+ public VirtualHardDiskProperties withDynamic(Boolean dynamic) {
+ this.dynamic = dynamic;
+ return this;
+ }
+
+ /**
+ * Get the logicalSectorBytes property: The logicalSectorBytes property.
+ *
+ * @return the logicalSectorBytes value.
+ */
+ public Integer logicalSectorBytes() {
+ return this.logicalSectorBytes;
+ }
+
+ /**
+ * Set the logicalSectorBytes property: The logicalSectorBytes property.
+ *
+ * @param logicalSectorBytes the logicalSectorBytes value to set.
+ * @return the VirtualHardDiskProperties object itself.
+ */
+ public VirtualHardDiskProperties withLogicalSectorBytes(Integer logicalSectorBytes) {
+ this.logicalSectorBytes = logicalSectorBytes;
+ return this;
+ }
+
+ /**
+ * Get the physicalSectorBytes property: The physicalSectorBytes property.
+ *
+ * @return the physicalSectorBytes value.
+ */
+ public Integer physicalSectorBytes() {
+ return this.physicalSectorBytes;
+ }
+
+ /**
+ * Set the physicalSectorBytes property: The physicalSectorBytes property.
+ *
+ * @param physicalSectorBytes the physicalSectorBytes value to set.
+ * @return the VirtualHardDiskProperties object itself.
+ */
+ public VirtualHardDiskProperties withPhysicalSectorBytes(Integer physicalSectorBytes) {
+ this.physicalSectorBytes = physicalSectorBytes;
+ return this;
+ }
+
+ /**
+ * Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine [V1, V2].
+ *
+ * @return the hyperVGeneration value.
+ */
+ public HyperVGeneration hyperVGeneration() {
+ return this.hyperVGeneration;
+ }
+
+ /**
+ * Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine [V1, V2].
+ *
+ * @param hyperVGeneration the hyperVGeneration value to set.
+ * @return the VirtualHardDiskProperties object itself.
+ */
+ public VirtualHardDiskProperties withHyperVGeneration(HyperVGeneration hyperVGeneration) {
+ this.hyperVGeneration = hyperVGeneration;
+ return this;
+ }
+
+ /**
+ * Get the diskFileFormat property: The format of the actual VHD file [vhd, vhdx].
+ *
+ * @return the diskFileFormat value.
+ */
+ public DiskFileFormat diskFileFormat() {
+ return this.diskFileFormat;
+ }
+
+ /**
+ * Set the diskFileFormat property: The format of the actual VHD file [vhd, vhdx].
+ *
+ * @param diskFileFormat the diskFileFormat value to set.
+ * @return the VirtualHardDiskProperties object itself.
+ */
+ public VirtualHardDiskProperties withDiskFileFormat(DiskFileFormat diskFileFormat) {
+ this.diskFileFormat = diskFileFormat;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the virtual hard disk.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningStateEnum provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the containerId property: Storage ContainerID of the storage container to be used for VHD.
+ *
+ * @return the containerId value.
+ */
+ public String containerId() {
+ return this.containerId;
+ }
+
+ /**
+ * Set the containerId property: Storage ContainerID of the storage container to be used for VHD.
+ *
+ * @param containerId the containerId value to set.
+ * @return the VirtualHardDiskProperties object itself.
+ */
+ public VirtualHardDiskProperties withContainerId(String containerId) {
+ this.containerId = containerId;
+ return this;
+ }
+
+ /**
+ * Get the status property: The observed state of virtual hard disks.
+ *
+ * @return the status value.
+ */
+ public VirtualHardDiskStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (status() != null) {
+ status().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeNumberField("blockSizeBytes", this.blockSizeBytes);
+ jsonWriter.writeNumberField("diskSizeGB", this.diskSizeGB);
+ jsonWriter.writeBooleanField("dynamic", this.dynamic);
+ jsonWriter.writeNumberField("logicalSectorBytes", this.logicalSectorBytes);
+ jsonWriter.writeNumberField("physicalSectorBytes", this.physicalSectorBytes);
+ jsonWriter.writeStringField("hyperVGeneration",
+ this.hyperVGeneration == null ? null : this.hyperVGeneration.toString());
+ jsonWriter.writeStringField("diskFileFormat",
+ this.diskFileFormat == null ? null : this.diskFileFormat.toString());
+ jsonWriter.writeStringField("containerId", this.containerId);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of VirtualHardDiskProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of VirtualHardDiskProperties if the JsonReader was pointing to an instance of it, or null if
+ * it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the VirtualHardDiskProperties.
+ */
+ public static VirtualHardDiskProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ VirtualHardDiskProperties deserializedVirtualHardDiskProperties = new VirtualHardDiskProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("blockSizeBytes".equals(fieldName)) {
+ deserializedVirtualHardDiskProperties.blockSizeBytes = reader.getNullable(JsonReader::getInt);
+ } else if ("diskSizeGB".equals(fieldName)) {
+ deserializedVirtualHardDiskProperties.diskSizeGB = reader.getNullable(JsonReader::getLong);
+ } else if ("dynamic".equals(fieldName)) {
+ deserializedVirtualHardDiskProperties.dynamic = reader.getNullable(JsonReader::getBoolean);
+ } else if ("logicalSectorBytes".equals(fieldName)) {
+ deserializedVirtualHardDiskProperties.logicalSectorBytes = reader.getNullable(JsonReader::getInt);
+ } else if ("physicalSectorBytes".equals(fieldName)) {
+ deserializedVirtualHardDiskProperties.physicalSectorBytes = reader.getNullable(JsonReader::getInt);
+ } else if ("hyperVGeneration".equals(fieldName)) {
+ deserializedVirtualHardDiskProperties.hyperVGeneration
+ = HyperVGeneration.fromString(reader.getString());
+ } else if ("diskFileFormat".equals(fieldName)) {
+ deserializedVirtualHardDiskProperties.diskFileFormat
+ = DiskFileFormat.fromString(reader.getString());
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedVirtualHardDiskProperties.provisioningState
+ = ProvisioningStateEnum.fromString(reader.getString());
+ } else if ("containerId".equals(fieldName)) {
+ deserializedVirtualHardDiskProperties.containerId = reader.getString();
+ } else if ("status".equals(fieldName)) {
+ deserializedVirtualHardDiskProperties.status = VirtualHardDiskStatus.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedVirtualHardDiskProperties;
+ });
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualHardDisksInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualHardDisksInner.java
new file mode 100644
index 000000000000..c06dc83ca651
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualHardDisksInner.java
@@ -0,0 +1,418 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurestackhci.models.DiskFileFormat;
+import com.azure.resourcemanager.azurestackhci.models.ExtendedLocation;
+import com.azure.resourcemanager.azurestackhci.models.HyperVGeneration;
+import com.azure.resourcemanager.azurestackhci.models.ProvisioningStateEnum;
+import com.azure.resourcemanager.azurestackhci.models.VirtualHardDiskStatus;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * The virtual hard disk resource definition.
+ */
+@Fluent
+public final class VirtualHardDisksInner extends Resource {
+ /*
+ * Properties under the virtual hard disk resource
+ */
+ private VirtualHardDiskProperties innerProperties;
+
+ /*
+ * The extendedLocation of the resource.
+ */
+ private ExtendedLocation extendedLocation;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of VirtualHardDisksInner class.
+ */
+ public VirtualHardDisksInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Properties under the virtual hard disk resource.
+ *
+ * @return the innerProperties value.
+ */
+ private VirtualHardDiskProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the extendedLocation property: The extendedLocation of the resource.
+ *
+ * @return the extendedLocation value.
+ */
+ public ExtendedLocation extendedLocation() {
+ return this.extendedLocation;
+ }
+
+ /**
+ * Set the extendedLocation property: The extendedLocation of the resource.
+ *
+ * @param extendedLocation the extendedLocation value to set.
+ * @return the VirtualHardDisksInner object itself.
+ */
+ public VirtualHardDisksInner withExtendedLocation(ExtendedLocation extendedLocation) {
+ this.extendedLocation = extendedLocation;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public VirtualHardDisksInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public VirtualHardDisksInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the blockSizeBytes property: The blockSizeBytes property.
+ *
+ * @return the blockSizeBytes value.
+ */
+ public Integer blockSizeBytes() {
+ return this.innerProperties() == null ? null : this.innerProperties().blockSizeBytes();
+ }
+
+ /**
+ * Set the blockSizeBytes property: The blockSizeBytes property.
+ *
+ * @param blockSizeBytes the blockSizeBytes value to set.
+ * @return the VirtualHardDisksInner object itself.
+ */
+ public VirtualHardDisksInner withBlockSizeBytes(Integer blockSizeBytes) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualHardDiskProperties();
+ }
+ this.innerProperties().withBlockSizeBytes(blockSizeBytes);
+ return this;
+ }
+
+ /**
+ * Get the diskSizeGB property: Size of the disk in GB.
+ *
+ * @return the diskSizeGB value.
+ */
+ public Long diskSizeGB() {
+ return this.innerProperties() == null ? null : this.innerProperties().diskSizeGB();
+ }
+
+ /**
+ * Set the diskSizeGB property: Size of the disk in GB.
+ *
+ * @param diskSizeGB the diskSizeGB value to set.
+ * @return the VirtualHardDisksInner object itself.
+ */
+ public VirtualHardDisksInner withDiskSizeGB(Long diskSizeGB) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualHardDiskProperties();
+ }
+ this.innerProperties().withDiskSizeGB(diskSizeGB);
+ return this;
+ }
+
+ /**
+ * Get the dynamic property: Boolean for enabling dynamic sizing on the virtual hard disk.
+ *
+ * @return the dynamic value.
+ */
+ public Boolean dynamic() {
+ return this.innerProperties() == null ? null : this.innerProperties().dynamic();
+ }
+
+ /**
+ * Set the dynamic property: Boolean for enabling dynamic sizing on the virtual hard disk.
+ *
+ * @param dynamic the dynamic value to set.
+ * @return the VirtualHardDisksInner object itself.
+ */
+ public VirtualHardDisksInner withDynamic(Boolean dynamic) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualHardDiskProperties();
+ }
+ this.innerProperties().withDynamic(dynamic);
+ return this;
+ }
+
+ /**
+ * Get the logicalSectorBytes property: The logicalSectorBytes property.
+ *
+ * @return the logicalSectorBytes value.
+ */
+ public Integer logicalSectorBytes() {
+ return this.innerProperties() == null ? null : this.innerProperties().logicalSectorBytes();
+ }
+
+ /**
+ * Set the logicalSectorBytes property: The logicalSectorBytes property.
+ *
+ * @param logicalSectorBytes the logicalSectorBytes value to set.
+ * @return the VirtualHardDisksInner object itself.
+ */
+ public VirtualHardDisksInner withLogicalSectorBytes(Integer logicalSectorBytes) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualHardDiskProperties();
+ }
+ this.innerProperties().withLogicalSectorBytes(logicalSectorBytes);
+ return this;
+ }
+
+ /**
+ * Get the physicalSectorBytes property: The physicalSectorBytes property.
+ *
+ * @return the physicalSectorBytes value.
+ */
+ public Integer physicalSectorBytes() {
+ return this.innerProperties() == null ? null : this.innerProperties().physicalSectorBytes();
+ }
+
+ /**
+ * Set the physicalSectorBytes property: The physicalSectorBytes property.
+ *
+ * @param physicalSectorBytes the physicalSectorBytes value to set.
+ * @return the VirtualHardDisksInner object itself.
+ */
+ public VirtualHardDisksInner withPhysicalSectorBytes(Integer physicalSectorBytes) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualHardDiskProperties();
+ }
+ this.innerProperties().withPhysicalSectorBytes(physicalSectorBytes);
+ return this;
+ }
+
+ /**
+ * Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine [V1, V2].
+ *
+ * @return the hyperVGeneration value.
+ */
+ public HyperVGeneration hyperVGeneration() {
+ return this.innerProperties() == null ? null : this.innerProperties().hyperVGeneration();
+ }
+
+ /**
+ * Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine [V1, V2].
+ *
+ * @param hyperVGeneration the hyperVGeneration value to set.
+ * @return the VirtualHardDisksInner object itself.
+ */
+ public VirtualHardDisksInner withHyperVGeneration(HyperVGeneration hyperVGeneration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualHardDiskProperties();
+ }
+ this.innerProperties().withHyperVGeneration(hyperVGeneration);
+ return this;
+ }
+
+ /**
+ * Get the diskFileFormat property: The format of the actual VHD file [vhd, vhdx].
+ *
+ * @return the diskFileFormat value.
+ */
+ public DiskFileFormat diskFileFormat() {
+ return this.innerProperties() == null ? null : this.innerProperties().diskFileFormat();
+ }
+
+ /**
+ * Set the diskFileFormat property: The format of the actual VHD file [vhd, vhdx].
+ *
+ * @param diskFileFormat the diskFileFormat value to set.
+ * @return the VirtualHardDisksInner object itself.
+ */
+ public VirtualHardDisksInner withDiskFileFormat(DiskFileFormat diskFileFormat) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualHardDiskProperties();
+ }
+ this.innerProperties().withDiskFileFormat(diskFileFormat);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the virtual hard disk.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningStateEnum provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the containerId property: Storage ContainerID of the storage container to be used for VHD.
+ *
+ * @return the containerId value.
+ */
+ public String containerId() {
+ return this.innerProperties() == null ? null : this.innerProperties().containerId();
+ }
+
+ /**
+ * Set the containerId property: Storage ContainerID of the storage container to be used for VHD.
+ *
+ * @param containerId the containerId value to set.
+ * @return the VirtualHardDisksInner object itself.
+ */
+ public VirtualHardDisksInner withContainerId(String containerId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualHardDiskProperties();
+ }
+ this.innerProperties().withContainerId(containerId);
+ return this;
+ }
+
+ /**
+ * Get the status property: The observed state of virtual hard disks.
+ *
+ * @return the status value.
+ */
+ public VirtualHardDiskStatus status() {
+ return this.innerProperties() == null ? null : this.innerProperties().status();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ if (extendedLocation() != null) {
+ extendedLocation().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeJsonField("extendedLocation", this.extendedLocation);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of VirtualHardDisksInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of VirtualHardDisksInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the VirtualHardDisksInner.
+ */
+ public static VirtualHardDisksInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ VirtualHardDisksInner deserializedVirtualHardDisksInner = new VirtualHardDisksInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedVirtualHardDisksInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedVirtualHardDisksInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedVirtualHardDisksInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedVirtualHardDisksInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedVirtualHardDisksInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedVirtualHardDisksInner.innerProperties = VirtualHardDiskProperties.fromJson(reader);
+ } else if ("extendedLocation".equals(fieldName)) {
+ deserializedVirtualHardDisksInner.extendedLocation = ExtendedLocation.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedVirtualHardDisksInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedVirtualHardDisksInner;
+ });
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualMachineInstanceInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualMachineInstanceInner.java
new file mode 100644
index 000000000000..d3e4397f679b
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualMachineInstanceInner.java
@@ -0,0 +1,461 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurestackhci.models.ExtendedLocation;
+import com.azure.resourcemanager.azurestackhci.models.GuestAgentInstallStatus;
+import com.azure.resourcemanager.azurestackhci.models.HttpProxyConfiguration;
+import com.azure.resourcemanager.azurestackhci.models.Identity;
+import com.azure.resourcemanager.azurestackhci.models.ProvisioningStateEnum;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstancePropertiesHardwareProfile;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstancePropertiesNetworkProfile;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstancePropertiesOsProfile;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstancePropertiesSecurityProfile;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstancePropertiesStorageProfile;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstanceStatus;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstanceView;
+import java.io.IOException;
+
+/**
+ * The virtual machine instance resource definition.
+ */
+@Fluent
+public final class VirtualMachineInstanceInner extends ProxyResource {
+ /*
+ * Properties under the virtual machine instance resource
+ */
+ private VirtualMachineInstanceProperties innerProperties;
+
+ /*
+ * The extendedLocation of the resource.
+ */
+ private ExtendedLocation extendedLocation;
+
+ /*
+ * Identity for the resource.
+ */
+ private Identity identity;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of VirtualMachineInstanceInner class.
+ */
+ public VirtualMachineInstanceInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Properties under the virtual machine instance resource.
+ *
+ * @return the innerProperties value.
+ */
+ private VirtualMachineInstanceProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the extendedLocation property: The extendedLocation of the resource.
+ *
+ * @return the extendedLocation value.
+ */
+ public ExtendedLocation extendedLocation() {
+ return this.extendedLocation;
+ }
+
+ /**
+ * Set the extendedLocation property: The extendedLocation of the resource.
+ *
+ * @param extendedLocation the extendedLocation value to set.
+ * @return the VirtualMachineInstanceInner object itself.
+ */
+ public VirtualMachineInstanceInner withExtendedLocation(ExtendedLocation extendedLocation) {
+ this.extendedLocation = extendedLocation;
+ return this;
+ }
+
+ /**
+ * Get the identity property: Identity for the resource.
+ *
+ * @return the identity value.
+ */
+ public Identity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: Identity for the resource.
+ *
+ * @param identity the identity value to set.
+ * @return the VirtualMachineInstanceInner object itself.
+ */
+ public VirtualMachineInstanceInner withIdentity(Identity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the hardwareProfile property: HardwareProfile - Specifies the hardware settings for the virtual machine
+ * instance.
+ *
+ * @return the hardwareProfile value.
+ */
+ public VirtualMachineInstancePropertiesHardwareProfile hardwareProfile() {
+ return this.innerProperties() == null ? null : this.innerProperties().hardwareProfile();
+ }
+
+ /**
+ * Set the hardwareProfile property: HardwareProfile - Specifies the hardware settings for the virtual machine
+ * instance.
+ *
+ * @param hardwareProfile the hardwareProfile value to set.
+ * @return the VirtualMachineInstanceInner object itself.
+ */
+ public VirtualMachineInstanceInner
+ withHardwareProfile(VirtualMachineInstancePropertiesHardwareProfile hardwareProfile) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualMachineInstanceProperties();
+ }
+ this.innerProperties().withHardwareProfile(hardwareProfile);
+ return this;
+ }
+
+ /**
+ * Get the networkProfile property: NetworkProfile - describes the network configuration the virtual machine
+ * instance.
+ *
+ * @return the networkProfile value.
+ */
+ public VirtualMachineInstancePropertiesNetworkProfile networkProfile() {
+ return this.innerProperties() == null ? null : this.innerProperties().networkProfile();
+ }
+
+ /**
+ * Set the networkProfile property: NetworkProfile - describes the network configuration the virtual machine
+ * instance.
+ *
+ * @param networkProfile the networkProfile value to set.
+ * @return the VirtualMachineInstanceInner object itself.
+ */
+ public VirtualMachineInstanceInner
+ withNetworkProfile(VirtualMachineInstancePropertiesNetworkProfile networkProfile) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualMachineInstanceProperties();
+ }
+ this.innerProperties().withNetworkProfile(networkProfile);
+ return this;
+ }
+
+ /**
+ * Get the osProfile property: OsProfile - describes the configuration of the operating system and sets login data.
+ *
+ * @return the osProfile value.
+ */
+ public VirtualMachineInstancePropertiesOsProfile osProfile() {
+ return this.innerProperties() == null ? null : this.innerProperties().osProfile();
+ }
+
+ /**
+ * Set the osProfile property: OsProfile - describes the configuration of the operating system and sets login data.
+ *
+ * @param osProfile the osProfile value to set.
+ * @return the VirtualMachineInstanceInner object itself.
+ */
+ public VirtualMachineInstanceInner withOsProfile(VirtualMachineInstancePropertiesOsProfile osProfile) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualMachineInstanceProperties();
+ }
+ this.innerProperties().withOsProfile(osProfile);
+ return this;
+ }
+
+ /**
+ * Get the securityProfile property: SecurityProfile - Specifies the security settings for the virtual machine
+ * instance.
+ *
+ * @return the securityProfile value.
+ */
+ public VirtualMachineInstancePropertiesSecurityProfile securityProfile() {
+ return this.innerProperties() == null ? null : this.innerProperties().securityProfile();
+ }
+
+ /**
+ * Set the securityProfile property: SecurityProfile - Specifies the security settings for the virtual machine
+ * instance.
+ *
+ * @param securityProfile the securityProfile value to set.
+ * @return the VirtualMachineInstanceInner object itself.
+ */
+ public VirtualMachineInstanceInner
+ withSecurityProfile(VirtualMachineInstancePropertiesSecurityProfile securityProfile) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualMachineInstanceProperties();
+ }
+ this.innerProperties().withSecurityProfile(securityProfile);
+ return this;
+ }
+
+ /**
+ * Get the storageProfile property: StorageProfile - contains information about the disks and storage information
+ * for the virtual machine instance.
+ *
+ * @return the storageProfile value.
+ */
+ public VirtualMachineInstancePropertiesStorageProfile storageProfile() {
+ return this.innerProperties() == null ? null : this.innerProperties().storageProfile();
+ }
+
+ /**
+ * Set the storageProfile property: StorageProfile - contains information about the disks and storage information
+ * for the virtual machine instance.
+ *
+ * @param storageProfile the storageProfile value to set.
+ * @return the VirtualMachineInstanceInner object itself.
+ */
+ public VirtualMachineInstanceInner
+ withStorageProfile(VirtualMachineInstancePropertiesStorageProfile storageProfile) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualMachineInstanceProperties();
+ }
+ this.innerProperties().withStorageProfile(storageProfile);
+ return this;
+ }
+
+ /**
+ * Get the httpProxyConfig property: HTTP Proxy configuration for the VM.
+ *
+ * @return the httpProxyConfig value.
+ */
+ public HttpProxyConfiguration httpProxyConfig() {
+ return this.innerProperties() == null ? null : this.innerProperties().httpProxyConfig();
+ }
+
+ /**
+ * Set the httpProxyConfig property: HTTP Proxy configuration for the VM.
+ *
+ * @param httpProxyConfig the httpProxyConfig value to set.
+ * @return the VirtualMachineInstanceInner object itself.
+ */
+ public VirtualMachineInstanceInner withHttpProxyConfig(HttpProxyConfiguration httpProxyConfig) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualMachineInstanceProperties();
+ }
+ this.innerProperties().withHttpProxyConfig(httpProxyConfig);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the virtual machine instance.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningStateEnum provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the instanceView property: The virtual machine instance view.
+ *
+ * @return the instanceView value.
+ */
+ public VirtualMachineInstanceView instanceView() {
+ return this.innerProperties() == null ? null : this.innerProperties().instanceView();
+ }
+
+ /**
+ * Get the status property: The observed state of virtual machine instances.
+ *
+ * @return the status value.
+ */
+ public VirtualMachineInstanceStatus status() {
+ return this.innerProperties() == null ? null : this.innerProperties().status();
+ }
+
+ /**
+ * Get the guestAgentInstallStatus property: Guest agent install status.
+ *
+ * @return the guestAgentInstallStatus value.
+ */
+ public GuestAgentInstallStatus guestAgentInstallStatus() {
+ return this.innerProperties() == null ? null : this.innerProperties().guestAgentInstallStatus();
+ }
+
+ /**
+ * Set the guestAgentInstallStatus property: Guest agent install status.
+ *
+ * @param guestAgentInstallStatus the guestAgentInstallStatus value to set.
+ * @return the VirtualMachineInstanceInner object itself.
+ */
+ public VirtualMachineInstanceInner withGuestAgentInstallStatus(GuestAgentInstallStatus guestAgentInstallStatus) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualMachineInstanceProperties();
+ }
+ this.innerProperties().withGuestAgentInstallStatus(guestAgentInstallStatus);
+ return this;
+ }
+
+ /**
+ * Get the vmId property: Unique identifier for the vm resource.
+ *
+ * @return the vmId value.
+ */
+ public String vmId() {
+ return this.innerProperties() == null ? null : this.innerProperties().vmId();
+ }
+
+ /**
+ * Get the resourceUid property: Unique identifier defined by ARC to identify the guest of the VM.
+ *
+ * @return the resourceUid value.
+ */
+ public String resourceUid() {
+ return this.innerProperties() == null ? null : this.innerProperties().resourceUid();
+ }
+
+ /**
+ * Set the resourceUid property: Unique identifier defined by ARC to identify the guest of the VM.
+ *
+ * @param resourceUid the resourceUid value to set.
+ * @return the VirtualMachineInstanceInner object itself.
+ */
+ public VirtualMachineInstanceInner withResourceUid(String resourceUid) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualMachineInstanceProperties();
+ }
+ this.innerProperties().withResourceUid(resourceUid);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ if (extendedLocation() != null) {
+ extendedLocation().validate();
+ }
+ if (identity() != null) {
+ identity().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeJsonField("extendedLocation", this.extendedLocation);
+ jsonWriter.writeJsonField("identity", this.identity);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of VirtualMachineInstanceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of VirtualMachineInstanceInner if the JsonReader was pointing to an instance of it, or null
+ * if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the VirtualMachineInstanceInner.
+ */
+ public static VirtualMachineInstanceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ VirtualMachineInstanceInner deserializedVirtualMachineInstanceInner = new VirtualMachineInstanceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedVirtualMachineInstanceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedVirtualMachineInstanceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedVirtualMachineInstanceInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedVirtualMachineInstanceInner.innerProperties
+ = VirtualMachineInstanceProperties.fromJson(reader);
+ } else if ("extendedLocation".equals(fieldName)) {
+ deserializedVirtualMachineInstanceInner.extendedLocation = ExtendedLocation.fromJson(reader);
+ } else if ("identity".equals(fieldName)) {
+ deserializedVirtualMachineInstanceInner.identity = Identity.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedVirtualMachineInstanceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedVirtualMachineInstanceInner;
+ });
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualMachineInstanceProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualMachineInstanceProperties.java
new file mode 100644
index 000000000000..f00aa6be050c
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualMachineInstanceProperties.java
@@ -0,0 +1,413 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurestackhci.models.GuestAgentInstallStatus;
+import com.azure.resourcemanager.azurestackhci.models.HttpProxyConfiguration;
+import com.azure.resourcemanager.azurestackhci.models.ProvisioningStateEnum;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstancePropertiesHardwareProfile;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstancePropertiesNetworkProfile;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstancePropertiesOsProfile;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstancePropertiesSecurityProfile;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstancePropertiesStorageProfile;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstanceStatus;
+import com.azure.resourcemanager.azurestackhci.models.VirtualMachineInstanceView;
+import java.io.IOException;
+
+/**
+ * Properties under the virtual machine instance resource.
+ */
+@Fluent
+public final class VirtualMachineInstanceProperties implements JsonSerializable {
+ /*
+ * HardwareProfile - Specifies the hardware settings for the virtual machine instance.
+ */
+ private VirtualMachineInstancePropertiesHardwareProfile hardwareProfile;
+
+ /*
+ * NetworkProfile - describes the network configuration the virtual machine instance
+ */
+ private VirtualMachineInstancePropertiesNetworkProfile networkProfile;
+
+ /*
+ * OsProfile - describes the configuration of the operating system and sets login data
+ */
+ private VirtualMachineInstancePropertiesOsProfile osProfile;
+
+ /*
+ * SecurityProfile - Specifies the security settings for the virtual machine instance.
+ */
+ private VirtualMachineInstancePropertiesSecurityProfile securityProfile;
+
+ /*
+ * StorageProfile - contains information about the disks and storage information for the virtual machine instance
+ */
+ private VirtualMachineInstancePropertiesStorageProfile storageProfile;
+
+ /*
+ * HTTP Proxy configuration for the VM.
+ */
+ private HttpProxyConfiguration httpProxyConfig;
+
+ /*
+ * Provisioning state of the virtual machine instance.
+ */
+ private ProvisioningStateEnum provisioningState;
+
+ /*
+ * The virtual machine instance view.
+ */
+ private VirtualMachineInstanceView instanceView;
+
+ /*
+ * The observed state of virtual machine instances
+ */
+ private VirtualMachineInstanceStatus status;
+
+ /*
+ * Guest agent install status.
+ */
+ private GuestAgentInstallStatus guestAgentInstallStatus;
+
+ /*
+ * Unique identifier for the vm resource.
+ */
+ private String vmId;
+
+ /*
+ * Unique identifier defined by ARC to identify the guest of the VM.
+ */
+ private String resourceUid;
+
+ /**
+ * Creates an instance of VirtualMachineInstanceProperties class.
+ */
+ public VirtualMachineInstanceProperties() {
+ }
+
+ /**
+ * Get the hardwareProfile property: HardwareProfile - Specifies the hardware settings for the virtual machine
+ * instance.
+ *
+ * @return the hardwareProfile value.
+ */
+ public VirtualMachineInstancePropertiesHardwareProfile hardwareProfile() {
+ return this.hardwareProfile;
+ }
+
+ /**
+ * Set the hardwareProfile property: HardwareProfile - Specifies the hardware settings for the virtual machine
+ * instance.
+ *
+ * @param hardwareProfile the hardwareProfile value to set.
+ * @return the VirtualMachineInstanceProperties object itself.
+ */
+ public VirtualMachineInstanceProperties
+ withHardwareProfile(VirtualMachineInstancePropertiesHardwareProfile hardwareProfile) {
+ this.hardwareProfile = hardwareProfile;
+ return this;
+ }
+
+ /**
+ * Get the networkProfile property: NetworkProfile - describes the network configuration the virtual machine
+ * instance.
+ *
+ * @return the networkProfile value.
+ */
+ public VirtualMachineInstancePropertiesNetworkProfile networkProfile() {
+ return this.networkProfile;
+ }
+
+ /**
+ * Set the networkProfile property: NetworkProfile - describes the network configuration the virtual machine
+ * instance.
+ *
+ * @param networkProfile the networkProfile value to set.
+ * @return the VirtualMachineInstanceProperties object itself.
+ */
+ public VirtualMachineInstanceProperties
+ withNetworkProfile(VirtualMachineInstancePropertiesNetworkProfile networkProfile) {
+ this.networkProfile = networkProfile;
+ return this;
+ }
+
+ /**
+ * Get the osProfile property: OsProfile - describes the configuration of the operating system and sets login data.
+ *
+ * @return the osProfile value.
+ */
+ public VirtualMachineInstancePropertiesOsProfile osProfile() {
+ return this.osProfile;
+ }
+
+ /**
+ * Set the osProfile property: OsProfile - describes the configuration of the operating system and sets login data.
+ *
+ * @param osProfile the osProfile value to set.
+ * @return the VirtualMachineInstanceProperties object itself.
+ */
+ public VirtualMachineInstanceProperties withOsProfile(VirtualMachineInstancePropertiesOsProfile osProfile) {
+ this.osProfile = osProfile;
+ return this;
+ }
+
+ /**
+ * Get the securityProfile property: SecurityProfile - Specifies the security settings for the virtual machine
+ * instance.
+ *
+ * @return the securityProfile value.
+ */
+ public VirtualMachineInstancePropertiesSecurityProfile securityProfile() {
+ return this.securityProfile;
+ }
+
+ /**
+ * Set the securityProfile property: SecurityProfile - Specifies the security settings for the virtual machine
+ * instance.
+ *
+ * @param securityProfile the securityProfile value to set.
+ * @return the VirtualMachineInstanceProperties object itself.
+ */
+ public VirtualMachineInstanceProperties
+ withSecurityProfile(VirtualMachineInstancePropertiesSecurityProfile securityProfile) {
+ this.securityProfile = securityProfile;
+ return this;
+ }
+
+ /**
+ * Get the storageProfile property: StorageProfile - contains information about the disks and storage information
+ * for the virtual machine instance.
+ *
+ * @return the storageProfile value.
+ */
+ public VirtualMachineInstancePropertiesStorageProfile storageProfile() {
+ return this.storageProfile;
+ }
+
+ /**
+ * Set the storageProfile property: StorageProfile - contains information about the disks and storage information
+ * for the virtual machine instance.
+ *
+ * @param storageProfile the storageProfile value to set.
+ * @return the VirtualMachineInstanceProperties object itself.
+ */
+ public VirtualMachineInstanceProperties
+ withStorageProfile(VirtualMachineInstancePropertiesStorageProfile storageProfile) {
+ this.storageProfile = storageProfile;
+ return this;
+ }
+
+ /**
+ * Get the httpProxyConfig property: HTTP Proxy configuration for the VM.
+ *
+ * @return the httpProxyConfig value.
+ */
+ public HttpProxyConfiguration httpProxyConfig() {
+ return this.httpProxyConfig;
+ }
+
+ /**
+ * Set the httpProxyConfig property: HTTP Proxy configuration for the VM.
+ *
+ * @param httpProxyConfig the httpProxyConfig value to set.
+ * @return the VirtualMachineInstanceProperties object itself.
+ */
+ public VirtualMachineInstanceProperties withHttpProxyConfig(HttpProxyConfiguration httpProxyConfig) {
+ this.httpProxyConfig = httpProxyConfig;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the virtual machine instance.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningStateEnum provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the instanceView property: The virtual machine instance view.
+ *
+ * @return the instanceView value.
+ */
+ public VirtualMachineInstanceView instanceView() {
+ return this.instanceView;
+ }
+
+ /**
+ * Get the status property: The observed state of virtual machine instances.
+ *
+ * @return the status value.
+ */
+ public VirtualMachineInstanceStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Get the guestAgentInstallStatus property: Guest agent install status.
+ *
+ * @return the guestAgentInstallStatus value.
+ */
+ public GuestAgentInstallStatus guestAgentInstallStatus() {
+ return this.guestAgentInstallStatus;
+ }
+
+ /**
+ * Set the guestAgentInstallStatus property: Guest agent install status.
+ *
+ * @param guestAgentInstallStatus the guestAgentInstallStatus value to set.
+ * @return the VirtualMachineInstanceProperties object itself.
+ */
+ public VirtualMachineInstanceProperties
+ withGuestAgentInstallStatus(GuestAgentInstallStatus guestAgentInstallStatus) {
+ this.guestAgentInstallStatus = guestAgentInstallStatus;
+ return this;
+ }
+
+ /**
+ * Get the vmId property: Unique identifier for the vm resource.
+ *
+ * @return the vmId value.
+ */
+ public String vmId() {
+ return this.vmId;
+ }
+
+ /**
+ * Get the resourceUid property: Unique identifier defined by ARC to identify the guest of the VM.
+ *
+ * @return the resourceUid value.
+ */
+ public String resourceUid() {
+ return this.resourceUid;
+ }
+
+ /**
+ * Set the resourceUid property: Unique identifier defined by ARC to identify the guest of the VM.
+ *
+ * @param resourceUid the resourceUid value to set.
+ * @return the VirtualMachineInstanceProperties object itself.
+ */
+ public VirtualMachineInstanceProperties withResourceUid(String resourceUid) {
+ this.resourceUid = resourceUid;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (hardwareProfile() != null) {
+ hardwareProfile().validate();
+ }
+ if (networkProfile() != null) {
+ networkProfile().validate();
+ }
+ if (osProfile() != null) {
+ osProfile().validate();
+ }
+ if (securityProfile() != null) {
+ securityProfile().validate();
+ }
+ if (storageProfile() != null) {
+ storageProfile().validate();
+ }
+ if (httpProxyConfig() != null) {
+ httpProxyConfig().validate();
+ }
+ if (instanceView() != null) {
+ instanceView().validate();
+ }
+ if (status() != null) {
+ status().validate();
+ }
+ if (guestAgentInstallStatus() != null) {
+ guestAgentInstallStatus().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("hardwareProfile", this.hardwareProfile);
+ jsonWriter.writeJsonField("networkProfile", this.networkProfile);
+ jsonWriter.writeJsonField("osProfile", this.osProfile);
+ jsonWriter.writeJsonField("securityProfile", this.securityProfile);
+ jsonWriter.writeJsonField("storageProfile", this.storageProfile);
+ jsonWriter.writeJsonField("httpProxyConfig", this.httpProxyConfig);
+ jsonWriter.writeJsonField("guestAgentInstallStatus", this.guestAgentInstallStatus);
+ jsonWriter.writeStringField("resourceUid", this.resourceUid);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of VirtualMachineInstanceProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of VirtualMachineInstanceProperties if the JsonReader was pointing to an instance of it, or
+ * null if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the VirtualMachineInstanceProperties.
+ */
+ public static VirtualMachineInstanceProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ VirtualMachineInstanceProperties deserializedVirtualMachineInstanceProperties
+ = new VirtualMachineInstanceProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("hardwareProfile".equals(fieldName)) {
+ deserializedVirtualMachineInstanceProperties.hardwareProfile
+ = VirtualMachineInstancePropertiesHardwareProfile.fromJson(reader);
+ } else if ("networkProfile".equals(fieldName)) {
+ deserializedVirtualMachineInstanceProperties.networkProfile
+ = VirtualMachineInstancePropertiesNetworkProfile.fromJson(reader);
+ } else if ("osProfile".equals(fieldName)) {
+ deserializedVirtualMachineInstanceProperties.osProfile
+ = VirtualMachineInstancePropertiesOsProfile.fromJson(reader);
+ } else if ("securityProfile".equals(fieldName)) {
+ deserializedVirtualMachineInstanceProperties.securityProfile
+ = VirtualMachineInstancePropertiesSecurityProfile.fromJson(reader);
+ } else if ("storageProfile".equals(fieldName)) {
+ deserializedVirtualMachineInstanceProperties.storageProfile
+ = VirtualMachineInstancePropertiesStorageProfile.fromJson(reader);
+ } else if ("httpProxyConfig".equals(fieldName)) {
+ deserializedVirtualMachineInstanceProperties.httpProxyConfig
+ = HttpProxyConfiguration.fromJson(reader);
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedVirtualMachineInstanceProperties.provisioningState
+ = ProvisioningStateEnum.fromString(reader.getString());
+ } else if ("instanceView".equals(fieldName)) {
+ deserializedVirtualMachineInstanceProperties.instanceView
+ = VirtualMachineInstanceView.fromJson(reader);
+ } else if ("status".equals(fieldName)) {
+ deserializedVirtualMachineInstanceProperties.status = VirtualMachineInstanceStatus.fromJson(reader);
+ } else if ("guestAgentInstallStatus".equals(fieldName)) {
+ deserializedVirtualMachineInstanceProperties.guestAgentInstallStatus
+ = GuestAgentInstallStatus.fromJson(reader);
+ } else if ("vmId".equals(fieldName)) {
+ deserializedVirtualMachineInstanceProperties.vmId = reader.getString();
+ } else if ("resourceUid".equals(fieldName)) {
+ deserializedVirtualMachineInstanceProperties.resourceUid = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedVirtualMachineInstanceProperties;
+ });
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcIdentityResponseImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcIdentityResponseImpl.java
index 54ac1517757b..9bc836de20d3 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcIdentityResponseImpl.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcIdentityResponseImpl.java
@@ -10,10 +10,10 @@
public final class ArcIdentityResponseImpl implements ArcIdentityResponse {
private ArcIdentityResponseInner innerObject;
- private final com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager;
+ private final com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager;
ArcIdentityResponseImpl(ArcIdentityResponseInner innerObject,
- com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
+ com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}
@@ -38,7 +38,7 @@ public ArcIdentityResponseInner innerModel() {
return this.innerObject;
}
- private com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager() {
+ private com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager() {
return this.serviceManager;
}
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcSettingImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcSettingImpl.java
index 36a7f582212d..fcf07600ca48 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcSettingImpl.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcSettingImpl.java
@@ -23,7 +23,7 @@
public final class ArcSettingImpl implements ArcSetting, ArcSetting.Definition, ArcSetting.Update {
private ArcSettingInner innerObject;
- private final com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager;
+ private final com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager;
public String id() {
return this.innerModel().id();
@@ -99,7 +99,7 @@ public ArcSettingInner innerModel() {
return this.innerObject;
}
- private com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager() {
+ private com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager() {
return this.serviceManager;
}
@@ -133,7 +133,7 @@ public ArcSetting create(Context context) {
return this;
}
- ArcSettingImpl(String name, com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
+ ArcSettingImpl(String name, com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager) {
this.innerObject = new ArcSettingInner();
this.serviceManager = serviceManager;
this.arcSettingName = name;
@@ -161,7 +161,7 @@ public ArcSetting apply(Context context) {
}
ArcSettingImpl(ArcSettingInner innerObject,
- com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
+ com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcSettingsImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcSettingsImpl.java
index 6763384442bd..b6db532bd919 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcSettingsImpl.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcSettingsImpl.java
@@ -23,10 +23,10 @@ public final class ArcSettingsImpl implements ArcSettings {
private final ArcSettingsClient innerClient;
- private final com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager;
+ private final com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager;
public ArcSettingsImpl(ArcSettingsClient innerClient,
- com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
+ com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}
@@ -226,7 +226,7 @@ private ArcSettingsClient serviceClient() {
return this.innerClient;
}
- private com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager() {
+ private com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager() {
return this.serviceManager;
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/AzureStackHciClientBuilder.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/AzureStackHciClientBuilder.java
index 8a91bf54edb8..3f101035c8aa 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/AzureStackHciClientBuilder.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/AzureStackHciClientBuilder.java
@@ -20,12 +20,12 @@
@ServiceClientBuilder(serviceClients = { AzureStackHciClientImpl.class })
public final class AzureStackHciClientBuilder {
/*
- * The ID of the target subscription. The value must be an UUID.
+ * The ID of the target subscription.
*/
private String subscriptionId;
/**
- * Sets The ID of the target subscription. The value must be an UUID.
+ * Sets The ID of the target subscription.
*
* @param subscriptionId the subscriptionId value.
* @return the AzureStackHciClientBuilder.
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/AzureStackHciClientImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/AzureStackHciClientImpl.java
index 1a75e162c02e..b3f1328c6fa6 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/AzureStackHciClientImpl.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/AzureStackHciClientImpl.java
@@ -13,8 +13,8 @@
import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.exception.ManagementError;
import com.azure.core.management.exception.ManagementException;
-import com.azure.core.management.polling.PollerFactory;
import com.azure.core.management.polling.PollResult;
+import com.azure.core.management.polling.PollerFactory;
import com.azure.core.util.Context;
import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
@@ -29,14 +29,24 @@
import com.azure.resourcemanager.azurestackhci.fluent.DeploymentSettingsClient;
import com.azure.resourcemanager.azurestackhci.fluent.EdgeDevicesClient;
import com.azure.resourcemanager.azurestackhci.fluent.ExtensionsClient;
+import com.azure.resourcemanager.azurestackhci.fluent.GalleryImagesOperationsClient;
+import com.azure.resourcemanager.azurestackhci.fluent.GuestAgentsClient;
+import com.azure.resourcemanager.azurestackhci.fluent.GuestAgentsOperationsClient;
+import com.azure.resourcemanager.azurestackhci.fluent.HybridIdentityMetadatasClient;
+import com.azure.resourcemanager.azurestackhci.fluent.LogicalNetworksOperationsClient;
+import com.azure.resourcemanager.azurestackhci.fluent.MarketplaceGalleryImagesOperationsClient;
+import com.azure.resourcemanager.azurestackhci.fluent.NetworkInterfacesOperationsClient;
import com.azure.resourcemanager.azurestackhci.fluent.OffersClient;
import com.azure.resourcemanager.azurestackhci.fluent.OperationsClient;
import com.azure.resourcemanager.azurestackhci.fluent.PublishersClient;
import com.azure.resourcemanager.azurestackhci.fluent.SecuritySettingsClient;
import com.azure.resourcemanager.azurestackhci.fluent.SkusClient;
+import com.azure.resourcemanager.azurestackhci.fluent.StorageContainersOperationsClient;
import com.azure.resourcemanager.azurestackhci.fluent.UpdateRunsClient;
-import com.azure.resourcemanager.azurestackhci.fluent.UpdatesClient;
import com.azure.resourcemanager.azurestackhci.fluent.UpdateSummariesOperationsClient;
+import com.azure.resourcemanager.azurestackhci.fluent.UpdatesClient;
+import com.azure.resourcemanager.azurestackhci.fluent.VirtualHardDisksOperationsClient;
+import com.azure.resourcemanager.azurestackhci.fluent.VirtualMachineInstancesClient;
import java.io.IOException;
import java.lang.reflect.Type;
import java.nio.ByteBuffer;
@@ -52,12 +62,12 @@
@ServiceClient(builder = AzureStackHciClientBuilder.class)
public final class AzureStackHciClientImpl implements AzureStackHciClient {
/**
- * The ID of the target subscription. The value must be an UUID.
+ * The ID of the target subscription.
*/
private final String subscriptionId;
/**
- * Gets The ID of the target subscription. The value must be an UUID.
+ * Gets The ID of the target subscription.
*
* @return the subscriptionId value.
*/
@@ -205,6 +215,62 @@ public ExtensionsClient getExtensions() {
return this.extensions;
}
+ /**
+ * The GalleryImagesOperationsClient object to access its operations.
+ */
+ private final GalleryImagesOperationsClient galleryImagesOperations;
+
+ /**
+ * Gets the GalleryImagesOperationsClient object to access its operations.
+ *
+ * @return the GalleryImagesOperationsClient object.
+ */
+ public GalleryImagesOperationsClient getGalleryImagesOperations() {
+ return this.galleryImagesOperations;
+ }
+
+ /**
+ * The LogicalNetworksOperationsClient object to access its operations.
+ */
+ private final LogicalNetworksOperationsClient logicalNetworksOperations;
+
+ /**
+ * Gets the LogicalNetworksOperationsClient object to access its operations.
+ *
+ * @return the LogicalNetworksOperationsClient object.
+ */
+ public LogicalNetworksOperationsClient getLogicalNetworksOperations() {
+ return this.logicalNetworksOperations;
+ }
+
+ /**
+ * The MarketplaceGalleryImagesOperationsClient object to access its operations.
+ */
+ private final MarketplaceGalleryImagesOperationsClient marketplaceGalleryImagesOperations;
+
+ /**
+ * Gets the MarketplaceGalleryImagesOperationsClient object to access its operations.
+ *
+ * @return the MarketplaceGalleryImagesOperationsClient object.
+ */
+ public MarketplaceGalleryImagesOperationsClient getMarketplaceGalleryImagesOperations() {
+ return this.marketplaceGalleryImagesOperations;
+ }
+
+ /**
+ * The NetworkInterfacesOperationsClient object to access its operations.
+ */
+ private final NetworkInterfacesOperationsClient networkInterfacesOperations;
+
+ /**
+ * Gets the NetworkInterfacesOperationsClient object to access its operations.
+ *
+ * @return the NetworkInterfacesOperationsClient object.
+ */
+ public NetworkInterfacesOperationsClient getNetworkInterfacesOperations() {
+ return this.networkInterfacesOperations;
+ }
+
/**
* The OffersClient object to access its operations.
*/
@@ -275,6 +341,20 @@ public SkusClient getSkus() {
return this.skus;
}
+ /**
+ * The StorageContainersOperationsClient object to access its operations.
+ */
+ private final StorageContainersOperationsClient storageContainersOperations;
+
+ /**
+ * Gets the StorageContainersOperationsClient object to access its operations.
+ *
+ * @return the StorageContainersOperationsClient object.
+ */
+ public StorageContainersOperationsClient getStorageContainersOperations() {
+ return this.storageContainersOperations;
+ }
+
/**
* The UpdateRunsClient object to access its operations.
*/
@@ -317,6 +397,76 @@ public UpdatesClient getUpdates() {
return this.updates;
}
+ /**
+ * The VirtualHardDisksOperationsClient object to access its operations.
+ */
+ private final VirtualHardDisksOperationsClient virtualHardDisksOperations;
+
+ /**
+ * Gets the VirtualHardDisksOperationsClient object to access its operations.
+ *
+ * @return the VirtualHardDisksOperationsClient object.
+ */
+ public VirtualHardDisksOperationsClient getVirtualHardDisksOperations() {
+ return this.virtualHardDisksOperations;
+ }
+
+ /**
+ * The VirtualMachineInstancesClient object to access its operations.
+ */
+ private final VirtualMachineInstancesClient virtualMachineInstances;
+
+ /**
+ * Gets the VirtualMachineInstancesClient object to access its operations.
+ *
+ * @return the VirtualMachineInstancesClient object.
+ */
+ public VirtualMachineInstancesClient getVirtualMachineInstances() {
+ return this.virtualMachineInstances;
+ }
+
+ /**
+ * The HybridIdentityMetadatasClient object to access its operations.
+ */
+ private final HybridIdentityMetadatasClient hybridIdentityMetadatas;
+
+ /**
+ * Gets the HybridIdentityMetadatasClient object to access its operations.
+ *
+ * @return the HybridIdentityMetadatasClient object.
+ */
+ public HybridIdentityMetadatasClient getHybridIdentityMetadatas() {
+ return this.hybridIdentityMetadatas;
+ }
+
+ /**
+ * The GuestAgentsClient object to access its operations.
+ */
+ private final GuestAgentsClient guestAgents;
+
+ /**
+ * Gets the GuestAgentsClient object to access its operations.
+ *
+ * @return the GuestAgentsClient object.
+ */
+ public GuestAgentsClient getGuestAgents() {
+ return this.guestAgents;
+ }
+
+ /**
+ * The GuestAgentsOperationsClient object to access its operations.
+ */
+ private final GuestAgentsOperationsClient guestAgentsOperations;
+
+ /**
+ * Gets the GuestAgentsOperationsClient object to access its operations.
+ *
+ * @return the GuestAgentsOperationsClient object.
+ */
+ public GuestAgentsOperationsClient getGuestAgentsOperations() {
+ return this.guestAgentsOperations;
+ }
+
/**
* Initializes an instance of AzureStackHciClient client.
*
@@ -324,7 +474,7 @@ public UpdatesClient getUpdates() {
* @param serializerAdapter The serializer to serialize an object into a string.
* @param defaultPollInterval The default poll interval for long-running operation.
* @param environment The Azure environment.
- * @param subscriptionId The ID of the target subscription. The value must be an UUID.
+ * @param subscriptionId The ID of the target subscription.
* @param endpoint server parameter.
*/
AzureStackHciClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter,
@@ -334,20 +484,30 @@ public UpdatesClient getUpdates() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2024-04-01";
+ this.apiVersion = "2024-01-01";
this.arcSettings = new ArcSettingsClientImpl(this);
this.clusters = new ClustersClientImpl(this);
this.deploymentSettings = new DeploymentSettingsClientImpl(this);
this.edgeDevices = new EdgeDevicesClientImpl(this);
this.extensions = new ExtensionsClientImpl(this);
+ this.galleryImagesOperations = new GalleryImagesOperationsClientImpl(this);
+ this.logicalNetworksOperations = new LogicalNetworksOperationsClientImpl(this);
+ this.marketplaceGalleryImagesOperations = new MarketplaceGalleryImagesOperationsClientImpl(this);
+ this.networkInterfacesOperations = new NetworkInterfacesOperationsClientImpl(this);
this.offers = new OffersClientImpl(this);
this.operations = new OperationsClientImpl(this);
this.publishers = new PublishersClientImpl(this);
this.securitySettings = new SecuritySettingsClientImpl(this);
this.skus = new SkusClientImpl(this);
+ this.storageContainersOperations = new StorageContainersOperationsClientImpl(this);
this.updateRuns = new UpdateRunsClientImpl(this);
this.updateSummariesOperations = new UpdateSummariesOperationsClientImpl(this);
this.updates = new UpdatesClientImpl(this);
+ this.virtualHardDisksOperations = new VirtualHardDisksOperationsClientImpl(this);
+ this.virtualMachineInstances = new VirtualMachineInstancesClientImpl(this);
+ this.hybridIdentityMetadatas = new HybridIdentityMetadatasClientImpl(this);
+ this.guestAgents = new GuestAgentsClientImpl(this);
+ this.guestAgentsOperations = new GuestAgentsOperationsClientImpl(this);
}
/**
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClusterIdentityResponseImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClusterIdentityResponseImpl.java
index 54b4e3a155b0..20118ebd6cd9 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClusterIdentityResponseImpl.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClusterIdentityResponseImpl.java
@@ -10,10 +10,10 @@
public final class ClusterIdentityResponseImpl implements ClusterIdentityResponse {
private ClusterIdentityResponseInner innerObject;
- private final com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager;
+ private final com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager;
ClusterIdentityResponseImpl(ClusterIdentityResponseInner innerObject,
- com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
+ com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}
@@ -38,7 +38,7 @@ public ClusterIdentityResponseInner innerModel() {
return this.innerObject;
}
- private com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager() {
+ private com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager() {
return this.serviceManager;
}
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClusterImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClusterImpl.java
index 93a05b49edbe..4c2497feb076 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClusterImpl.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClusterImpl.java
@@ -15,12 +15,8 @@
import com.azure.resourcemanager.azurestackhci.models.ClusterReportedProperties;
import com.azure.resourcemanager.azurestackhci.models.ConnectivityStatus;
import com.azure.resourcemanager.azurestackhci.models.IsolatedVmAttestationConfiguration;
-import com.azure.resourcemanager.azurestackhci.models.LogCollectionProperties;
-import com.azure.resourcemanager.azurestackhci.models.LogCollectionRequest;
import com.azure.resourcemanager.azurestackhci.models.ManagedServiceIdentityType;
import com.azure.resourcemanager.azurestackhci.models.ProvisioningState;
-import com.azure.resourcemanager.azurestackhci.models.RemoteSupportProperties;
-import com.azure.resourcemanager.azurestackhci.models.RemoteSupportRequest;
import com.azure.resourcemanager.azurestackhci.models.SoftwareAssuranceChangeRequest;
import com.azure.resourcemanager.azurestackhci.models.SoftwareAssuranceProperties;
import com.azure.resourcemanager.azurestackhci.models.Status;
@@ -34,7 +30,7 @@
public final class ClusterImpl implements Cluster, Cluster.Definition, Cluster.Update {
private ClusterInner innerObject;
- private final com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager;
+ private final com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager;
public String id() {
return this.innerModel().id();
@@ -126,14 +122,6 @@ public SoftwareAssuranceProperties softwareAssuranceProperties() {
return this.innerModel().softwareAssuranceProperties();
}
- public LogCollectionProperties logCollectionProperties() {
- return this.innerModel().logCollectionProperties();
- }
-
- public RemoteSupportProperties remoteSupportProperties() {
- return this.innerModel().remoteSupportProperties();
- }
-
public ClusterDesiredProperties desiredProperties() {
return this.innerModel().desiredProperties();
}
@@ -190,7 +178,7 @@ public ClusterInner innerModel() {
return this.innerObject;
}
- private com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager() {
+ private com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager() {
return this.serviceManager;
}
@@ -221,7 +209,7 @@ public Cluster create(Context context) {
return this;
}
- ClusterImpl(String name, com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
+ ClusterImpl(String name, com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager) {
this.innerObject = new ClusterInner();
this.serviceManager = serviceManager;
this.clusterName = name;
@@ -248,7 +236,7 @@ public Cluster apply(Context context) {
return this;
}
- ClusterImpl(ClusterInner innerObject, com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
+ ClusterImpl(ClusterInner innerObject, com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
@@ -298,24 +286,6 @@ public Cluster extendSoftwareAssuranceBenefit(SoftwareAssuranceChangeRequest sof
.extendSoftwareAssuranceBenefit(resourceGroupName, clusterName, softwareAssuranceChangeRequest, context);
}
- public Cluster triggerLogCollection(LogCollectionRequest logCollectionRequest) {
- return serviceManager.clusters().triggerLogCollection(resourceGroupName, clusterName, logCollectionRequest);
- }
-
- public Cluster triggerLogCollection(LogCollectionRequest logCollectionRequest, Context context) {
- return serviceManager.clusters()
- .triggerLogCollection(resourceGroupName, clusterName, logCollectionRequest, context);
- }
-
- public Cluster configureRemoteSupport(RemoteSupportRequest remoteSupportRequest) {
- return serviceManager.clusters().configureRemoteSupport(resourceGroupName, clusterName, remoteSupportRequest);
- }
-
- public Cluster configureRemoteSupport(RemoteSupportRequest remoteSupportRequest, Context context) {
- return serviceManager.clusters()
- .configureRemoteSupport(resourceGroupName, clusterName, remoteSupportRequest, context);
- }
-
public ClusterImpl withRegion(Region location) {
this.innerModel().withLocation(location.toString());
return this;
@@ -396,16 +366,6 @@ public ClusterImpl withSoftwareAssuranceProperties(SoftwareAssuranceProperties s
return this;
}
- public ClusterImpl withLogCollectionProperties(LogCollectionProperties logCollectionProperties) {
- this.innerModel().withLogCollectionProperties(logCollectionProperties);
- return this;
- }
-
- public ClusterImpl withRemoteSupportProperties(RemoteSupportProperties remoteSupportProperties) {
- this.innerModel().withRemoteSupportProperties(remoteSupportProperties);
- return this;
- }
-
public ClusterImpl withDesiredProperties(ClusterDesiredProperties desiredProperties) {
if (isInCreateMode()) {
this.innerModel().withDesiredProperties(desiredProperties);
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClustersClientImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClustersClientImpl.java
index 811b6d9c6118..0fe7aef89690 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClustersClientImpl.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClustersClientImpl.java
@@ -38,8 +38,6 @@
import com.azure.resourcemanager.azurestackhci.fluent.models.ClusterInner;
import com.azure.resourcemanager.azurestackhci.models.ClusterList;
import com.azure.resourcemanager.azurestackhci.models.ClusterPatch;
-import com.azure.resourcemanager.azurestackhci.models.LogCollectionRequest;
-import com.azure.resourcemanager.azurestackhci.models.RemoteSupportRequest;
import com.azure.resourcemanager.azurestackhci.models.SoftwareAssuranceChangeRequest;
import com.azure.resourcemanager.azurestackhci.models.UploadCertificateRequest;
import java.nio.ByteBuffer;
@@ -163,28 +161,6 @@ Mono>> extendSoftwareAssuranceBenefit(@HostParam("$hos
@BodyParam("application/json") SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest,
@HeaderParam("Accept") String accept, Context context);
- @Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/triggerLogCollection")
- @ExpectedResponses({ 200, 202 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> triggerLogCollection(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
- @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") LogCollectionRequest logCollectionRequest,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/configureRemoteSupport")
- @ExpectedResponses({ 200, 202 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> configureRemoteSupport(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
- @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") RemoteSupportRequest remoteSupportRequest,
- @HeaderParam("Accept") String accept, Context context);
-
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@@ -1708,478 +1684,6 @@ public ClusterInner extendSoftwareAssuranceBenefit(String resourceGroupName, Str
context).block();
}
- /**
- * Trigger Log Collection on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param logCollectionRequest Trigger Log Collection Request Payload.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cluster details along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> triggerLogCollectionWithResponseAsync(String resourceGroupName,
- String clusterName, LogCollectionRequest logCollectionRequest) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (clusterName == null) {
- return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
- }
- if (logCollectionRequest == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter logCollectionRequest is required and cannot be null."));
- } else {
- logCollectionRequest.validate();
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.triggerLogCollection(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, clusterName, this.client.getApiVersion(), logCollectionRequest, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Trigger Log Collection on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param logCollectionRequest Trigger Log Collection Request Payload.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cluster details along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> triggerLogCollectionWithResponseAsync(String resourceGroupName,
- String clusterName, LogCollectionRequest logCollectionRequest, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (clusterName == null) {
- return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
- }
- if (logCollectionRequest == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter logCollectionRequest is required and cannot be null."));
- } else {
- logCollectionRequest.validate();
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.triggerLogCollection(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, clusterName, this.client.getApiVersion(), logCollectionRequest, accept, context);
- }
-
- /**
- * Trigger Log Collection on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param logCollectionRequest Trigger Log Collection Request Payload.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of cluster details.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, ClusterInner> beginTriggerLogCollectionAsync(String resourceGroupName,
- String clusterName, LogCollectionRequest logCollectionRequest) {
- Mono>> mono
- = triggerLogCollectionWithResponseAsync(resourceGroupName, clusterName, logCollectionRequest);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(),
- ClusterInner.class, ClusterInner.class, this.client.getContext());
- }
-
- /**
- * Trigger Log Collection on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param logCollectionRequest Trigger Log Collection Request Payload.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of cluster details.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, ClusterInner> beginTriggerLogCollectionAsync(String resourceGroupName,
- String clusterName, LogCollectionRequest logCollectionRequest, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = triggerLogCollectionWithResponseAsync(resourceGroupName, clusterName, logCollectionRequest, context);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(),
- ClusterInner.class, ClusterInner.class, context);
- }
-
- /**
- * Trigger Log Collection on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param logCollectionRequest Trigger Log Collection Request Payload.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of cluster details.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ClusterInner> beginTriggerLogCollection(String resourceGroupName,
- String clusterName, LogCollectionRequest logCollectionRequest) {
- return this.beginTriggerLogCollectionAsync(resourceGroupName, clusterName, logCollectionRequest)
- .getSyncPoller();
- }
-
- /**
- * Trigger Log Collection on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param logCollectionRequest Trigger Log Collection Request Payload.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of cluster details.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ClusterInner> beginTriggerLogCollection(String resourceGroupName,
- String clusterName, LogCollectionRequest logCollectionRequest, Context context) {
- return this.beginTriggerLogCollectionAsync(resourceGroupName, clusterName, logCollectionRequest, context)
- .getSyncPoller();
- }
-
- /**
- * Trigger Log Collection on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param logCollectionRequest Trigger Log Collection Request Payload.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cluster details on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono triggerLogCollectionAsync(String resourceGroupName, String clusterName,
- LogCollectionRequest logCollectionRequest) {
- return beginTriggerLogCollectionAsync(resourceGroupName, clusterName, logCollectionRequest).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Trigger Log Collection on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param logCollectionRequest Trigger Log Collection Request Payload.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cluster details on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono triggerLogCollectionAsync(String resourceGroupName, String clusterName,
- LogCollectionRequest logCollectionRequest, Context context) {
- return beginTriggerLogCollectionAsync(resourceGroupName, clusterName, logCollectionRequest, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Trigger Log Collection on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param logCollectionRequest Trigger Log Collection Request Payload.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cluster details.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ClusterInner triggerLogCollection(String resourceGroupName, String clusterName,
- LogCollectionRequest logCollectionRequest) {
- return triggerLogCollectionAsync(resourceGroupName, clusterName, logCollectionRequest).block();
- }
-
- /**
- * Trigger Log Collection on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param logCollectionRequest Trigger Log Collection Request Payload.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cluster details.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ClusterInner triggerLogCollection(String resourceGroupName, String clusterName,
- LogCollectionRequest logCollectionRequest, Context context) {
- return triggerLogCollectionAsync(resourceGroupName, clusterName, logCollectionRequest, context).block();
- }
-
- /**
- * Configure RemoteSupport on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param remoteSupportRequest Configure Remote Support Request Payload.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cluster details along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> configureRemoteSupportWithResponseAsync(String resourceGroupName,
- String clusterName, RemoteSupportRequest remoteSupportRequest) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (clusterName == null) {
- return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
- }
- if (remoteSupportRequest == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter remoteSupportRequest is required and cannot be null."));
- } else {
- remoteSupportRequest.validate();
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.configureRemoteSupport(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, clusterName, this.client.getApiVersion(), remoteSupportRequest, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Configure RemoteSupport on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param remoteSupportRequest Configure Remote Support Request Payload.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cluster details along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> configureRemoteSupportWithResponseAsync(String resourceGroupName,
- String clusterName, RemoteSupportRequest remoteSupportRequest, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (clusterName == null) {
- return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
- }
- if (remoteSupportRequest == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter remoteSupportRequest is required and cannot be null."));
- } else {
- remoteSupportRequest.validate();
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.configureRemoteSupport(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, clusterName, this.client.getApiVersion(), remoteSupportRequest, accept, context);
- }
-
- /**
- * Configure RemoteSupport on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param remoteSupportRequest Configure Remote Support Request Payload.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of cluster details.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, ClusterInner> beginConfigureRemoteSupportAsync(
- String resourceGroupName, String clusterName, RemoteSupportRequest remoteSupportRequest) {
- Mono>> mono
- = configureRemoteSupportWithResponseAsync(resourceGroupName, clusterName, remoteSupportRequest);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(),
- ClusterInner.class, ClusterInner.class, this.client.getContext());
- }
-
- /**
- * Configure RemoteSupport on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param remoteSupportRequest Configure Remote Support Request Payload.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of cluster details.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, ClusterInner> beginConfigureRemoteSupportAsync(
- String resourceGroupName, String clusterName, RemoteSupportRequest remoteSupportRequest, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = configureRemoteSupportWithResponseAsync(resourceGroupName, clusterName, remoteSupportRequest, context);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(),
- ClusterInner.class, ClusterInner.class, context);
- }
-
- /**
- * Configure RemoteSupport on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param remoteSupportRequest Configure Remote Support Request Payload.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of cluster details.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ClusterInner> beginConfigureRemoteSupport(String resourceGroupName,
- String clusterName, RemoteSupportRequest remoteSupportRequest) {
- return this.beginConfigureRemoteSupportAsync(resourceGroupName, clusterName, remoteSupportRequest)
- .getSyncPoller();
- }
-
- /**
- * Configure RemoteSupport on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param remoteSupportRequest Configure Remote Support Request Payload.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of cluster details.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ClusterInner> beginConfigureRemoteSupport(String resourceGroupName,
- String clusterName, RemoteSupportRequest remoteSupportRequest, Context context) {
- return this.beginConfigureRemoteSupportAsync(resourceGroupName, clusterName, remoteSupportRequest, context)
- .getSyncPoller();
- }
-
- /**
- * Configure RemoteSupport on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param remoteSupportRequest Configure Remote Support Request Payload.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cluster details on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono configureRemoteSupportAsync(String resourceGroupName, String clusterName,
- RemoteSupportRequest remoteSupportRequest) {
- return beginConfigureRemoteSupportAsync(resourceGroupName, clusterName, remoteSupportRequest).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Configure RemoteSupport on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param remoteSupportRequest Configure Remote Support Request Payload.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cluster details on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono configureRemoteSupportAsync(String resourceGroupName, String clusterName,
- RemoteSupportRequest remoteSupportRequest, Context context) {
- return beginConfigureRemoteSupportAsync(resourceGroupName, clusterName, remoteSupportRequest, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Configure RemoteSupport on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param remoteSupportRequest Configure Remote Support Request Payload.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cluster details.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ClusterInner configureRemoteSupport(String resourceGroupName, String clusterName,
- RemoteSupportRequest remoteSupportRequest) {
- return configureRemoteSupportAsync(resourceGroupName, clusterName, remoteSupportRequest).block();
- }
-
- /**
- * Configure RemoteSupport on a cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param remoteSupportRequest Configure Remote Support Request Payload.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cluster details.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ClusterInner configureRemoteSupport(String resourceGroupName, String clusterName,
- RemoteSupportRequest remoteSupportRequest, Context context) {
- return configureRemoteSupportAsync(resourceGroupName, clusterName, remoteSupportRequest, context).block();
- }
-
/**
* Get the next page of items.
*
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClustersImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClustersImpl.java
index a807837fa7a3..a17c40c6cc94 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClustersImpl.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClustersImpl.java
@@ -15,8 +15,6 @@
import com.azure.resourcemanager.azurestackhci.models.Cluster;
import com.azure.resourcemanager.azurestackhci.models.ClusterIdentityResponse;
import com.azure.resourcemanager.azurestackhci.models.Clusters;
-import com.azure.resourcemanager.azurestackhci.models.LogCollectionRequest;
-import com.azure.resourcemanager.azurestackhci.models.RemoteSupportRequest;
import com.azure.resourcemanager.azurestackhci.models.SoftwareAssuranceChangeRequest;
import com.azure.resourcemanager.azurestackhci.models.UploadCertificateRequest;
@@ -25,10 +23,10 @@ public final class ClustersImpl implements Clusters {
private final ClustersClient innerClient;
- private final com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager;
+ private final com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager;
public ClustersImpl(ClustersClient innerClient,
- com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
+ com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}
@@ -133,50 +131,6 @@ public Cluster extendSoftwareAssuranceBenefit(String resourceGroupName, String c
}
}
- public Cluster triggerLogCollection(String resourceGroupName, String clusterName,
- LogCollectionRequest logCollectionRequest) {
- ClusterInner inner
- = this.serviceClient().triggerLogCollection(resourceGroupName, clusterName, logCollectionRequest);
- if (inner != null) {
- return new ClusterImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public Cluster triggerLogCollection(String resourceGroupName, String clusterName,
- LogCollectionRequest logCollectionRequest, Context context) {
- ClusterInner inner
- = this.serviceClient().triggerLogCollection(resourceGroupName, clusterName, logCollectionRequest, context);
- if (inner != null) {
- return new ClusterImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public Cluster configureRemoteSupport(String resourceGroupName, String clusterName,
- RemoteSupportRequest remoteSupportRequest) {
- ClusterInner inner
- = this.serviceClient().configureRemoteSupport(resourceGroupName, clusterName, remoteSupportRequest);
- if (inner != null) {
- return new ClusterImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public Cluster configureRemoteSupport(String resourceGroupName, String clusterName,
- RemoteSupportRequest remoteSupportRequest, Context context) {
- ClusterInner inner = this.serviceClient()
- .configureRemoteSupport(resourceGroupName, clusterName, remoteSupportRequest, context);
- if (inner != null) {
- return new ClusterImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Cluster getById(String id) {
String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
@@ -237,7 +191,7 @@ private ClustersClient serviceClient() {
return this.innerClient;
}
- private com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager() {
+ private com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager() {
return this.serviceManager;
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/DeploymentSettingImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/DeploymentSettingImpl.java
index c541771b75ad..58ac4aa6837d 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/DeploymentSettingImpl.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/DeploymentSettingImpl.java
@@ -10,9 +10,8 @@
import com.azure.resourcemanager.azurestackhci.models.DeploymentConfiguration;
import com.azure.resourcemanager.azurestackhci.models.DeploymentMode;
import com.azure.resourcemanager.azurestackhci.models.DeploymentSetting;
-import com.azure.resourcemanager.azurestackhci.models.EceReportedProperties;
-import com.azure.resourcemanager.azurestackhci.models.OperationType;
import com.azure.resourcemanager.azurestackhci.models.ProvisioningState;
+import com.azure.resourcemanager.azurestackhci.models.ReportedProperties;
import java.util.Collections;
import java.util.List;
@@ -20,7 +19,7 @@ public final class DeploymentSettingImpl
implements DeploymentSetting, DeploymentSetting.Definition, DeploymentSetting.Update {
private DeploymentSettingInner innerObject;
- private final com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager;
+ private final com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager;
public String id() {
return this.innerModel().id();
@@ -55,15 +54,11 @@ public DeploymentMode deploymentMode() {
return this.innerModel().deploymentMode();
}
- public OperationType operationType() {
- return this.innerModel().operationType();
- }
-
public DeploymentConfiguration deploymentConfiguration() {
return this.innerModel().deploymentConfiguration();
}
- public EceReportedProperties reportedProperties() {
+ public ReportedProperties reportedProperties() {
return this.innerModel().reportedProperties();
}
@@ -75,7 +70,7 @@ public DeploymentSettingInner innerModel() {
return this.innerObject;
}
- private com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager() {
+ private com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager() {
return this.serviceManager;
}
@@ -105,7 +100,7 @@ public DeploymentSetting create(Context context) {
return this;
}
- DeploymentSettingImpl(String name, com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
+ DeploymentSettingImpl(String name, com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager) {
this.innerObject = new DeploymentSettingInner();
this.serviceManager = serviceManager;
this.deploymentSettingsName = name;
@@ -130,7 +125,7 @@ public DeploymentSetting apply(Context context) {
}
DeploymentSettingImpl(DeploymentSettingInner innerObject,
- com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
+ com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
@@ -154,6 +149,11 @@ public DeploymentSetting refresh(Context context) {
return this;
}
+ public DeploymentSettingImpl withProvisioningState(ProvisioningState provisioningState) {
+ this.innerModel().withProvisioningState(provisioningState);
+ return this;
+ }
+
public DeploymentSettingImpl withArcNodeResourceIds(List arcNodeResourceIds) {
this.innerModel().withArcNodeResourceIds(arcNodeResourceIds);
return this;
@@ -164,11 +164,6 @@ public DeploymentSettingImpl withDeploymentMode(DeploymentMode deploymentMode) {
return this;
}
- public DeploymentSettingImpl withOperationType(OperationType operationType) {
- this.innerModel().withOperationType(operationType);
- return this;
- }
-
public DeploymentSettingImpl withDeploymentConfiguration(DeploymentConfiguration deploymentConfiguration) {
this.innerModel().withDeploymentConfiguration(deploymentConfiguration);
return this;
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/DeploymentSettingsImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/DeploymentSettingsImpl.java
index 67cf3f75119c..071f67a76ee9 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/DeploymentSettingsImpl.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/DeploymentSettingsImpl.java
@@ -19,10 +19,10 @@ public final class DeploymentSettingsImpl implements DeploymentSettings {
private final DeploymentSettingsClient innerClient;
- private final com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager;
+ private final com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager;
public DeploymentSettingsImpl(DeploymentSettingsClient innerClient,
- com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
+ com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}
@@ -149,7 +149,7 @@ private DeploymentSettingsClient serviceClient() {
return this.innerClient;
}
- private com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager() {
+ private com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager() {
return this.serviceManager;
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/EdgeDeviceImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/EdgeDeviceImpl.java
index 1e29703bba70..c9fa1553c9ef 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/EdgeDeviceImpl.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/EdgeDeviceImpl.java
@@ -5,20 +5,18 @@
package com.azure.resourcemanager.azurestackhci.implementation;
import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
import com.azure.resourcemanager.azurestackhci.fluent.models.EdgeDeviceInner;
-import com.azure.resourcemanager.azurestackhci.models.DeviceKind;
+import com.azure.resourcemanager.azurestackhci.models.DeviceConfiguration;
import com.azure.resourcemanager.azurestackhci.models.EdgeDevice;
+import com.azure.resourcemanager.azurestackhci.models.ProvisioningState;
+import com.azure.resourcemanager.azurestackhci.models.ValidateRequest;
+import com.azure.resourcemanager.azurestackhci.models.ValidateResponse;
-public final class EdgeDeviceImpl implements EdgeDevice {
+public final class EdgeDeviceImpl implements EdgeDevice, EdgeDevice.Definition, EdgeDevice.Update {
private EdgeDeviceInner innerObject;
- private final com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager;
-
- EdgeDeviceImpl(EdgeDeviceInner innerObject,
- com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- }
+ private final com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager;
public String id() {
return this.innerModel().id();
@@ -32,19 +30,114 @@ public String type() {
return this.innerModel().type();
}
- public DeviceKind kind() {
- return this.innerModel().kind();
- }
-
public SystemData systemData() {
return this.innerModel().systemData();
}
+ public DeviceConfiguration deviceConfiguration() {
+ return this.innerModel().deviceConfiguration();
+ }
+
+ public ProvisioningState provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
public EdgeDeviceInner innerModel() {
return this.innerObject;
}
- private com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager() {
+ private com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager() {
return this.serviceManager;
}
+
+ private String resourceUri;
+
+ private String edgeDeviceName;
+
+ public EdgeDeviceImpl withExistingResourceUri(String resourceUri) {
+ this.resourceUri = resourceUri;
+ return this;
+ }
+
+ public EdgeDevice create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeDevices()
+ .createOrUpdate(resourceUri, edgeDeviceName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public EdgeDevice create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeDevices()
+ .createOrUpdate(resourceUri, edgeDeviceName, this.innerModel(), context);
+ return this;
+ }
+
+ EdgeDeviceImpl(String name, com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager) {
+ this.innerObject = new EdgeDeviceInner();
+ this.serviceManager = serviceManager;
+ this.edgeDeviceName = name;
+ }
+
+ public EdgeDeviceImpl update() {
+ return this;
+ }
+
+ public EdgeDevice apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeDevices()
+ .createOrUpdate(resourceUri, edgeDeviceName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public EdgeDevice apply(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeDevices()
+ .createOrUpdate(resourceUri, edgeDeviceName, this.innerModel(), context);
+ return this;
+ }
+
+ EdgeDeviceImpl(EdgeDeviceInner innerObject,
+ com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceUri = ResourceManagerUtils.getValueFromIdByParameterName(innerObject.id(),
+ "/{resourceUri}/providers/Microsoft.AzureStackHCI/edgeDevices/{edgeDeviceName}", "resourceUri");
+ this.edgeDeviceName = ResourceManagerUtils.getValueFromIdByParameterName(innerObject.id(),
+ "/{resourceUri}/providers/Microsoft.AzureStackHCI/edgeDevices/{edgeDeviceName}", "edgeDeviceName");
+ }
+
+ public EdgeDevice refresh() {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeDevices()
+ .getWithResponse(resourceUri, edgeDeviceName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public EdgeDevice refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeDevices()
+ .getWithResponse(resourceUri, edgeDeviceName, context)
+ .getValue();
+ return this;
+ }
+
+ public ValidateResponse validate(ValidateRequest validateRequest) {
+ return serviceManager.edgeDevices().validate(resourceUri, edgeDeviceName, validateRequest);
+ }
+
+ public ValidateResponse validate(ValidateRequest validateRequest, Context context) {
+ return serviceManager.edgeDevices().validate(resourceUri, edgeDeviceName, validateRequest, context);
+ }
+
+ public EdgeDeviceImpl withDeviceConfiguration(DeviceConfiguration deviceConfiguration) {
+ this.innerModel().withDeviceConfiguration(deviceConfiguration);
+ return this;
+ }
+
+ public EdgeDeviceImpl withProvisioningState(ProvisioningState provisioningState) {
+ this.innerModel().withProvisioningState(provisioningState);
+ return this;
+ }
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/EdgeDevicesImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/EdgeDevicesImpl.java
index 34a960cb551b..63be78666eb3 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/EdgeDevicesImpl.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/EdgeDevicesImpl.java
@@ -22,10 +22,10 @@ public final class EdgeDevicesImpl implements EdgeDevices {
private final EdgeDevicesClient innerClient;
- private final com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager;
+ private final com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager;
public EdgeDevicesImpl(EdgeDevicesClient innerClient,
- com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
+ com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}
@@ -59,25 +59,6 @@ public EdgeDevice get(String resourceUri, String edgeDeviceName) {
}
}
- public EdgeDevice createOrUpdate(String resourceUri, String edgeDeviceName, EdgeDeviceInner resource) {
- EdgeDeviceInner inner = this.serviceClient().createOrUpdate(resourceUri, edgeDeviceName, resource);
- if (inner != null) {
- return new EdgeDeviceImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public EdgeDevice createOrUpdate(String resourceUri, String edgeDeviceName, EdgeDeviceInner resource,
- Context context) {
- EdgeDeviceInner inner = this.serviceClient().createOrUpdate(resourceUri, edgeDeviceName, resource, context);
- if (inner != null) {
- return new EdgeDeviceImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public void deleteByResourceGroup(String resourceUri, String edgeDeviceName) {
this.serviceClient().delete(resourceUri, edgeDeviceName);
}
@@ -106,11 +87,79 @@ public ValidateResponse validate(String resourceUri, String edgeDeviceName, Vali
}
}
+ public EdgeDevice getById(String id) {
+ String resourceUri = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/{resourceUri}/providers/Microsoft.AzureStackHCI/edgeDevices/{edgeDeviceName}", "resourceUri");
+ if (resourceUri == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceUri'.", id)));
+ }
+ String edgeDeviceName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/{resourceUri}/providers/Microsoft.AzureStackHCI/edgeDevices/{edgeDeviceName}", "edgeDeviceName");
+ if (edgeDeviceName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'edgeDevices'.", id)));
+ }
+ return this.getWithResponse(resourceUri, edgeDeviceName, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceUri = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/{resourceUri}/providers/Microsoft.AzureStackHCI/edgeDevices/{edgeDeviceName}", "resourceUri");
+ if (resourceUri == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceUri'.", id)));
+ }
+ String edgeDeviceName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/{resourceUri}/providers/Microsoft.AzureStackHCI/edgeDevices/{edgeDeviceName}", "edgeDeviceName");
+ if (edgeDeviceName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'edgeDevices'.", id)));
+ }
+ return this.getWithResponse(resourceUri, edgeDeviceName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceUri = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/{resourceUri}/providers/Microsoft.AzureStackHCI/edgeDevices/{edgeDeviceName}", "resourceUri");
+ if (resourceUri == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceUri'.", id)));
+ }
+ String edgeDeviceName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/{resourceUri}/providers/Microsoft.AzureStackHCI/edgeDevices/{edgeDeviceName}", "edgeDeviceName");
+ if (edgeDeviceName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'edgeDevices'.", id)));
+ }
+ this.delete(resourceUri, edgeDeviceName, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceUri = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/{resourceUri}/providers/Microsoft.AzureStackHCI/edgeDevices/{edgeDeviceName}", "resourceUri");
+ if (resourceUri == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceUri'.", id)));
+ }
+ String edgeDeviceName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/{resourceUri}/providers/Microsoft.AzureStackHCI/edgeDevices/{edgeDeviceName}", "edgeDeviceName");
+ if (edgeDeviceName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'edgeDevices'.", id)));
+ }
+ this.delete(resourceUri, edgeDeviceName, context);
+ }
+
private EdgeDevicesClient serviceClient() {
return this.innerClient;
}
- private com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager() {
+ private com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager() {
return this.serviceManager;
}
+
+ public EdgeDeviceImpl define(String name) {
+ return new EdgeDeviceImpl(name, this.manager());
+ }
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ExtensionImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ExtensionImpl.java
index 4e2708793046..a7a3358b0e97 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ExtensionImpl.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ExtensionImpl.java
@@ -21,7 +21,7 @@
public final class ExtensionImpl implements Extension, Extension.Definition, Extension.Update {
private ExtensionInner innerObject;
- private final com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager;
+ private final com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager;
public String id() {
return this.innerModel().id();
@@ -100,7 +100,7 @@ public ExtensionInner innerModel() {
return this.innerObject;
}
- private com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager() {
+ private com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager() {
return this.serviceManager;
}
@@ -135,7 +135,7 @@ public Extension create(Context context) {
return this;
}
- ExtensionImpl(String name, com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
+ ExtensionImpl(String name, com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager) {
this.innerObject = new ExtensionInner();
this.serviceManager = serviceManager;
this.extensionName = name;
@@ -161,7 +161,7 @@ public Extension apply(Context context) {
}
ExtensionImpl(ExtensionInner innerObject,
- com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
+ com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ExtensionsImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ExtensionsImpl.java
index 996d03e65744..14ae192f8d35 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ExtensionsImpl.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ExtensionsImpl.java
@@ -12,18 +12,18 @@
import com.azure.resourcemanager.azurestackhci.fluent.ExtensionsClient;
import com.azure.resourcemanager.azurestackhci.fluent.models.ExtensionInner;
import com.azure.resourcemanager.azurestackhci.models.Extension;
-import com.azure.resourcemanager.azurestackhci.models.Extensions;
import com.azure.resourcemanager.azurestackhci.models.ExtensionUpgradeParameters;
+import com.azure.resourcemanager.azurestackhci.models.Extensions;
public final class ExtensionsImpl implements Extensions {
private static final ClientLogger LOGGER = new ClientLogger(ExtensionsImpl.class);
private final ExtensionsClient innerClient;
- private final com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager;
+ private final com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager;
public ExtensionsImpl(ExtensionsClient innerClient,
- com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
+ com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}
@@ -186,7 +186,7 @@ private ExtensionsClient serviceClient() {
return this.innerClient;
}
- private com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager() {
+ private com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager() {
return this.serviceManager;
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/GalleryImagesImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/GalleryImagesImpl.java
new file mode 100644
index 000000000000..2f382e6026d8
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/GalleryImagesImpl.java
@@ -0,0 +1,255 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.azurestackhci.fluent.models.GalleryImagesInner;
+import com.azure.resourcemanager.azurestackhci.models.CloudInitDataSource;
+import com.azure.resourcemanager.azurestackhci.models.ExtendedLocation;
+import com.azure.resourcemanager.azurestackhci.models.GalleryImageIdentifier;
+import com.azure.resourcemanager.azurestackhci.models.GalleryImageStatus;
+import com.azure.resourcemanager.azurestackhci.models.GalleryImageVersion;
+import com.azure.resourcemanager.azurestackhci.models.GalleryImages;
+import com.azure.resourcemanager.azurestackhci.models.GalleryImagesUpdateRequest;
+import com.azure.resourcemanager.azurestackhci.models.HyperVGeneration;
+import com.azure.resourcemanager.azurestackhci.models.OperatingSystemTypes;
+import com.azure.resourcemanager.azurestackhci.models.ProvisioningStateEnum;
+import java.util.Collections;
+import java.util.Map;
+
+public final class GalleryImagesImpl implements GalleryImages, GalleryImages.Definition, GalleryImages.Update {
+ private GalleryImagesInner innerObject;
+
+ private final com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public ExtendedLocation extendedLocation() {
+ return this.innerModel().extendedLocation();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public String containerId() {
+ return this.innerModel().containerId();
+ }
+
+ public String imagePath() {
+ return this.innerModel().imagePath();
+ }
+
+ public OperatingSystemTypes osType() {
+ return this.innerModel().osType();
+ }
+
+ public CloudInitDataSource cloudInitDataSource() {
+ return this.innerModel().cloudInitDataSource();
+ }
+
+ public HyperVGeneration hyperVGeneration() {
+ return this.innerModel().hyperVGeneration();
+ }
+
+ public GalleryImageIdentifier identifier() {
+ return this.innerModel().identifier();
+ }
+
+ public GalleryImageVersion version() {
+ return this.innerModel().version();
+ }
+
+ public ProvisioningStateEnum provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public GalleryImageStatus status() {
+ return this.innerModel().status();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public GalleryImagesInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.azurestackhci.AzurestackhciManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String galleryImageName;
+
+ private GalleryImagesUpdateRequest updateGalleryImages;
+
+ public GalleryImagesImpl withExistingResourceGroup(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ public GalleryImages create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getGalleryImagesOperations()
+ .createOrUpdate(resourceGroupName, galleryImageName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public GalleryImages create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getGalleryImagesOperations()
+ .createOrUpdate(resourceGroupName, galleryImageName, this.innerModel(), context);
+ return this;
+ }
+
+ GalleryImagesImpl(String name, com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager) {
+ this.innerObject = new GalleryImagesInner();
+ this.serviceManager = serviceManager;
+ this.galleryImageName = name;
+ }
+
+ public GalleryImagesImpl update() {
+ this.updateGalleryImages = new GalleryImagesUpdateRequest();
+ return this;
+ }
+
+ public GalleryImages apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getGalleryImagesOperations()
+ .update(resourceGroupName, galleryImageName, updateGalleryImages, Context.NONE);
+ return this;
+ }
+
+ public GalleryImages apply(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getGalleryImagesOperations()
+ .update(resourceGroupName, galleryImageName, updateGalleryImages, context);
+ return this;
+ }
+
+ GalleryImagesImpl(GalleryImagesInner innerObject,
+ com.azure.resourcemanager.azurestackhci.AzurestackhciManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.galleryImageName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "galleryImages");
+ }
+
+ public GalleryImages refresh() {
+ this.innerObject = serviceManager.serviceClient()
+ .getGalleryImagesOperations()
+ .getByResourceGroupWithResponse(resourceGroupName, galleryImageName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public GalleryImages refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getGalleryImagesOperations()
+ .getByResourceGroupWithResponse(resourceGroupName, galleryImageName, context)
+ .getValue();
+ return this;
+ }
+
+ public GalleryImagesImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public GalleryImagesImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public GalleryImagesImpl withTags(Map tags) {
+ if (isInCreateMode()) {
+ this.innerModel().withTags(tags);
+ return this;
+ } else {
+ this.updateGalleryImages.withTags(tags);
+ return this;
+ }
+ }
+
+ public GalleryImagesImpl withExtendedLocation(ExtendedLocation extendedLocation) {
+ this.innerModel().withExtendedLocation(extendedLocation);
+ return this;
+ }
+
+ public GalleryImagesImpl withContainerId(String containerId) {
+ this.innerModel().withContainerId(containerId);
+ return this;
+ }
+
+ public GalleryImagesImpl withImagePath(String imagePath) {
+ this.innerModel().withImagePath(imagePath);
+ return this;
+ }
+
+ public GalleryImagesImpl withOsType(OperatingSystemTypes osType) {
+ this.innerModel().withOsType(osType);
+ return this;
+ }
+
+ public GalleryImagesImpl withCloudInitDataSource(CloudInitDataSource cloudInitDataSource) {
+ this.innerModel().withCloudInitDataSource(cloudInitDataSource);
+ return this;
+ }
+
+ public GalleryImagesImpl withHyperVGeneration(HyperVGeneration hyperVGeneration) {
+ this.innerModel().withHyperVGeneration(hyperVGeneration);
+ return this;
+ }
+
+ public GalleryImagesImpl withIdentifier(GalleryImageIdentifier identifier) {
+ this.innerModel().withIdentifier(identifier);
+ return this;
+ }
+
+ public GalleryImagesImpl withVersion(GalleryImageVersion version) {
+ this.innerModel().withVersion(version);
+ return this;
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/GalleryImagesOperationsClientImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/GalleryImagesOperationsClientImpl.java
new file mode 100644
index 000000000000..3017868aa26a
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/GalleryImagesOperationsClientImpl.java
@@ -0,0 +1,1302 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.azurestackhci.fluent.GalleryImagesOperationsClient;
+import com.azure.resourcemanager.azurestackhci.fluent.models.GalleryImagesInner;
+import com.azure.resourcemanager.azurestackhci.models.GalleryImagesListResult;
+import com.azure.resourcemanager.azurestackhci.models.GalleryImagesUpdateRequest;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in GalleryImagesOperationsClient.
+ */
+public final class GalleryImagesOperationsClientImpl implements GalleryImagesOperationsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final GalleryImagesOperationsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final AzureStackHciClientImpl client;
+
+ /**
+ * Initializes an instance of GalleryImagesOperationsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ GalleryImagesOperationsClientImpl(AzureStackHciClientImpl client) {
+ this.service = RestProxy.create(GalleryImagesOperationsService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for AzureStackHciClientGalleryImagesOperations to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "AzureStackHciClientG")
+ public interface GalleryImagesOperationsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages/{galleryImageName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getByResourceGroup(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("galleryImageName") String galleryImageName, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages/{galleryImageName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("galleryImageName") String galleryImageName, @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") GalleryImagesInner galleryImages, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages/{galleryImageName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("galleryImageName") String galleryImageName, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages/{galleryImageName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("galleryImageName") String galleryImageName, @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") GalleryImagesUpdateRequest galleryImages,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroup(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/galleryImages")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listAllNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Gets a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a gallery image along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String galleryImageName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryImageName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryImageName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, galleryImageName, this.client.getApiVersion(), accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a gallery image along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String galleryImageName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryImageName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryImageName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ galleryImageName, this.client.getApiVersion(), accept, context);
+ }
+
+ /**
+ * Gets a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a gallery image on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getByResourceGroupAsync(String resourceGroupName, String galleryImageName) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, galleryImageName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a gallery image along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getByResourceGroupWithResponse(String resourceGroupName,
+ String galleryImageName, Context context) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, galleryImageName, context).block();
+ }
+
+ /**
+ * Gets a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a gallery image.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public GalleryImagesInner getByResourceGroup(String resourceGroupName, String galleryImageName) {
+ return getByResourceGroupWithResponse(resourceGroupName, galleryImageName, Context.NONE).getValue();
+ }
+
+ /**
+ * The operation to create or update a gallery image. Please note some properties can be set only during gallery
+ * image creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param galleryImages The galleryImages parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the gallery images resource definition along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String galleryImageName, GalleryImagesInner galleryImages) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryImageName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryImageName is required and cannot be null."));
+ }
+ if (galleryImages == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryImages is required and cannot be null."));
+ } else {
+ galleryImages.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, galleryImageName, this.client.getApiVersion(), galleryImages, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * The operation to create or update a gallery image. Please note some properties can be set only during gallery
+ * image creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param galleryImages The galleryImages parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the gallery images resource definition along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String galleryImageName, GalleryImagesInner galleryImages, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryImageName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryImageName is required and cannot be null."));
+ }
+ if (galleryImages == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryImages is required and cannot be null."));
+ } else {
+ galleryImages.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ galleryImageName, this.client.getApiVersion(), galleryImages, accept, context);
+ }
+
+ /**
+ * The operation to create or update a gallery image. Please note some properties can be set only during gallery
+ * image creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param galleryImages The galleryImages parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of the gallery images resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, GalleryImagesInner>
+ beginCreateOrUpdateAsync(String resourceGroupName, String galleryImageName, GalleryImagesInner galleryImages) {
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceGroupName, galleryImageName, galleryImages);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ GalleryImagesInner.class, GalleryImagesInner.class, this.client.getContext());
+ }
+
+ /**
+ * The operation to create or update a gallery image. Please note some properties can be set only during gallery
+ * image creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param galleryImages The galleryImages parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of the gallery images resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, GalleryImagesInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String galleryImageName, GalleryImagesInner galleryImages, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceGroupName, galleryImageName, galleryImages, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ GalleryImagesInner.class, GalleryImagesInner.class, context);
+ }
+
+ /**
+ * The operation to create or update a gallery image. Please note some properties can be set only during gallery
+ * image creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param galleryImages The galleryImages parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the gallery images resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, GalleryImagesInner> beginCreateOrUpdate(String resourceGroupName,
+ String galleryImageName, GalleryImagesInner galleryImages) {
+ return this.beginCreateOrUpdateAsync(resourceGroupName, galleryImageName, galleryImages).getSyncPoller();
+ }
+
+ /**
+ * The operation to create or update a gallery image. Please note some properties can be set only during gallery
+ * image creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param galleryImages The galleryImages parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the gallery images resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, GalleryImagesInner> beginCreateOrUpdate(String resourceGroupName,
+ String galleryImageName, GalleryImagesInner galleryImages, Context context) {
+ return this.beginCreateOrUpdateAsync(resourceGroupName, galleryImageName, galleryImages, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * The operation to create or update a gallery image. Please note some properties can be set only during gallery
+ * image creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param galleryImages The galleryImages parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the gallery images resource definition on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceGroupName, String galleryImageName,
+ GalleryImagesInner galleryImages) {
+ return beginCreateOrUpdateAsync(resourceGroupName, galleryImageName, galleryImages).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * The operation to create or update a gallery image. Please note some properties can be set only during gallery
+ * image creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param galleryImages The galleryImages parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the gallery images resource definition on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceGroupName, String galleryImageName,
+ GalleryImagesInner galleryImages, Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, galleryImageName, galleryImages, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * The operation to create or update a gallery image. Please note some properties can be set only during gallery
+ * image creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param galleryImages The galleryImages parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the gallery images resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public GalleryImagesInner createOrUpdate(String resourceGroupName, String galleryImageName,
+ GalleryImagesInner galleryImages) {
+ return createOrUpdateAsync(resourceGroupName, galleryImageName, galleryImages).block();
+ }
+
+ /**
+ * The operation to create or update a gallery image. Please note some properties can be set only during gallery
+ * image creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param galleryImages The galleryImages parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the gallery images resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public GalleryImagesInner createOrUpdate(String resourceGroupName, String galleryImageName,
+ GalleryImagesInner galleryImages, Context context) {
+ return createOrUpdateAsync(resourceGroupName, galleryImageName, galleryImages, context).block();
+ }
+
+ /**
+ * The operation to delete a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName,
+ String galleryImageName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryImageName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryImageName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, galleryImageName, this.client.getApiVersion(), accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * The operation to delete a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName, String galleryImageName,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryImageName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryImageName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ galleryImageName, this.client.getApiVersion(), accept, context);
+ }
+
+ /**
+ * The operation to delete a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String galleryImageName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, galleryImageName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * The operation to delete a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String galleryImageName,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, galleryImageName, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ context);
+ }
+
+ /**
+ * The operation to delete a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String galleryImageName) {
+ return this.beginDeleteAsync(resourceGroupName, galleryImageName).getSyncPoller();
+ }
+
+ /**
+ * The operation to delete a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String galleryImageName,
+ Context context) {
+ return this.beginDeleteAsync(resourceGroupName, galleryImageName, context).getSyncPoller();
+ }
+
+ /**
+ * The operation to delete a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String galleryImageName) {
+ return beginDeleteAsync(resourceGroupName, galleryImageName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * The operation to delete a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String galleryImageName, Context context) {
+ return beginDeleteAsync(resourceGroupName, galleryImageName, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * The operation to delete a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String galleryImageName) {
+ deleteAsync(resourceGroupName, galleryImageName).block();
+ }
+
+ /**
+ * The operation to delete a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String galleryImageName, Context context) {
+ deleteAsync(resourceGroupName, galleryImageName, context).block();
+ }
+
+ /**
+ * The operation to update a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param galleryImages The galleryImages parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the gallery images resource definition along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String resourceGroupName, String galleryImageName,
+ GalleryImagesUpdateRequest galleryImages) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryImageName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryImageName is required and cannot be null."));
+ }
+ if (galleryImages == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryImages is required and cannot be null."));
+ } else {
+ galleryImages.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, galleryImageName, this.client.getApiVersion(), galleryImages, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * The operation to update a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param galleryImages The galleryImages parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the gallery images resource definition along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String resourceGroupName, String galleryImageName,
+ GalleryImagesUpdateRequest galleryImages, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryImageName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryImageName is required and cannot be null."));
+ }
+ if (galleryImages == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryImages is required and cannot be null."));
+ } else {
+ galleryImages.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ galleryImageName, this.client.getApiVersion(), galleryImages, accept, context);
+ }
+
+ /**
+ * The operation to update a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param galleryImages The galleryImages parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of the gallery images resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, GalleryImagesInner> beginUpdateAsync(String resourceGroupName,
+ String galleryImageName, GalleryImagesUpdateRequest galleryImages) {
+ Mono>> mono
+ = updateWithResponseAsync(resourceGroupName, galleryImageName, galleryImages);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ GalleryImagesInner.class, GalleryImagesInner.class, this.client.getContext());
+ }
+
+ /**
+ * The operation to update a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param galleryImages The galleryImages parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of the gallery images resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, GalleryImagesInner> beginUpdateAsync(String resourceGroupName,
+ String galleryImageName, GalleryImagesUpdateRequest galleryImages, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = updateWithResponseAsync(resourceGroupName, galleryImageName, galleryImages, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ GalleryImagesInner.class, GalleryImagesInner.class, context);
+ }
+
+ /**
+ * The operation to update a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param galleryImages The galleryImages parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the gallery images resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, GalleryImagesInner> beginUpdate(String resourceGroupName,
+ String galleryImageName, GalleryImagesUpdateRequest galleryImages) {
+ return this.beginUpdateAsync(resourceGroupName, galleryImageName, galleryImages).getSyncPoller();
+ }
+
+ /**
+ * The operation to update a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param galleryImages The galleryImages parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the gallery images resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, GalleryImagesInner> beginUpdate(String resourceGroupName,
+ String galleryImageName, GalleryImagesUpdateRequest galleryImages, Context context) {
+ return this.beginUpdateAsync(resourceGroupName, galleryImageName, galleryImages, context).getSyncPoller();
+ }
+
+ /**
+ * The operation to update a gallery image.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryImageName Name of the gallery image.
+ * @param galleryImages The galleryImages parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the gallery images resource definition on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono