, 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 0000000000000..6bda752073d44
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/GuestAgentsOperationsClient.java
@@ -0,0 +1,45 @@
+// 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 0000000000000..8082f894a4d09
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/HybridIdentityMetadatasClient.java
@@ -0,0 +1,77 @@
+// 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/ExtensionsClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/MarketplaceGalleryImagesOperationsClient.java
similarity index 52%
rename from sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ExtensionsClient.java
rename to sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/MarketplaceGalleryImagesOperationsClient.java
index d9662370c2a31..b082967a0ae2c 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ExtensionsClient.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/MarketplaceGalleryImagesOperationsClient.java
@@ -11,308 +11,290 @@
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.ExtensionInner;
+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 ExtensionsClient. */
-public interface ExtensionsClient {
+/**
+ * An instance of this class provides access to all the operations defined in MarketplaceGalleryImagesOperationsClient.
+ */
+public interface MarketplaceGalleryImagesOperationsClient {
/**
- * List all Extensions under ArcSetting resource.
+ * Gets a marketplace gallery image.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
+ * @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 list of Extensions in HCI cluster as paginated response with {@link PagedIterable}.
+ * @return a marketplace gallery image along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByArcSetting(String resourceGroupName, String clusterName, String arcSettingName);
+ @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);
/**
- * List all Extensions under ArcSetting resource.
+ * 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 clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
+ * @param marketplaceGalleryImageName Name of the marketplace gallery image.
+ * @param marketplaceGalleryImages The marketplace gallery image resource definition.
+ * @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 marketplace gallery image resource definition.
* @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 Extensions in HCI cluster as paginated response with {@link PagedIterable}.
+ * @return the {@link SyncPoller} for polling of the marketplace gallery image resource definition.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByArcSetting(
- String resourceGroupName, String clusterName, String arcSettingName, Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MarketplaceGalleryImagesInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String marketplaceGalleryImageName,
+ MarketplaceGalleryImagesInner marketplaceGalleryImages,
+ Context context);
/**
- * Get particular Arc Extension of HCI Cluster.
+ * 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 clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
- * @param extensionName The name of the machine extension.
+ * @param marketplaceGalleryImageName Name of the marketplace gallery image.
+ * @param marketplaceGalleryImages The marketplace gallery image resource definition.
* @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 particular Arc Extension of HCI Cluster.
+ * @return the marketplace gallery image resource definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ExtensionInner get(String resourceGroupName, String clusterName, String arcSettingName, String extensionName);
+ MarketplaceGalleryImagesInner createOrUpdate(
+ String resourceGroupName,
+ String marketplaceGalleryImageName,
+ MarketplaceGalleryImagesInner marketplaceGalleryImages);
/**
- * Get particular Arc Extension of HCI Cluster.
+ * 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 clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
- * @param extensionName The name of the machine extension.
+ * @param marketplaceGalleryImageName Name of the marketplace gallery image.
+ * @param marketplaceGalleryImages The marketplace gallery image resource definition.
* @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 particular Arc Extension of HCI Cluster along with {@link Response}.
+ * @return the marketplace gallery image resource definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String clusterName, String arcSettingName, String extensionName, Context context);
+ MarketplaceGalleryImagesInner createOrUpdate(
+ String resourceGroupName,
+ String marketplaceGalleryImageName,
+ MarketplaceGalleryImagesInner marketplaceGalleryImages,
+ Context context);
/**
- * Create Extension for HCI cluster.
+ * The operation to delete a marketplace gallery image.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
- * @param extensionName The name of the machine extension.
- * @param extension Details of the Machine Extension to be created.
+ * @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 details of a particular extension in HCI Cluster.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ExtensionInner> beginCreate(
- String resourceGroupName,
- String clusterName,
- String arcSettingName,
- String extensionName,
- ExtensionInner extension);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String marketplaceGalleryImageName);
/**
- * Create Extension for HCI cluster.
+ * The operation to delete a marketplace gallery image.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
- * @param extensionName The name of the machine extension.
- * @param extension Details of the Machine Extension to be created.
+ * @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 details of a particular extension in HCI Cluster.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ExtensionInner> beginCreate(
- String resourceGroupName,
- String clusterName,
- String arcSettingName,
- String extensionName,
- ExtensionInner extension,
- Context context);
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String marketplaceGalleryImageName, Context context);
/**
- * Create Extension for HCI cluster.
+ * The operation to delete a marketplace gallery image.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
- * @param extensionName The name of the machine extension.
- * @param extension Details of the Machine Extension to be created.
+ * @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 details of a particular extension in HCI Cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ExtensionInner create(
- String resourceGroupName,
- String clusterName,
- String arcSettingName,
- String extensionName,
- ExtensionInner extension);
+ void delete(String resourceGroupName, String marketplaceGalleryImageName);
/**
- * Create Extension for HCI cluster.
+ * The operation to delete a marketplace gallery image.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
- * @param extensionName The name of the machine extension.
- * @param extension Details of the Machine Extension to be created.
+ * @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 details of a particular extension in HCI Cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ExtensionInner create(
- String resourceGroupName,
- String clusterName,
- String arcSettingName,
- String extensionName,
- ExtensionInner extension,
- Context context);
+ void delete(String resourceGroupName, String marketplaceGalleryImageName, Context context);
/**
- * Update Extension for HCI cluster.
+ * The operation to update a marketplace gallery image.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
- * @param extensionName The name of the machine extension.
- * @param extension Details of the Machine Extension to be created.
+ * @param marketplaceGalleryImageName Name of the marketplace gallery image.
+ * @param marketplaceGalleryImages The marketplace gallery image resource patch definition.
* @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 details of a particular extension in HCI Cluster.
+ * @return the {@link SyncPoller} for polling of the marketplace gallery image resource definition.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ExtensionInner> beginUpdate(
+ SyncPoller, MarketplaceGalleryImagesInner> beginUpdate(
String resourceGroupName,
- String clusterName,
- String arcSettingName,
- String extensionName,
- ExtensionInner extension);
+ String marketplaceGalleryImageName,
+ MarketplaceGalleryImagesUpdateRequest marketplaceGalleryImages);
/**
- * Update Extension for HCI cluster.
+ * The operation to update a marketplace gallery image.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
- * @param extensionName The name of the machine extension.
- * @param extension Details of the Machine Extension to be created.
+ * @param marketplaceGalleryImageName Name of the marketplace gallery image.
+ * @param marketplaceGalleryImages The marketplace gallery image resource patch definition.
* @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 details of a particular extension in HCI Cluster.
+ * @return the {@link SyncPoller} for polling of the marketplace gallery image resource definition.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ExtensionInner> beginUpdate(
+ SyncPoller, MarketplaceGalleryImagesInner> beginUpdate(
String resourceGroupName,
- String clusterName,
- String arcSettingName,
- String extensionName,
- ExtensionInner extension,
+ String marketplaceGalleryImageName,
+ MarketplaceGalleryImagesUpdateRequest marketplaceGalleryImages,
Context context);
/**
- * Update Extension for HCI cluster.
+ * The operation to update a marketplace gallery image.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
- * @param extensionName The name of the machine extension.
- * @param extension Details of the Machine Extension to be created.
+ * @param marketplaceGalleryImageName Name of the marketplace gallery image.
+ * @param marketplaceGalleryImages The marketplace gallery image resource patch definition.
* @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 details of a particular extension in HCI Cluster.
+ * @return the marketplace gallery image resource definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ExtensionInner update(
+ MarketplaceGalleryImagesInner update(
String resourceGroupName,
- String clusterName,
- String arcSettingName,
- String extensionName,
- ExtensionInner extension);
+ String marketplaceGalleryImageName,
+ MarketplaceGalleryImagesUpdateRequest marketplaceGalleryImages);
/**
- * Update Extension for HCI cluster.
+ * The operation to update a marketplace gallery image.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
- * @param extensionName The name of the machine extension.
- * @param extension Details of the Machine Extension to be created.
+ * @param marketplaceGalleryImageName Name of the marketplace gallery image.
+ * @param marketplaceGalleryImages The marketplace gallery image resource patch definition.
* @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 details of a particular extension in HCI Cluster.
+ * @return the marketplace gallery image resource definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ExtensionInner update(
+ MarketplaceGalleryImagesInner update(
String resourceGroupName,
- String clusterName,
- String arcSettingName,
- String extensionName,
- ExtensionInner extension,
+ String marketplaceGalleryImageName,
+ MarketplaceGalleryImagesUpdateRequest marketplaceGalleryImages,
Context context);
/**
- * Delete particular Arc Extension of HCI Cluster.
+ * 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 clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
- * @param extensionName The name of the machine extension.
* @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.
+ * @return the paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String clusterName, String arcSettingName, String extensionName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
/**
- * Delete particular Arc Extension of HCI Cluster.
+ * 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 clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
- * @param extensionName The name of the machine extension.
* @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.
+ * @return the paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String clusterName, String arcSettingName, String extensionName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
/**
- * Delete particular Arc Extension of HCI Cluster.
+ * 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 resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
- * @param extensionName The name of the machine extension.
- * @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.SINGLE)
- void delete(String resourceGroupName, String clusterName, String arcSettingName, String extensionName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
/**
- * Delete particular Arc Extension of HCI Cluster.
+ * 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 resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
- * @param extensionName The name of the machine extension.
* @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.SINGLE)
- void delete(
- String resourceGroupName, String clusterName, String arcSettingName, String extensionName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ArcSettingsClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/NetworkInterfacesOperationsClient.java
similarity index 55%
rename from sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ArcSettingsClient.java
rename to sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/NetworkInterfacesOperationsClient.java
index e7dd0a66b8486..e090bed11e54e 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ArcSettingsClient.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/NetworkInterfacesOperationsClient.java
@@ -11,289 +11,280 @@
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.ArcIdentityResponseInner;
-import com.azure.resourcemanager.azurestackhci.fluent.models.ArcSettingInner;
-import com.azure.resourcemanager.azurestackhci.fluent.models.PasswordCredentialInner;
-import com.azure.resourcemanager.azurestackhci.models.ArcSettingsPatch;
+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 ArcSettingsClient. */
-public interface ArcSettingsClient {
+/** An instance of this class provides access to all the operations defined in NetworkInterfacesOperationsClient. */
+public interface NetworkInterfacesOperationsClient {
/**
- * Get ArcSetting resources of HCI Cluster.
+ * Gets a network interface.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
+ * @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 arcSetting resources of HCI Cluster as paginated response with {@link PagedIterable}.
+ * @return a network interface along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByCluster(String resourceGroupName, String clusterName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String networkInterfaceName, Context context);
/**
- * Get ArcSetting resources of HCI Cluster.
+ * Gets a network interface.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param context The context to associate with this operation.
+ * @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 arcSetting resources of HCI Cluster as paginated response with {@link PagedIterable}.
+ * @return a network interface.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByCluster(String resourceGroupName, String clusterName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NetworkInterfacesInner getByResourceGroup(String resourceGroupName, String networkInterfaceName);
/**
- * Get ArcSetting resource details of HCI Cluster.
+ * 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 clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
+ * @param networkInterfaceName Name of the network interface.
+ * @param networkInterfaces The network interface resource definition.
* @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 arcSetting resource details of HCI Cluster.
+ * @return the {@link SyncPoller} for polling of the network interface resource definition.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- ArcSettingInner get(String resourceGroupName, String clusterName, String arcSettingName);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, NetworkInterfacesInner> beginCreateOrUpdate(
+ String resourceGroupName, String networkInterfaceName, NetworkInterfacesInner networkInterfaces);
/**
- * Get ArcSetting resource details of HCI Cluster.
+ * 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 clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
+ * @param networkInterfaceName Name of the network interface.
+ * @param networkInterfaces The network interface resource definition.
* @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 arcSetting resource details of HCI Cluster along with {@link Response}.
+ * @return the {@link SyncPoller} for polling of the network interface resource definition.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String clusterName, String arcSettingName, Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, NetworkInterfacesInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String networkInterfaceName,
+ NetworkInterfacesInner networkInterfaces,
+ Context context);
/**
- * Create ArcSetting for HCI cluster.
+ * 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 clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
- * @param arcSetting Parameters supplied to the Create ArcSetting resource for this HCI cluster.
+ * @param networkInterfaceName Name of the network interface.
+ * @param networkInterfaces The network interface resource definition.
* @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 arcSetting details.
+ * @return the network interface resource definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ArcSettingInner create(
- String resourceGroupName, String clusterName, String arcSettingName, ArcSettingInner arcSetting);
+ NetworkInterfacesInner createOrUpdate(
+ String resourceGroupName, String networkInterfaceName, NetworkInterfacesInner networkInterfaces);
/**
- * Create ArcSetting for HCI cluster.
+ * 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 clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
- * @param arcSetting Parameters supplied to the Create ArcSetting resource for this HCI cluster.
+ * @param networkInterfaceName Name of the network interface.
+ * @param networkInterfaces The network interface resource definition.
* @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 arcSetting details along with {@link Response}.
+ * @return the network interface resource definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createWithResponse(
+ NetworkInterfacesInner createOrUpdate(
String resourceGroupName,
- String clusterName,
- String arcSettingName,
- ArcSettingInner arcSetting,
+ String networkInterfaceName,
+ NetworkInterfacesInner networkInterfaces,
Context context);
/**
- * Update ArcSettings for HCI cluster.
+ * The operation to delete a network interface.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
- * @param arcSetting ArcSettings parameters that needs to be updated.
+ * @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 arcSetting details.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- ArcSettingInner update(
- String resourceGroupName, String clusterName, String arcSettingName, ArcSettingsPatch arcSetting);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String networkInterfaceName);
/**
- * Update ArcSettings for HCI cluster.
+ * The operation to delete a network interface.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
- * @param arcSetting ArcSettings parameters that needs to be updated.
+ * @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 arcSetting details along with {@link Response}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName,
- String clusterName,
- String arcSettingName,
- ArcSettingsPatch arcSetting,
- Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String networkInterfaceName, Context context);
/**
- * Delete ArcSetting resource details of HCI Cluster.
+ * The operation to delete a network interface.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
+ * @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 clusterName, String arcSettingName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String networkInterfaceName);
/**
- * Delete ArcSetting resource details of HCI Cluster.
+ * The operation to delete a network interface.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
+ * @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 clusterName, String arcSettingName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String networkInterfaceName, Context context);
/**
- * Delete ArcSetting resource details of HCI Cluster.
+ * The operation to update a network interface.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
+ * @param networkInterfaceName Name of the network interface.
+ * @param networkInterfaces The network interface resource patch definition.
* @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.SINGLE)
- void delete(String resourceGroupName, String clusterName, String arcSettingName);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, NetworkInterfacesInner> beginUpdate(
+ String resourceGroupName, String networkInterfaceName, NetworkInterfacesUpdateRequest networkInterfaces);
/**
- * Delete ArcSetting resource details of HCI Cluster.
+ * The operation to update a network interface.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
+ * @param networkInterfaceName Name of the network interface.
+ * @param networkInterfaces The network interface resource patch definition.
* @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.SINGLE)
- void delete(String resourceGroupName, String clusterName, String arcSettingName, Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, NetworkInterfacesInner> beginUpdate(
+ String resourceGroupName,
+ String networkInterfaceName,
+ NetworkInterfacesUpdateRequest networkInterfaces,
+ Context context);
/**
- * Generate password for arc settings.
+ * The operation to update a network interface.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
+ * @param networkInterfaceName Name of the network interface.
+ * @param networkInterfaces The network interface resource patch definition.
* @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 response.
+ * @return the network interface resource definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PasswordCredentialInner generatePassword(String resourceGroupName, String clusterName, String arcSettingName);
+ NetworkInterfacesInner update(
+ String resourceGroupName, String networkInterfaceName, NetworkInterfacesUpdateRequest networkInterfaces);
/**
- * Generate password for arc settings.
+ * The operation to update a network interface.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
+ * @param networkInterfaceName Name of the network interface.
+ * @param networkInterfaces The network interface resource patch definition.
* @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 response body along with {@link Response}.
+ * @return the network interface resource definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response generatePasswordWithResponse(
- String resourceGroupName, String clusterName, String arcSettingName, Context context);
+ NetworkInterfacesInner update(
+ String resourceGroupName,
+ String networkInterfaceName,
+ NetworkInterfacesUpdateRequest networkInterfaces,
+ Context context);
/**
- * Create Aad identity for arc settings.
+ * 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 clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
* @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 arcIdentity details.
+ * @return the paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ArcIdentityResponseInner> beginCreateIdentity(
- String resourceGroupName, String clusterName, String arcSettingName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
/**
- * Create Aad identity for arc settings.
+ * 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 clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
* @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 arcIdentity details.
+ * @return the paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ArcIdentityResponseInner> beginCreateIdentity(
- String resourceGroupName, String clusterName, String arcSettingName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
/**
- * Create Aad identity for arc settings.
+ * 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 resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
- * @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 arcIdentity details.
+ * @return the paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- ArcIdentityResponseInner createIdentity(String resourceGroupName, String clusterName, String arcSettingName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
/**
- * Create Aad identity for arc settings.
+ * 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 resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
* @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 arcIdentity details.
+ * @return the paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- ArcIdentityResponseInner createIdentity(
- String resourceGroupName, String clusterName, String arcSettingName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/OperationsClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/OperationsClient.java
deleted file mode 100644
index 0b8e907abe681..0000000000000
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/OperationsClient.java
+++ /dev/null
@@ -1,36 +0,0 @@
-// 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.util.Context;
-import com.azure.resourcemanager.azurestackhci.fluent.models.OperationListResultInner;
-
-/** An instance of this class provides access to all the operations defined in OperationsClient. */
-public interface OperationsClient {
- /**
- * List all available Microsoft.AzureStackHCI provider operations.
- *
- * @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 list of REST API operations supported by an Azure Resource Provider.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- OperationListResultInner list();
-
- /**
- * List all available Microsoft.AzureStackHCI provider operations.
- *
- * @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 list of REST API operations supported by an Azure Resource Provider along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(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 0000000000000..3f85568128571
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/StorageContainersOperationsClient.java
@@ -0,0 +1,290 @@
+// 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 storage container resource definition.
+ * @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 storage container resource definition.
+ * @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 storage container resource definition.
+ * @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 storage container resource definition.
+ * @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 storage container resource patch definition.
+ * @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 storage container resource patch definition.
+ * @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 storage container resource patch definition.
+ * @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 storage container resource patch definition.
+ * @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/ClustersClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/VirtualHardDisksOperationsClient.java
similarity index 55%
rename from sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ClustersClient.java
rename to sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/VirtualHardDisksOperationsClient.java
index 625ccd127e93b..3cdddaffc2def 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/VirtualHardDisksOperationsClient.java
@@ -11,166 +11,123 @@
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.ClusterIdentityResponseInner;
-import com.azure.resourcemanager.azurestackhci.fluent.models.ClusterInner;
-import com.azure.resourcemanager.azurestackhci.models.ClusterPatch;
-import com.azure.resourcemanager.azurestackhci.models.UploadCertificateRequest;
+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 ClustersClient. */
-public interface ClustersClient {
+/** An instance of this class provides access to all the operations defined in VirtualHardDisksOperationsClient. */
+public interface VirtualHardDisksOperationsClient {
/**
- * List all HCI clusters in a subscription.
- *
- * @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 clusters as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * List all HCI clusters in a subscription.
- *
- * @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 clusters as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
- /**
- * List all HCI clusters in a resource group.
- *
- * @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 clusters as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * List all HCI clusters in a resource group.
+ * 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 list of clusters as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
-
- /**
- * Get HCI cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @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 hCI cluster.
+ * @return a virtual hard disk along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ClusterInner getByResourceGroup(String resourceGroupName, String clusterName);
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String virtualHardDiskName, Context context);
/**
- * Get HCI cluster.
+ * Gets a virtual hard disk.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param context The context to associate with this operation.
+ * @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 hCI cluster along with {@link Response}.
+ * @return a virtual hard disk.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String clusterName, Context context);
+ VirtualHardDisksInner getByResourceGroup(String resourceGroupName, String virtualHardDiskName);
/**
- * Create an HCI cluster.
+ * 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 clusterName The name of the cluster.
- * @param cluster Details of the HCI cluster.
+ * @param virtualHardDiskName Name of the virtual hard disk.
+ * @param virtualHardDisks The virtual hard disk resource definition.
* @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.
+ * @return the {@link SyncPoller} for polling of the virtual hard disk resource definition.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- ClusterInner create(String resourceGroupName, String clusterName, ClusterInner cluster);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VirtualHardDisksInner> beginCreateOrUpdate(
+ String resourceGroupName, String virtualHardDiskName, VirtualHardDisksInner virtualHardDisks);
/**
- * Create an HCI cluster.
+ * 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 clusterName The name of the cluster.
- * @param cluster Details of the HCI cluster.
+ * @param virtualHardDiskName Name of the virtual hard disk.
+ * @param virtualHardDisks The virtual hard disk resource definition.
* @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 along with {@link Response}.
+ * @return the {@link SyncPoller} for polling of the virtual hard disk resource definition.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createWithResponse(
- String resourceGroupName, String clusterName, ClusterInner cluster, Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VirtualHardDisksInner> beginCreateOrUpdate(
+ String resourceGroupName, String virtualHardDiskName, VirtualHardDisksInner virtualHardDisks, Context context);
/**
- * Update an HCI cluster.
+ * 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 clusterName The name of the cluster.
- * @param cluster Details of the HCI cluster.
+ * @param virtualHardDiskName Name of the virtual hard disk.
+ * @param virtualHardDisks The virtual hard disk resource definition.
* @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.
+ * @return the virtual hard disk resource definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ClusterInner update(String resourceGroupName, String clusterName, ClusterPatch cluster);
+ VirtualHardDisksInner createOrUpdate(
+ String resourceGroupName, String virtualHardDiskName, VirtualHardDisksInner virtualHardDisks);
/**
- * Update an HCI cluster.
+ * 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 clusterName The name of the cluster.
- * @param cluster Details of the HCI cluster.
+ * @param virtualHardDiskName Name of the virtual hard disk.
+ * @param virtualHardDisks The virtual hard disk resource definition.
* @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 along with {@link Response}.
+ * @return the virtual hard disk resource definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName, String clusterName, ClusterPatch cluster, Context context);
+ VirtualHardDisksInner createOrUpdate(
+ String resourceGroupName, String virtualHardDiskName, VirtualHardDisksInner virtualHardDisks, Context context);
/**
- * Delete an HCI cluster.
+ * The operation to delete a virtual hard disk.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
+ * @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 clusterName);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String virtualHardDiskName);
/**
- * Delete an HCI cluster.
+ * The operation to delete a virtual hard disk.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
+ * @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.
@@ -178,152 +135,150 @@ Response updateWithResponse(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, Context context);
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String virtualHardDiskName, Context context);
/**
- * Delete an HCI cluster.
+ * The operation to delete a virtual hard disk.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
+ * @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 clusterName);
+ void delete(String resourceGroupName, String virtualHardDiskName);
/**
- * Delete an HCI cluster.
+ * The operation to delete a virtual hard disk.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
+ * @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 clusterName, Context context);
+ void delete(String resourceGroupName, String virtualHardDiskName, Context context);
/**
- * Upload certificate.
+ * The operation to update a virtual hard disk.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param uploadCertificateRequest Upload certificate request.
+ * @param virtualHardDiskName Name of the virtual hard disk.
+ * @param virtualHardDisks The virtual hard disk resource patch definition.
* @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.
+ * @return the {@link SyncPoller} for polling of the virtual hard disk resource definition.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginUploadCertificate(
- String resourceGroupName, String clusterName, UploadCertificateRequest uploadCertificateRequest);
+ SyncPoller, VirtualHardDisksInner> beginUpdate(
+ String resourceGroupName, String virtualHardDiskName, VirtualHardDisksUpdateRequest virtualHardDisks);
/**
- * Upload certificate.
+ * The operation to update a virtual hard disk.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param uploadCertificateRequest Upload certificate request.
+ * @param virtualHardDiskName Name of the virtual hard disk.
+ * @param virtualHardDisks The virtual hard disk resource patch definition.
* @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.
+ * @return the {@link SyncPoller} for polling of the virtual hard disk resource definition.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginUploadCertificate(
+ SyncPoller, VirtualHardDisksInner> beginUpdate(
String resourceGroupName,
- String clusterName,
- UploadCertificateRequest uploadCertificateRequest,
+ String virtualHardDiskName,
+ VirtualHardDisksUpdateRequest virtualHardDisks,
Context context);
/**
- * Upload certificate.
+ * The operation to update a virtual hard disk.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param uploadCertificateRequest Upload certificate request.
+ * @param virtualHardDiskName Name of the virtual hard disk.
+ * @param virtualHardDisks The virtual hard disk resource patch definition.
* @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)
- void uploadCertificate(
- String resourceGroupName, String clusterName, UploadCertificateRequest uploadCertificateRequest);
+ VirtualHardDisksInner update(
+ String resourceGroupName, String virtualHardDiskName, VirtualHardDisksUpdateRequest virtualHardDisks);
/**
- * Upload certificate.
+ * The operation to update a virtual hard disk.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param uploadCertificateRequest Upload certificate request.
+ * @param virtualHardDiskName Name of the virtual hard disk.
+ * @param virtualHardDisks The virtual hard disk resource patch definition.
* @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)
- void uploadCertificate(
+ VirtualHardDisksInner update(
String resourceGroupName,
- String clusterName,
- UploadCertificateRequest uploadCertificateRequest,
+ String virtualHardDiskName,
+ VirtualHardDisksUpdateRequest virtualHardDisks,
Context context);
/**
- * Create cluster identity.
+ * 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 clusterName The name of the cluster.
* @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 Identity details.
+ * @return the paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ClusterIdentityResponseInner> beginCreateIdentity(
- String resourceGroupName, String clusterName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
/**
- * Create cluster identity.
+ * 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 clusterName The name of the cluster.
* @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 Identity details.
+ * @return the paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ClusterIdentityResponseInner> beginCreateIdentity(
- String resourceGroupName, String clusterName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
/**
- * Create cluster identity.
+ * 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 resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @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 Identity details.
+ * @return the paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- ClusterIdentityResponseInner createIdentity(String resourceGroupName, String clusterName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
/**
- * Create cluster identity.
+ * 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 resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
* @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 Identity details.
+ * @return the paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- ClusterIdentityResponseInner createIdentity(String resourceGroupName, String clusterName, Context context);
+ @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 0000000000000..76dba84e1664a
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/VirtualMachineInstancesClient.java
@@ -0,0 +1,415 @@
+// 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 virtual machine instance resource definition.
+ * @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 virtual machine instance resource definition.
+ * @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 virtual machine instance resource definition.
+ * @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 virtual machine instance resource definition.
+ * @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 virtual machine instance resource patch definition.
+ * @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 virtual machine instance resource patch definition.
+ * @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 virtual machine instance resource patch definition.
+ * @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 virtual machine instance resource patch definition.
+ * @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/VirtualNetworksOperationsClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/VirtualNetworksOperationsClient.java
new file mode 100644
index 0000000000000..76e5722b3f404
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/VirtualNetworksOperationsClient.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.VirtualNetworksInner;
+import com.azure.resourcemanager.azurestackhci.models.VirtualNetworksUpdateRequest;
+
+/** An instance of this class provides access to all the operations defined in VirtualNetworksOperationsClient. */
+public interface VirtualNetworksOperationsClient {
+ /**
+ * The getByResourceGroup operation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualNetworkName Name of the virtual 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 virtual network resource definition along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String virtualNetworkName, Context context);
+
+ /**
+ * The getByResourceGroup operation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualNetworkName Name of the virtual 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 virtual network resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualNetworksInner getByResourceGroup(String resourceGroupName, String virtualNetworkName);
+
+ /**
+ * The operation to create or update a virtual network. Please note some properties can be set only during virtual
+ * network creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualNetworkName Name of the virtual network.
+ * @param virtualNetworks The virtual network resource definition.
+ * @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 network resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VirtualNetworksInner> beginCreateOrUpdate(
+ String resourceGroupName, String virtualNetworkName, VirtualNetworksInner virtualNetworks);
+
+ /**
+ * The operation to create or update a virtual network. Please note some properties can be set only during virtual
+ * network creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualNetworkName Name of the virtual network.
+ * @param virtualNetworks The virtual network resource definition.
+ * @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 network resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VirtualNetworksInner> beginCreateOrUpdate(
+ String resourceGroupName, String virtualNetworkName, VirtualNetworksInner virtualNetworks, Context context);
+
+ /**
+ * The operation to create or update a virtual network. Please note some properties can be set only during virtual
+ * network creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualNetworkName Name of the virtual network.
+ * @param virtualNetworks The virtual network resource definition.
+ * @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 network resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualNetworksInner createOrUpdate(
+ String resourceGroupName, String virtualNetworkName, VirtualNetworksInner virtualNetworks);
+
+ /**
+ * The operation to create or update a virtual network. Please note some properties can be set only during virtual
+ * network creation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualNetworkName Name of the virtual network.
+ * @param virtualNetworks The virtual network resource definition.
+ * @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 network resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualNetworksInner createOrUpdate(
+ String resourceGroupName, String virtualNetworkName, VirtualNetworksInner virtualNetworks, Context context);
+
+ /**
+ * The operation to delete a virtual network.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualNetworkName Name of the virtual 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 virtualNetworkName);
+
+ /**
+ * The operation to delete a virtual network.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualNetworkName Name of the virtual 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 virtualNetworkName, Context context);
+
+ /**
+ * The operation to delete a virtual network.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualNetworkName Name of the virtual 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 virtualNetworkName);
+
+ /**
+ * The operation to delete a virtual network.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualNetworkName Name of the virtual 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 virtualNetworkName, Context context);
+
+ /**
+ * The operation to update a virtual network.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualNetworkName Name of the virtual network.
+ * @param virtualNetworks The virtual network resource patch definition.
+ * @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 network resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VirtualNetworksInner> beginUpdate(
+ String resourceGroupName, String virtualNetworkName, VirtualNetworksUpdateRequest virtualNetworks);
+
+ /**
+ * The operation to update a virtual network.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualNetworkName Name of the virtual network.
+ * @param virtualNetworks The virtual network resource patch definition.
+ * @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 network resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VirtualNetworksInner> beginUpdate(
+ String resourceGroupName,
+ String virtualNetworkName,
+ VirtualNetworksUpdateRequest virtualNetworks,
+ Context context);
+
+ /**
+ * The operation to update a virtual network.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualNetworkName Name of the virtual network.
+ * @param virtualNetworks The virtual network resource patch definition.
+ * @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 network resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualNetworksInner update(
+ String resourceGroupName, String virtualNetworkName, VirtualNetworksUpdateRequest virtualNetworks);
+
+ /**
+ * The operation to update a virtual network.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param virtualNetworkName Name of the virtual network.
+ * @param virtualNetworks The virtual network resource patch definition.
+ * @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 network resource definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualNetworksInner update(
+ String resourceGroupName,
+ String virtualNetworkName,
+ VirtualNetworksUpdateRequest virtualNetworks,
+ Context context);
+
+ /**
+ * Lists all of the virtual networks in the specified resource group. Use the nextLink property in the response to
+ * get the next page of virtual 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 virtual networks in the specified resource group. Use the nextLink property in the response to
+ * get the next page of virtual 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 virtual networks in the specified subscription. Use the nextLink property in the response to get
+ * the next page of virtual 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 virtual networks in the specified subscription. Use the nextLink property in the response to get
+ * the next page of virtual 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/models/ArcIdentityResponseInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcIdentityResponseInner.java
deleted file mode 100644
index 909acd05b51ed..0000000000000
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcIdentityResponseInner.java
+++ /dev/null
@@ -1,130 +0,0 @@
-// 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.Immutable;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** ArcIdentity details. */
-@Immutable
-public final class ArcIdentityResponseInner {
- /*
- * ArcIdentity properties.
- */
- @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
- private ArcIdentityResponseProperties innerProperties;
-
- /**
- * Get the innerProperties property: ArcIdentity properties.
- *
- * @return the innerProperties value.
- */
- private ArcIdentityResponseProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the arcApplicationClientId property: The arcApplicationClientId property.
- *
- * @return the arcApplicationClientId value.
- */
- public String arcApplicationClientId() {
- return this.innerProperties() == null ? null : this.innerProperties().arcApplicationClientId();
- }
-
- /**
- * Set the arcApplicationClientId property: The arcApplicationClientId property.
- *
- * @param arcApplicationClientId the arcApplicationClientId value to set.
- * @return the ArcIdentityResponseInner object itself.
- */
- public ArcIdentityResponseInner withArcApplicationClientId(String arcApplicationClientId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ArcIdentityResponseProperties();
- }
- this.innerProperties().withArcApplicationClientId(arcApplicationClientId);
- return this;
- }
-
- /**
- * Get the arcApplicationTenantId property: The arcApplicationTenantId property.
- *
- * @return the arcApplicationTenantId value.
- */
- public String arcApplicationTenantId() {
- return this.innerProperties() == null ? null : this.innerProperties().arcApplicationTenantId();
- }
-
- /**
- * Set the arcApplicationTenantId property: The arcApplicationTenantId property.
- *
- * @param arcApplicationTenantId the arcApplicationTenantId value to set.
- * @return the ArcIdentityResponseInner object itself.
- */
- public ArcIdentityResponseInner withArcApplicationTenantId(String arcApplicationTenantId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ArcIdentityResponseProperties();
- }
- this.innerProperties().withArcApplicationTenantId(arcApplicationTenantId);
- return this;
- }
-
- /**
- * Get the arcServicePrincipalObjectId property: The arcServicePrincipalObjectId property.
- *
- * @return the arcServicePrincipalObjectId value.
- */
- public String arcServicePrincipalObjectId() {
- return this.innerProperties() == null ? null : this.innerProperties().arcServicePrincipalObjectId();
- }
-
- /**
- * Set the arcServicePrincipalObjectId property: The arcServicePrincipalObjectId property.
- *
- * @param arcServicePrincipalObjectId the arcServicePrincipalObjectId value to set.
- * @return the ArcIdentityResponseInner object itself.
- */
- public ArcIdentityResponseInner withArcServicePrincipalObjectId(String arcServicePrincipalObjectId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ArcIdentityResponseProperties();
- }
- this.innerProperties().withArcServicePrincipalObjectId(arcServicePrincipalObjectId);
- return this;
- }
-
- /**
- * Get the arcApplicationObjectId property: The arcApplicationObjectId property.
- *
- * @return the arcApplicationObjectId value.
- */
- public String arcApplicationObjectId() {
- return this.innerProperties() == null ? null : this.innerProperties().arcApplicationObjectId();
- }
-
- /**
- * Set the arcApplicationObjectId property: The arcApplicationObjectId property.
- *
- * @param arcApplicationObjectId the arcApplicationObjectId value to set.
- * @return the ArcIdentityResponseInner object itself.
- */
- public ArcIdentityResponseInner withArcApplicationObjectId(String arcApplicationObjectId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ArcIdentityResponseProperties();
- }
- this.innerProperties().withArcApplicationObjectId(arcApplicationObjectId);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcIdentityResponseProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcIdentityResponseProperties.java
deleted file mode 100644
index 5b20f4848fb72..0000000000000
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcIdentityResponseProperties.java
+++ /dev/null
@@ -1,124 +0,0 @@
-// 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.fasterxml.jackson.annotation.JsonProperty;
-
-/** The ArcIdentityResponseProperties model. */
-@Fluent
-public final class ArcIdentityResponseProperties {
- /*
- * The arcApplicationClientId property.
- */
- @JsonProperty(value = "arcApplicationClientId")
- private String arcApplicationClientId;
-
- /*
- * The arcApplicationTenantId property.
- */
- @JsonProperty(value = "arcApplicationTenantId")
- private String arcApplicationTenantId;
-
- /*
- * The arcServicePrincipalObjectId property.
- */
- @JsonProperty(value = "arcServicePrincipalObjectId")
- private String arcServicePrincipalObjectId;
-
- /*
- * The arcApplicationObjectId property.
- */
- @JsonProperty(value = "arcApplicationObjectId")
- private String arcApplicationObjectId;
-
- /**
- * Get the arcApplicationClientId property: The arcApplicationClientId property.
- *
- * @return the arcApplicationClientId value.
- */
- public String arcApplicationClientId() {
- return this.arcApplicationClientId;
- }
-
- /**
- * Set the arcApplicationClientId property: The arcApplicationClientId property.
- *
- * @param arcApplicationClientId the arcApplicationClientId value to set.
- * @return the ArcIdentityResponseProperties object itself.
- */
- public ArcIdentityResponseProperties withArcApplicationClientId(String arcApplicationClientId) {
- this.arcApplicationClientId = arcApplicationClientId;
- return this;
- }
-
- /**
- * Get the arcApplicationTenantId property: The arcApplicationTenantId property.
- *
- * @return the arcApplicationTenantId value.
- */
- public String arcApplicationTenantId() {
- return this.arcApplicationTenantId;
- }
-
- /**
- * Set the arcApplicationTenantId property: The arcApplicationTenantId property.
- *
- * @param arcApplicationTenantId the arcApplicationTenantId value to set.
- * @return the ArcIdentityResponseProperties object itself.
- */
- public ArcIdentityResponseProperties withArcApplicationTenantId(String arcApplicationTenantId) {
- this.arcApplicationTenantId = arcApplicationTenantId;
- return this;
- }
-
- /**
- * Get the arcServicePrincipalObjectId property: The arcServicePrincipalObjectId property.
- *
- * @return the arcServicePrincipalObjectId value.
- */
- public String arcServicePrincipalObjectId() {
- return this.arcServicePrincipalObjectId;
- }
-
- /**
- * Set the arcServicePrincipalObjectId property: The arcServicePrincipalObjectId property.
- *
- * @param arcServicePrincipalObjectId the arcServicePrincipalObjectId value to set.
- * @return the ArcIdentityResponseProperties object itself.
- */
- public ArcIdentityResponseProperties withArcServicePrincipalObjectId(String arcServicePrincipalObjectId) {
- this.arcServicePrincipalObjectId = arcServicePrincipalObjectId;
- return this;
- }
-
- /**
- * Get the arcApplicationObjectId property: The arcApplicationObjectId property.
- *
- * @return the arcApplicationObjectId value.
- */
- public String arcApplicationObjectId() {
- return this.arcApplicationObjectId;
- }
-
- /**
- * Set the arcApplicationObjectId property: The arcApplicationObjectId property.
- *
- * @param arcApplicationObjectId the arcApplicationObjectId value to set.
- * @return the ArcIdentityResponseProperties object itself.
- */
- public ArcIdentityResponseProperties withArcApplicationObjectId(String arcApplicationObjectId) {
- this.arcApplicationObjectId = arcApplicationObjectId;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
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
deleted file mode 100644
index cfdbb16c5d221..0000000000000
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcSettingInner.java
+++ /dev/null
@@ -1,226 +0,0 @@
-// 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.resourcemanager.azurestackhci.models.ArcSettingAggregateState;
-import com.azure.resourcemanager.azurestackhci.models.PerNodeState;
-import com.azure.resourcemanager.azurestackhci.models.ProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/** ArcSetting details. */
-@Fluent
-public final class ArcSettingInner extends ProxyResource {
- /*
- * System data of ArcSetting resource
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
- /*
- * ArcSetting properties.
- */
- @JsonProperty(value = "properties")
- private ArcSettingProperties innerProperties;
-
- /**
- * Get the systemData property: System data of ArcSetting resource.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the innerProperties property: ArcSetting properties.
- *
- * @return the innerProperties value.
- */
- private ArcSettingProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the provisioningState property: Provisioning state of the ArcSetting proxy resource.
- *
- * @return the provisioningState value.
- */
- public ProvisioningState provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
- }
-
- /**
- * Get the arcInstanceResourceGroup property: The resource group that hosts the Arc agents, ie. Hybrid Compute
- * Machine resources.
- *
- * @return the arcInstanceResourceGroup value.
- */
- public String arcInstanceResourceGroup() {
- return this.innerProperties() == null ? null : this.innerProperties().arcInstanceResourceGroup();
- }
-
- /**
- * Set the arcInstanceResourceGroup property: The resource group that hosts the Arc agents, ie. Hybrid Compute
- * Machine resources.
- *
- * @param arcInstanceResourceGroup the arcInstanceResourceGroup value to set.
- * @return the ArcSettingInner object itself.
- */
- public ArcSettingInner withArcInstanceResourceGroup(String arcInstanceResourceGroup) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ArcSettingProperties();
- }
- this.innerProperties().withArcInstanceResourceGroup(arcInstanceResourceGroup);
- return this;
- }
-
- /**
- * Get the arcApplicationClientId property: App id of arc AAD identity.
- *
- * @return the arcApplicationClientId value.
- */
- public String arcApplicationClientId() {
- return this.innerProperties() == null ? null : this.innerProperties().arcApplicationClientId();
- }
-
- /**
- * Set the arcApplicationClientId property: App id of arc AAD identity.
- *
- * @param arcApplicationClientId the arcApplicationClientId value to set.
- * @return the ArcSettingInner object itself.
- */
- public ArcSettingInner withArcApplicationClientId(String arcApplicationClientId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ArcSettingProperties();
- }
- this.innerProperties().withArcApplicationClientId(arcApplicationClientId);
- return this;
- }
-
- /**
- * Get the arcApplicationTenantId property: Tenant id of arc AAD identity.
- *
- * @return the arcApplicationTenantId value.
- */
- public String arcApplicationTenantId() {
- return this.innerProperties() == null ? null : this.innerProperties().arcApplicationTenantId();
- }
-
- /**
- * Set the arcApplicationTenantId property: Tenant id of arc AAD identity.
- *
- * @param arcApplicationTenantId the arcApplicationTenantId value to set.
- * @return the ArcSettingInner object itself.
- */
- public ArcSettingInner withArcApplicationTenantId(String arcApplicationTenantId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ArcSettingProperties();
- }
- this.innerProperties().withArcApplicationTenantId(arcApplicationTenantId);
- return this;
- }
-
- /**
- * Get the arcServicePrincipalObjectId property: Object id of arc AAD service principal.
- *
- * @return the arcServicePrincipalObjectId value.
- */
- public String arcServicePrincipalObjectId() {
- return this.innerProperties() == null ? null : this.innerProperties().arcServicePrincipalObjectId();
- }
-
- /**
- * Set the arcServicePrincipalObjectId property: Object id of arc AAD service principal.
- *
- * @param arcServicePrincipalObjectId the arcServicePrincipalObjectId value to set.
- * @return the ArcSettingInner object itself.
- */
- public ArcSettingInner withArcServicePrincipalObjectId(String arcServicePrincipalObjectId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ArcSettingProperties();
- }
- this.innerProperties().withArcServicePrincipalObjectId(arcServicePrincipalObjectId);
- return this;
- }
-
- /**
- * Get the arcApplicationObjectId property: Object id of arc AAD identity.
- *
- * @return the arcApplicationObjectId value.
- */
- public String arcApplicationObjectId() {
- return this.innerProperties() == null ? null : this.innerProperties().arcApplicationObjectId();
- }
-
- /**
- * Set the arcApplicationObjectId property: Object id of arc AAD identity.
- *
- * @param arcApplicationObjectId the arcApplicationObjectId value to set.
- * @return the ArcSettingInner object itself.
- */
- public ArcSettingInner withArcApplicationObjectId(String arcApplicationObjectId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ArcSettingProperties();
- }
- this.innerProperties().withArcApplicationObjectId(arcApplicationObjectId);
- return this;
- }
-
- /**
- * Get the aggregateState property: Aggregate state of Arc agent across the nodes in this HCI cluster.
- *
- * @return the aggregateState value.
- */
- public ArcSettingAggregateState aggregateState() {
- return this.innerProperties() == null ? null : this.innerProperties().aggregateState();
- }
-
- /**
- * Get the perNodeDetails property: State of Arc agent in each of the nodes.
- *
- * @return the perNodeDetails value.
- */
- public List perNodeDetails() {
- return this.innerProperties() == null ? null : this.innerProperties().perNodeDetails();
- }
-
- /**
- * Get the connectivityProperties property: contains connectivity related configuration for ARC resources.
- *
- * @return the connectivityProperties value.
- */
- public Object connectivityProperties() {
- return this.innerProperties() == null ? null : this.innerProperties().connectivityProperties();
- }
-
- /**
- * Set the connectivityProperties property: contains connectivity related configuration for ARC resources.
- *
- * @param connectivityProperties the connectivityProperties value to set.
- * @return the ArcSettingInner object itself.
- */
- public ArcSettingInner withConnectivityProperties(Object connectivityProperties) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ArcSettingProperties();
- }
- this.innerProperties().withConnectivityProperties(connectivityProperties);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcSettingProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcSettingProperties.java
deleted file mode 100644
index e628ec8d6f034..0000000000000
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcSettingProperties.java
+++ /dev/null
@@ -1,231 +0,0 @@
-// 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.resourcemanager.azurestackhci.models.ArcSettingAggregateState;
-import com.azure.resourcemanager.azurestackhci.models.PerNodeState;
-import com.azure.resourcemanager.azurestackhci.models.ProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/** ArcSetting properties. */
-@Fluent
-public final class ArcSettingProperties {
- /*
- * Provisioning state of the ArcSetting proxy resource.
- */
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
- private ProvisioningState provisioningState;
-
- /*
- * The resource group that hosts the Arc agents, ie. Hybrid Compute Machine
- * resources.
- */
- @JsonProperty(value = "arcInstanceResourceGroup")
- private String arcInstanceResourceGroup;
-
- /*
- * App id of arc AAD identity.
- */
- @JsonProperty(value = "arcApplicationClientId")
- private String arcApplicationClientId;
-
- /*
- * Tenant id of arc AAD identity.
- */
- @JsonProperty(value = "arcApplicationTenantId")
- private String arcApplicationTenantId;
-
- /*
- * Object id of arc AAD service principal.
- */
- @JsonProperty(value = "arcServicePrincipalObjectId")
- private String arcServicePrincipalObjectId;
-
- /*
- * Object id of arc AAD identity.
- */
- @JsonProperty(value = "arcApplicationObjectId")
- private String arcApplicationObjectId;
-
- /*
- * Aggregate state of Arc agent across the nodes in this HCI cluster.
- */
- @JsonProperty(value = "aggregateState", access = JsonProperty.Access.WRITE_ONLY)
- private ArcSettingAggregateState aggregateState;
-
- /*
- * State of Arc agent in each of the nodes.
- */
- @JsonProperty(value = "perNodeDetails", access = JsonProperty.Access.WRITE_ONLY)
- private List perNodeDetails;
-
- /*
- * contains connectivity related configuration for ARC resources
- */
- @JsonProperty(value = "connectivityProperties")
- private Object connectivityProperties;
-
- /**
- * Get the provisioningState property: Provisioning state of the ArcSetting proxy resource.
- *
- * @return the provisioningState value.
- */
- public ProvisioningState provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Get the arcInstanceResourceGroup property: The resource group that hosts the Arc agents, ie. Hybrid Compute
- * Machine resources.
- *
- * @return the arcInstanceResourceGroup value.
- */
- public String arcInstanceResourceGroup() {
- return this.arcInstanceResourceGroup;
- }
-
- /**
- * Set the arcInstanceResourceGroup property: The resource group that hosts the Arc agents, ie. Hybrid Compute
- * Machine resources.
- *
- * @param arcInstanceResourceGroup the arcInstanceResourceGroup value to set.
- * @return the ArcSettingProperties object itself.
- */
- public ArcSettingProperties withArcInstanceResourceGroup(String arcInstanceResourceGroup) {
- this.arcInstanceResourceGroup = arcInstanceResourceGroup;
- return this;
- }
-
- /**
- * Get the arcApplicationClientId property: App id of arc AAD identity.
- *
- * @return the arcApplicationClientId value.
- */
- public String arcApplicationClientId() {
- return this.arcApplicationClientId;
- }
-
- /**
- * Set the arcApplicationClientId property: App id of arc AAD identity.
- *
- * @param arcApplicationClientId the arcApplicationClientId value to set.
- * @return the ArcSettingProperties object itself.
- */
- public ArcSettingProperties withArcApplicationClientId(String arcApplicationClientId) {
- this.arcApplicationClientId = arcApplicationClientId;
- return this;
- }
-
- /**
- * Get the arcApplicationTenantId property: Tenant id of arc AAD identity.
- *
- * @return the arcApplicationTenantId value.
- */
- public String arcApplicationTenantId() {
- return this.arcApplicationTenantId;
- }
-
- /**
- * Set the arcApplicationTenantId property: Tenant id of arc AAD identity.
- *
- * @param arcApplicationTenantId the arcApplicationTenantId value to set.
- * @return the ArcSettingProperties object itself.
- */
- public ArcSettingProperties withArcApplicationTenantId(String arcApplicationTenantId) {
- this.arcApplicationTenantId = arcApplicationTenantId;
- return this;
- }
-
- /**
- * Get the arcServicePrincipalObjectId property: Object id of arc AAD service principal.
- *
- * @return the arcServicePrincipalObjectId value.
- */
- public String arcServicePrincipalObjectId() {
- return this.arcServicePrincipalObjectId;
- }
-
- /**
- * Set the arcServicePrincipalObjectId property: Object id of arc AAD service principal.
- *
- * @param arcServicePrincipalObjectId the arcServicePrincipalObjectId value to set.
- * @return the ArcSettingProperties object itself.
- */
- public ArcSettingProperties withArcServicePrincipalObjectId(String arcServicePrincipalObjectId) {
- this.arcServicePrincipalObjectId = arcServicePrincipalObjectId;
- return this;
- }
-
- /**
- * Get the arcApplicationObjectId property: Object id of arc AAD identity.
- *
- * @return the arcApplicationObjectId value.
- */
- public String arcApplicationObjectId() {
- return this.arcApplicationObjectId;
- }
-
- /**
- * Set the arcApplicationObjectId property: Object id of arc AAD identity.
- *
- * @param arcApplicationObjectId the arcApplicationObjectId value to set.
- * @return the ArcSettingProperties object itself.
- */
- public ArcSettingProperties withArcApplicationObjectId(String arcApplicationObjectId) {
- this.arcApplicationObjectId = arcApplicationObjectId;
- return this;
- }
-
- /**
- * Get the aggregateState property: Aggregate state of Arc agent across the nodes in this HCI cluster.
- *
- * @return the aggregateState value.
- */
- public ArcSettingAggregateState aggregateState() {
- return this.aggregateState;
- }
-
- /**
- * Get the perNodeDetails property: State of Arc agent in each of the nodes.
- *
- * @return the perNodeDetails value.
- */
- public List perNodeDetails() {
- return this.perNodeDetails;
- }
-
- /**
- * Get the connectivityProperties property: contains connectivity related configuration for ARC resources.
- *
- * @return the connectivityProperties value.
- */
- public Object connectivityProperties() {
- return this.connectivityProperties;
- }
-
- /**
- * Set the connectivityProperties property: contains connectivity related configuration for ARC resources.
- *
- * @param connectivityProperties the connectivityProperties value to set.
- * @return the ArcSettingProperties object itself.
- */
- public ArcSettingProperties withConnectivityProperties(Object connectivityProperties) {
- this.connectivityProperties = connectivityProperties;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (perNodeDetails() != null) {
- perNodeDetails().forEach(e -> e.validate());
- }
- }
-}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcSettingsPatchProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcSettingsPatchProperties.java
deleted file mode 100644
index ea82478352316..0000000000000
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcSettingsPatchProperties.java
+++ /dev/null
@@ -1,46 +0,0 @@
-// 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.fasterxml.jackson.annotation.JsonProperty;
-
-/** ArcSettings properties. */
-@Fluent
-public final class ArcSettingsPatchProperties {
- /*
- * contains connectivity related configuration for ARC resources
- */
- @JsonProperty(value = "connectivityProperties")
- private Object connectivityProperties;
-
- /**
- * Get the connectivityProperties property: contains connectivity related configuration for ARC resources.
- *
- * @return the connectivityProperties value.
- */
- public Object connectivityProperties() {
- return this.connectivityProperties;
- }
-
- /**
- * Set the connectivityProperties property: contains connectivity related configuration for ARC resources.
- *
- * @param connectivityProperties the connectivityProperties value to set.
- * @return the ArcSettingsPatchProperties object itself.
- */
- public ArcSettingsPatchProperties withConnectivityProperties(Object connectivityProperties) {
- this.connectivityProperties = connectivityProperties;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterIdentityResponseInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterIdentityResponseInner.java
deleted file mode 100644
index be934a9d5d353..0000000000000
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterIdentityResponseInner.java
+++ /dev/null
@@ -1,130 +0,0 @@
-// 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.Immutable;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Cluster Identity details. */
-@Immutable
-public final class ClusterIdentityResponseInner {
- /*
- * Cluster identity properties.
- */
- @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
- private ClusterIdentityResponseProperties innerProperties;
-
- /**
- * Get the innerProperties property: Cluster identity properties.
- *
- * @return the innerProperties value.
- */
- private ClusterIdentityResponseProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the aadClientId property: The aadClientId property.
- *
- * @return the aadClientId value.
- */
- public String aadClientId() {
- return this.innerProperties() == null ? null : this.innerProperties().aadClientId();
- }
-
- /**
- * Set the aadClientId property: The aadClientId property.
- *
- * @param aadClientId the aadClientId value to set.
- * @return the ClusterIdentityResponseInner object itself.
- */
- public ClusterIdentityResponseInner withAadClientId(String aadClientId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ClusterIdentityResponseProperties();
- }
- this.innerProperties().withAadClientId(aadClientId);
- return this;
- }
-
- /**
- * Get the aadTenantId property: The aadTenantId property.
- *
- * @return the aadTenantId value.
- */
- public String aadTenantId() {
- return this.innerProperties() == null ? null : this.innerProperties().aadTenantId();
- }
-
- /**
- * Set the aadTenantId property: The aadTenantId property.
- *
- * @param aadTenantId the aadTenantId value to set.
- * @return the ClusterIdentityResponseInner object itself.
- */
- public ClusterIdentityResponseInner withAadTenantId(String aadTenantId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ClusterIdentityResponseProperties();
- }
- this.innerProperties().withAadTenantId(aadTenantId);
- return this;
- }
-
- /**
- * Get the aadServicePrincipalObjectId property: The aadServicePrincipalObjectId property.
- *
- * @return the aadServicePrincipalObjectId value.
- */
- public String aadServicePrincipalObjectId() {
- return this.innerProperties() == null ? null : this.innerProperties().aadServicePrincipalObjectId();
- }
-
- /**
- * Set the aadServicePrincipalObjectId property: The aadServicePrincipalObjectId property.
- *
- * @param aadServicePrincipalObjectId the aadServicePrincipalObjectId value to set.
- * @return the ClusterIdentityResponseInner object itself.
- */
- public ClusterIdentityResponseInner withAadServicePrincipalObjectId(String aadServicePrincipalObjectId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ClusterIdentityResponseProperties();
- }
- this.innerProperties().withAadServicePrincipalObjectId(aadServicePrincipalObjectId);
- return this;
- }
-
- /**
- * Get the aadApplicationObjectId property: The aadApplicationObjectId property.
- *
- * @return the aadApplicationObjectId value.
- */
- public String aadApplicationObjectId() {
- return this.innerProperties() == null ? null : this.innerProperties().aadApplicationObjectId();
- }
-
- /**
- * Set the aadApplicationObjectId property: The aadApplicationObjectId property.
- *
- * @param aadApplicationObjectId the aadApplicationObjectId value to set.
- * @return the ClusterIdentityResponseInner object itself.
- */
- public ClusterIdentityResponseInner withAadApplicationObjectId(String aadApplicationObjectId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ClusterIdentityResponseProperties();
- }
- this.innerProperties().withAadApplicationObjectId(aadApplicationObjectId);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterIdentityResponseProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterIdentityResponseProperties.java
deleted file mode 100644
index 745b333748ae2..0000000000000
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterIdentityResponseProperties.java
+++ /dev/null
@@ -1,124 +0,0 @@
-// 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.fasterxml.jackson.annotation.JsonProperty;
-
-/** The ClusterIdentityResponseProperties model. */
-@Fluent
-public final class ClusterIdentityResponseProperties {
- /*
- * The aadClientId property.
- */
- @JsonProperty(value = "aadClientId")
- private String aadClientId;
-
- /*
- * The aadTenantId property.
- */
- @JsonProperty(value = "aadTenantId")
- private String aadTenantId;
-
- /*
- * The aadServicePrincipalObjectId property.
- */
- @JsonProperty(value = "aadServicePrincipalObjectId")
- private String aadServicePrincipalObjectId;
-
- /*
- * The aadApplicationObjectId property.
- */
- @JsonProperty(value = "aadApplicationObjectId")
- private String aadApplicationObjectId;
-
- /**
- * Get the aadClientId property: The aadClientId property.
- *
- * @return the aadClientId value.
- */
- public String aadClientId() {
- return this.aadClientId;
- }
-
- /**
- * Set the aadClientId property: The aadClientId property.
- *
- * @param aadClientId the aadClientId value to set.
- * @return the ClusterIdentityResponseProperties object itself.
- */
- public ClusterIdentityResponseProperties withAadClientId(String aadClientId) {
- this.aadClientId = aadClientId;
- return this;
- }
-
- /**
- * Get the aadTenantId property: The aadTenantId property.
- *
- * @return the aadTenantId value.
- */
- public String aadTenantId() {
- return this.aadTenantId;
- }
-
- /**
- * Set the aadTenantId property: The aadTenantId property.
- *
- * @param aadTenantId the aadTenantId value to set.
- * @return the ClusterIdentityResponseProperties object itself.
- */
- public ClusterIdentityResponseProperties withAadTenantId(String aadTenantId) {
- this.aadTenantId = aadTenantId;
- return this;
- }
-
- /**
- * Get the aadServicePrincipalObjectId property: The aadServicePrincipalObjectId property.
- *
- * @return the aadServicePrincipalObjectId value.
- */
- public String aadServicePrincipalObjectId() {
- return this.aadServicePrincipalObjectId;
- }
-
- /**
- * Set the aadServicePrincipalObjectId property: The aadServicePrincipalObjectId property.
- *
- * @param aadServicePrincipalObjectId the aadServicePrincipalObjectId value to set.
- * @return the ClusterIdentityResponseProperties object itself.
- */
- public ClusterIdentityResponseProperties withAadServicePrincipalObjectId(String aadServicePrincipalObjectId) {
- this.aadServicePrincipalObjectId = aadServicePrincipalObjectId;
- return this;
- }
-
- /**
- * Get the aadApplicationObjectId property: The aadApplicationObjectId property.
- *
- * @return the aadApplicationObjectId value.
- */
- public String aadApplicationObjectId() {
- return this.aadApplicationObjectId;
- }
-
- /**
- * Set the aadApplicationObjectId property: The aadApplicationObjectId property.
- *
- * @param aadApplicationObjectId the aadApplicationObjectId value to set.
- * @return the ClusterIdentityResponseProperties object itself.
- */
- public ClusterIdentityResponseProperties withAadApplicationObjectId(String aadApplicationObjectId) {
- this.aadApplicationObjectId = aadApplicationObjectId;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
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
deleted file mode 100644
index 90830dc5dd720..0000000000000
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterInner.java
+++ /dev/null
@@ -1,303 +0,0 @@
-// 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.resourcemanager.azurestackhci.models.ClusterDesiredProperties;
-import com.azure.resourcemanager.azurestackhci.models.ClusterReportedProperties;
-import com.azure.resourcemanager.azurestackhci.models.ProvisioningState;
-import com.azure.resourcemanager.azurestackhci.models.Status;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-import java.util.Map;
-
-/** Cluster details. */
-@Fluent
-public final class ClusterInner extends Resource {
- /*
- * System data of Cluster resource
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
- /*
- * Cluster properties.
- */
- @JsonProperty(value = "properties")
- private ClusterProperties innerProperties;
-
- /**
- * Get the systemData property: System data of Cluster resource.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the innerProperties property: Cluster properties.
- *
- * @return the innerProperties value.
- */
- private ClusterProperties innerProperties() {
- return this.innerProperties;
- }
-
- /** {@inheritDoc} */
- @Override
- public ClusterInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /** {@inheritDoc} */
- @Override
- public ClusterInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
- /**
- * Get the provisioningState property: Provisioning state.
- *
- * @return the provisioningState value.
- */
- public ProvisioningState provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
- }
-
- /**
- * Get the status property: Status of the cluster agent.
- *
- * @return the status value.
- */
- public Status status() {
- return this.innerProperties() == null ? null : this.innerProperties().status();
- }
-
- /**
- * Get the cloudId property: Unique, immutable resource id.
- *
- * @return the cloudId value.
- */
- public String cloudId() {
- return this.innerProperties() == null ? null : this.innerProperties().cloudId();
- }
-
- /**
- * Get the cloudManagementEndpoint property: Endpoint configured for management from the Azure portal.
- *
- * @return the cloudManagementEndpoint value.
- */
- public String cloudManagementEndpoint() {
- return this.innerProperties() == null ? null : this.innerProperties().cloudManagementEndpoint();
- }
-
- /**
- * Set the cloudManagementEndpoint property: Endpoint configured for management from the Azure portal.
- *
- * @param cloudManagementEndpoint the cloudManagementEndpoint value to set.
- * @return the ClusterInner object itself.
- */
- public ClusterInner withCloudManagementEndpoint(String cloudManagementEndpoint) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ClusterProperties();
- }
- this.innerProperties().withCloudManagementEndpoint(cloudManagementEndpoint);
- return this;
- }
-
- /**
- * Get the aadClientId property: App id of cluster AAD identity.
- *
- * @return the aadClientId value.
- */
- public String aadClientId() {
- return this.innerProperties() == null ? null : this.innerProperties().aadClientId();
- }
-
- /**
- * Set the aadClientId property: App id of cluster AAD identity.
- *
- * @param aadClientId the aadClientId value to set.
- * @return the ClusterInner object itself.
- */
- public ClusterInner withAadClientId(String aadClientId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ClusterProperties();
- }
- this.innerProperties().withAadClientId(aadClientId);
- return this;
- }
-
- /**
- * Get the aadTenantId property: Tenant id of cluster AAD identity.
- *
- * @return the aadTenantId value.
- */
- public String aadTenantId() {
- return this.innerProperties() == null ? null : this.innerProperties().aadTenantId();
- }
-
- /**
- * Set the aadTenantId property: Tenant id of cluster AAD identity.
- *
- * @param aadTenantId the aadTenantId value to set.
- * @return the ClusterInner object itself.
- */
- public ClusterInner withAadTenantId(String aadTenantId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ClusterProperties();
- }
- this.innerProperties().withAadTenantId(aadTenantId);
- return this;
- }
-
- /**
- * Get the aadApplicationObjectId property: Object id of cluster AAD identity.
- *
- * @return the aadApplicationObjectId value.
- */
- public String aadApplicationObjectId() {
- return this.innerProperties() == null ? null : this.innerProperties().aadApplicationObjectId();
- }
-
- /**
- * Set the aadApplicationObjectId property: Object id of cluster AAD identity.
- *
- * @param aadApplicationObjectId the aadApplicationObjectId value to set.
- * @return the ClusterInner object itself.
- */
- public ClusterInner withAadApplicationObjectId(String aadApplicationObjectId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ClusterProperties();
- }
- this.innerProperties().withAadApplicationObjectId(aadApplicationObjectId);
- return this;
- }
-
- /**
- * Get the aadServicePrincipalObjectId property: Id of cluster identity service principal.
- *
- * @return the aadServicePrincipalObjectId value.
- */
- public String aadServicePrincipalObjectId() {
- return this.innerProperties() == null ? null : this.innerProperties().aadServicePrincipalObjectId();
- }
-
- /**
- * Set the aadServicePrincipalObjectId property: Id of cluster identity service principal.
- *
- * @param aadServicePrincipalObjectId the aadServicePrincipalObjectId value to set.
- * @return the ClusterInner object itself.
- */
- public ClusterInner withAadServicePrincipalObjectId(String aadServicePrincipalObjectId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ClusterProperties();
- }
- this.innerProperties().withAadServicePrincipalObjectId(aadServicePrincipalObjectId);
- return this;
- }
-
- /**
- * Get the desiredProperties property: Desired properties of the cluster.
- *
- * @return the desiredProperties value.
- */
- public ClusterDesiredProperties desiredProperties() {
- return this.innerProperties() == null ? null : this.innerProperties().desiredProperties();
- }
-
- /**
- * Set the desiredProperties property: Desired properties of the cluster.
- *
- * @param desiredProperties the desiredProperties value to set.
- * @return the ClusterInner object itself.
- */
- public ClusterInner withDesiredProperties(ClusterDesiredProperties desiredProperties) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ClusterProperties();
- }
- this.innerProperties().withDesiredProperties(desiredProperties);
- return this;
- }
-
- /**
- * Get the reportedProperties property: Properties reported by cluster agent.
- *
- * @return the reportedProperties value.
- */
- public ClusterReportedProperties reportedProperties() {
- return this.innerProperties() == null ? null : this.innerProperties().reportedProperties();
- }
-
- /**
- * Get the trialDaysRemaining property: Number of days remaining in the trial period.
- *
- * @return the trialDaysRemaining value.
- */
- public Float trialDaysRemaining() {
- return this.innerProperties() == null ? null : this.innerProperties().trialDaysRemaining();
- }
-
- /**
- * Get the billingModel property: Type of billing applied to the resource.
- *
- * @return the billingModel value.
- */
- public String billingModel() {
- return this.innerProperties() == null ? null : this.innerProperties().billingModel();
- }
-
- /**
- * Get the registrationTimestamp property: First cluster sync timestamp.
- *
- * @return the registrationTimestamp value.
- */
- public OffsetDateTime registrationTimestamp() {
- return this.innerProperties() == null ? null : this.innerProperties().registrationTimestamp();
- }
-
- /**
- * Get the lastSyncTimestamp property: Most recent cluster sync timestamp.
- *
- * @return the lastSyncTimestamp value.
- */
- public OffsetDateTime lastSyncTimestamp() {
- return this.innerProperties() == null ? null : this.innerProperties().lastSyncTimestamp();
- }
-
- /**
- * Get the lastBillingTimestamp property: Most recent billing meter timestamp.
- *
- * @return the lastBillingTimestamp value.
- */
- public OffsetDateTime lastBillingTimestamp() {
- return this.innerProperties() == null ? null : this.innerProperties().lastBillingTimestamp();
- }
-
- /**
- * Get the serviceEndpoint property: Region specific DataPath Endpoint of the cluster.
- *
- * @return the serviceEndpoint value.
- */
- public String serviceEndpoint() {
- return this.innerProperties() == null ? null : this.innerProperties().serviceEndpoint();
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterPatchProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterPatchProperties.java
deleted file mode 100644
index 170d36a4d2b3a..0000000000000
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterPatchProperties.java
+++ /dev/null
@@ -1,128 +0,0 @@
-// 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.resourcemanager.azurestackhci.models.ClusterDesiredProperties;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Cluster properties. */
-@Fluent
-public final class ClusterPatchProperties {
- /*
- * Endpoint configured for management from the Azure portal
- */
- @JsonProperty(value = "cloudManagementEndpoint")
- private String cloudManagementEndpoint;
-
- /*
- * App id of cluster AAD identity.
- */
- @JsonProperty(value = "aadClientId")
- private String aadClientId;
-
- /*
- * Tenant id of cluster AAD identity.
- */
- @JsonProperty(value = "aadTenantId")
- private String aadTenantId;
-
- /*
- * Desired properties of the cluster.
- */
- @JsonProperty(value = "desiredProperties")
- private ClusterDesiredProperties desiredProperties;
-
- /**
- * Get the cloudManagementEndpoint property: Endpoint configured for management from the Azure portal.
- *
- * @return the cloudManagementEndpoint value.
- */
- public String cloudManagementEndpoint() {
- return this.cloudManagementEndpoint;
- }
-
- /**
- * Set the cloudManagementEndpoint property: Endpoint configured for management from the Azure portal.
- *
- * @param cloudManagementEndpoint the cloudManagementEndpoint value to set.
- * @return the ClusterPatchProperties object itself.
- */
- public ClusterPatchProperties withCloudManagementEndpoint(String cloudManagementEndpoint) {
- this.cloudManagementEndpoint = cloudManagementEndpoint;
- return this;
- }
-
- /**
- * Get the aadClientId property: App id of cluster AAD identity.
- *
- * @return the aadClientId value.
- */
- public String aadClientId() {
- return this.aadClientId;
- }
-
- /**
- * Set the aadClientId property: App id of cluster AAD identity.
- *
- * @param aadClientId the aadClientId value to set.
- * @return the ClusterPatchProperties object itself.
- */
- public ClusterPatchProperties withAadClientId(String aadClientId) {
- this.aadClientId = aadClientId;
- return this;
- }
-
- /**
- * Get the aadTenantId property: Tenant id of cluster AAD identity.
- *
- * @return the aadTenantId value.
- */
- public String aadTenantId() {
- return this.aadTenantId;
- }
-
- /**
- * Set the aadTenantId property: Tenant id of cluster AAD identity.
- *
- * @param aadTenantId the aadTenantId value to set.
- * @return the ClusterPatchProperties object itself.
- */
- public ClusterPatchProperties withAadTenantId(String aadTenantId) {
- this.aadTenantId = aadTenantId;
- return this;
- }
-
- /**
- * Get the desiredProperties property: Desired properties of the cluster.
- *
- * @return the desiredProperties value.
- */
- public ClusterDesiredProperties desiredProperties() {
- return this.desiredProperties;
- }
-
- /**
- * Set the desiredProperties property: Desired properties of the cluster.
- *
- * @param desiredProperties the desiredProperties value to set.
- * @return the ClusterPatchProperties object itself.
- */
- public ClusterPatchProperties withDesiredProperties(ClusterDesiredProperties desiredProperties) {
- this.desiredProperties = desiredProperties;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (desiredProperties() != null) {
- desiredProperties().validate();
- }
- }
-}
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
deleted file mode 100644
index cb7310c87094d..0000000000000
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterProperties.java
+++ /dev/null
@@ -1,337 +0,0 @@
-// 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.resourcemanager.azurestackhci.models.ClusterDesiredProperties;
-import com.azure.resourcemanager.azurestackhci.models.ClusterReportedProperties;
-import com.azure.resourcemanager.azurestackhci.models.ProvisioningState;
-import com.azure.resourcemanager.azurestackhci.models.Status;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-
-/** Cluster properties. */
-@Fluent
-public final class ClusterProperties {
- /*
- * Provisioning state.
- */
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
- private ProvisioningState provisioningState;
-
- /*
- * Status of the cluster agent.
- */
- @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
- private Status status;
-
- /*
- * Unique, immutable resource id.
- */
- @JsonProperty(value = "cloudId", access = JsonProperty.Access.WRITE_ONLY)
- private String cloudId;
-
- /*
- * Endpoint configured for management from the Azure portal.
- */
- @JsonProperty(value = "cloudManagementEndpoint")
- private String cloudManagementEndpoint;
-
- /*
- * App id of cluster AAD identity.
- */
- @JsonProperty(value = "aadClientId")
- private String aadClientId;
-
- /*
- * Tenant id of cluster AAD identity.
- */
- @JsonProperty(value = "aadTenantId")
- private String aadTenantId;
-
- /*
- * Object id of cluster AAD identity.
- */
- @JsonProperty(value = "aadApplicationObjectId")
- private String aadApplicationObjectId;
-
- /*
- * Id of cluster identity service principal.
- */
- @JsonProperty(value = "aadServicePrincipalObjectId")
- private String aadServicePrincipalObjectId;
-
- /*
- * Desired properties of the cluster.
- */
- @JsonProperty(value = "desiredProperties")
- private ClusterDesiredProperties desiredProperties;
-
- /*
- * Properties reported by cluster agent.
- */
- @JsonProperty(value = "reportedProperties", access = JsonProperty.Access.WRITE_ONLY)
- private ClusterReportedProperties reportedProperties;
-
- /*
- * Number of days remaining in the trial period.
- */
- @JsonProperty(value = "trialDaysRemaining", access = JsonProperty.Access.WRITE_ONLY)
- private Float trialDaysRemaining;
-
- /*
- * Type of billing applied to the resource.
- */
- @JsonProperty(value = "billingModel", access = JsonProperty.Access.WRITE_ONLY)
- private String billingModel;
-
- /*
- * First cluster sync timestamp.
- */
- @JsonProperty(value = "registrationTimestamp", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime registrationTimestamp;
-
- /*
- * Most recent cluster sync timestamp.
- */
- @JsonProperty(value = "lastSyncTimestamp", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime lastSyncTimestamp;
-
- /*
- * Most recent billing meter timestamp.
- */
- @JsonProperty(value = "lastBillingTimestamp", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime lastBillingTimestamp;
-
- /*
- * Region specific DataPath Endpoint of the cluster.
- */
- @JsonProperty(value = "serviceEndpoint", access = JsonProperty.Access.WRITE_ONLY)
- private String serviceEndpoint;
-
- /**
- * Get the provisioningState property: Provisioning state.
- *
- * @return the provisioningState value.
- */
- public ProvisioningState provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Get the status property: Status of the cluster agent.
- *
- * @return the status value.
- */
- public Status status() {
- return this.status;
- }
-
- /**
- * Get the cloudId property: Unique, immutable resource id.
- *
- * @return the cloudId value.
- */
- public String cloudId() {
- return this.cloudId;
- }
-
- /**
- * Get the cloudManagementEndpoint property: Endpoint configured for management from the Azure portal.
- *
- * @return the cloudManagementEndpoint value.
- */
- public String cloudManagementEndpoint() {
- return this.cloudManagementEndpoint;
- }
-
- /**
- * Set the cloudManagementEndpoint property: Endpoint configured for management from the Azure portal.
- *
- * @param cloudManagementEndpoint the cloudManagementEndpoint value to set.
- * @return the ClusterProperties object itself.
- */
- public ClusterProperties withCloudManagementEndpoint(String cloudManagementEndpoint) {
- this.cloudManagementEndpoint = cloudManagementEndpoint;
- return this;
- }
-
- /**
- * Get the aadClientId property: App id of cluster AAD identity.
- *
- * @return the aadClientId value.
- */
- public String aadClientId() {
- return this.aadClientId;
- }
-
- /**
- * Set the aadClientId property: App id of cluster AAD identity.
- *
- * @param aadClientId the aadClientId value to set.
- * @return the ClusterProperties object itself.
- */
- public ClusterProperties withAadClientId(String aadClientId) {
- this.aadClientId = aadClientId;
- return this;
- }
-
- /**
- * Get the aadTenantId property: Tenant id of cluster AAD identity.
- *
- * @return the aadTenantId value.
- */
- public String aadTenantId() {
- return this.aadTenantId;
- }
-
- /**
- * Set the aadTenantId property: Tenant id of cluster AAD identity.
- *
- * @param aadTenantId the aadTenantId value to set.
- * @return the ClusterProperties object itself.
- */
- public ClusterProperties withAadTenantId(String aadTenantId) {
- this.aadTenantId = aadTenantId;
- return this;
- }
-
- /**
- * Get the aadApplicationObjectId property: Object id of cluster AAD identity.
- *
- * @return the aadApplicationObjectId value.
- */
- public String aadApplicationObjectId() {
- return this.aadApplicationObjectId;
- }
-
- /**
- * Set the aadApplicationObjectId property: Object id of cluster AAD identity.
- *
- * @param aadApplicationObjectId the aadApplicationObjectId value to set.
- * @return the ClusterProperties object itself.
- */
- public ClusterProperties withAadApplicationObjectId(String aadApplicationObjectId) {
- this.aadApplicationObjectId = aadApplicationObjectId;
- return this;
- }
-
- /**
- * Get the aadServicePrincipalObjectId property: Id of cluster identity service principal.
- *
- * @return the aadServicePrincipalObjectId value.
- */
- public String aadServicePrincipalObjectId() {
- return this.aadServicePrincipalObjectId;
- }
-
- /**
- * Set the aadServicePrincipalObjectId property: Id of cluster identity service principal.
- *
- * @param aadServicePrincipalObjectId the aadServicePrincipalObjectId value to set.
- * @return the ClusterProperties object itself.
- */
- public ClusterProperties withAadServicePrincipalObjectId(String aadServicePrincipalObjectId) {
- this.aadServicePrincipalObjectId = aadServicePrincipalObjectId;
- return this;
- }
-
- /**
- * Get the desiredProperties property: Desired properties of the cluster.
- *
- * @return the desiredProperties value.
- */
- public ClusterDesiredProperties desiredProperties() {
- return this.desiredProperties;
- }
-
- /**
- * Set the desiredProperties property: Desired properties of the cluster.
- *
- * @param desiredProperties the desiredProperties value to set.
- * @return the ClusterProperties object itself.
- */
- public ClusterProperties withDesiredProperties(ClusterDesiredProperties desiredProperties) {
- this.desiredProperties = desiredProperties;
- return this;
- }
-
- /**
- * Get the reportedProperties property: Properties reported by cluster agent.
- *
- * @return the reportedProperties value.
- */
- public ClusterReportedProperties reportedProperties() {
- return this.reportedProperties;
- }
-
- /**
- * Get the trialDaysRemaining property: Number of days remaining in the trial period.
- *
- * @return the trialDaysRemaining value.
- */
- public Float trialDaysRemaining() {
- return this.trialDaysRemaining;
- }
-
- /**
- * Get the billingModel property: Type of billing applied to the resource.
- *
- * @return the billingModel value.
- */
- public String billingModel() {
- return this.billingModel;
- }
-
- /**
- * Get the registrationTimestamp property: First cluster sync timestamp.
- *
- * @return the registrationTimestamp value.
- */
- public OffsetDateTime registrationTimestamp() {
- return this.registrationTimestamp;
- }
-
- /**
- * Get the lastSyncTimestamp property: Most recent cluster sync timestamp.
- *
- * @return the lastSyncTimestamp value.
- */
- public OffsetDateTime lastSyncTimestamp() {
- return this.lastSyncTimestamp;
- }
-
- /**
- * Get the lastBillingTimestamp property: Most recent billing meter timestamp.
- *
- * @return the lastBillingTimestamp value.
- */
- public OffsetDateTime lastBillingTimestamp() {
- return this.lastBillingTimestamp;
- }
-
- /**
- * Get the serviceEndpoint property: Region specific DataPath Endpoint of the cluster.
- *
- * @return the serviceEndpoint value.
- */
- public String serviceEndpoint() {
- return this.serviceEndpoint;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (desiredProperties() != null) {
- desiredProperties().validate();
- }
- if (reportedProperties() != null) {
- reportedProperties().validate();
- }
- }
-}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/Components3Iu67JSchemasVirtualnetworkpropertiesPropertiesSubnetsItemsPropertiesRoutetableProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/Components3Iu67JSchemasVirtualnetworkpropertiesPropertiesSubnetsItemsPropertiesRoutetableProperties.java
new file mode 100644
index 0000000000000..cf9c6b63550bb
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/Components3Iu67JSchemasVirtualnetworkpropertiesPropertiesSubnetsItemsPropertiesRoutetableProperties.java
@@ -0,0 +1,60 @@
+// 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.resourcemanager.azurestackhci.models.VirtualNetworkPropertiesSubnetsPropertiesItemsItem;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** RouteTablePropertiesFormat route Table resource. */
+@Fluent
+public final class Components3Iu67JSchemasVirtualnetworkpropertiesPropertiesSubnetsItemsPropertiesRoutetableProperties {
+ /*
+ * Routes - Collection of routes contained within a route table.
+ */
+ @JsonProperty(value = "routes")
+ private List routes;
+
+ /**
+ * Creates an instance of
+ * Components3Iu67JSchemasVirtualnetworkpropertiesPropertiesSubnetsItemsPropertiesRoutetableProperties class.
+ */
+ public Components3Iu67JSchemasVirtualnetworkpropertiesPropertiesSubnetsItemsPropertiesRoutetableProperties() {
+ }
+
+ /**
+ * Get the routes property: Routes - Collection of routes contained within a route table.
+ *
+ * @return the routes value.
+ */
+ public List routes() {
+ return this.routes;
+ }
+
+ /**
+ * Set the routes property: Routes - Collection of routes contained within a route table.
+ *
+ * @param routes the routes value to set.
+ * @return the Components3Iu67JSchemasVirtualnetworkpropertiesPropertiesSubnetsItemsPropertiesRoutetableProperties
+ * object itself.
+ */
+ public Components3Iu67JSchemasVirtualnetworkpropertiesPropertiesSubnetsItemsPropertiesRoutetableProperties
+ 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());
+ }
+ }
+}
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
deleted file mode 100644
index 915af50280efa..0000000000000
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionInner.java
+++ /dev/null
@@ -1,253 +0,0 @@
-// 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.resourcemanager.azurestackhci.models.ExtensionAggregateState;
-import com.azure.resourcemanager.azurestackhci.models.PerNodeExtensionState;
-import com.azure.resourcemanager.azurestackhci.models.ProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/** Details of a particular extension in HCI Cluster. */
-@Fluent
-public final class ExtensionInner extends ProxyResource {
- /*
- * System data of Extension resource.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
- /*
- * Describes Machine Extension Properties.
- */
- @JsonProperty(value = "properties")
- private ExtensionProperties innerProperties;
-
- /**
- * Get the systemData property: System data of Extension resource.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the innerProperties property: Describes Machine Extension Properties.
- *
- * @return the innerProperties value.
- */
- private ExtensionProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the provisioningState property: Provisioning state of the Extension proxy resource.
- *
- * @return the provisioningState value.
- */
- public ProvisioningState provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
- }
-
- /**
- * Get the aggregateState property: Aggregate state of Arc Extensions across the nodes in this HCI cluster.
- *
- * @return the aggregateState value.
- */
- public ExtensionAggregateState aggregateState() {
- return this.innerProperties() == null ? null : this.innerProperties().aggregateState();
- }
-
- /**
- * Get the perNodeExtensionDetails property: State of Arc Extension in each of the nodes.
- *
- * @return the perNodeExtensionDetails value.
- */
- public List perNodeExtensionDetails() {
- return this.innerProperties() == null ? null : this.innerProperties().perNodeExtensionDetails();
- }
-
- /**
- * Get the forceUpdateTag property: How the extension handler should be forced to update even if the extension
- * configuration has not changed.
- *
- * @return the forceUpdateTag value.
- */
- public String forceUpdateTag() {
- return this.innerProperties() == null ? null : this.innerProperties().forceUpdateTag();
- }
-
- /**
- * Set the forceUpdateTag property: How the extension handler should be forced to update even if the extension
- * configuration has not changed.
- *
- * @param forceUpdateTag the forceUpdateTag value to set.
- * @return the ExtensionInner object itself.
- */
- public ExtensionInner withForceUpdateTag(String forceUpdateTag) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ExtensionProperties();
- }
- this.innerProperties().withForceUpdateTag(forceUpdateTag);
- return this;
- }
-
- /**
- * Get the publisher property: The name of the extension handler publisher.
- *
- * @return the publisher value.
- */
- public String publisher() {
- return this.innerProperties() == null ? null : this.innerProperties().publisher();
- }
-
- /**
- * Set the publisher property: The name of the extension handler publisher.
- *
- * @param publisher the publisher value to set.
- * @return the ExtensionInner object itself.
- */
- public ExtensionInner withPublisher(String publisher) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ExtensionProperties();
- }
- this.innerProperties().withPublisher(publisher);
- return this;
- }
-
- /**
- * Get the type property: Specifies the type of the extension; an example is "CustomScriptExtension".
- *
- * @return the type value.
- */
- public String typePropertiesType() {
- return this.innerProperties() == null ? null : this.innerProperties().type();
- }
-
- /**
- * Set the type property: Specifies the type of the extension; an example is "CustomScriptExtension".
- *
- * @param type the type value to set.
- * @return the ExtensionInner object itself.
- */
- public ExtensionInner withTypePropertiesType(String type) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ExtensionProperties();
- }
- this.innerProperties().withType(type);
- return this;
- }
-
- /**
- * Get the typeHandlerVersion property: Specifies the version of the script handler.
- *
- * @return the typeHandlerVersion value.
- */
- public String typeHandlerVersion() {
- return this.innerProperties() == null ? null : this.innerProperties().typeHandlerVersion();
- }
-
- /**
- * Set the typeHandlerVersion property: Specifies the version of the script handler.
- *
- * @param typeHandlerVersion the typeHandlerVersion value to set.
- * @return the ExtensionInner object itself.
- */
- public ExtensionInner withTypeHandlerVersion(String typeHandlerVersion) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ExtensionProperties();
- }
- this.innerProperties().withTypeHandlerVersion(typeHandlerVersion);
- return this;
- }
-
- /**
- * Get the autoUpgradeMinorVersion property: Indicates whether the extension should use a newer minor version if one
- * is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless
- * redeployed, even with this property set to true.
- *
- * @return the autoUpgradeMinorVersion value.
- */
- public Boolean autoUpgradeMinorVersion() {
- return this.innerProperties() == null ? null : this.innerProperties().autoUpgradeMinorVersion();
- }
-
- /**
- * Set the autoUpgradeMinorVersion property: Indicates whether the extension should use a newer minor version if one
- * is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless
- * redeployed, even with this property set to true.
- *
- * @param autoUpgradeMinorVersion the autoUpgradeMinorVersion value to set.
- * @return the ExtensionInner object itself.
- */
- public ExtensionInner withAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ExtensionProperties();
- }
- this.innerProperties().withAutoUpgradeMinorVersion(autoUpgradeMinorVersion);
- return this;
- }
-
- /**
- * Get the settings property: Json formatted public settings for the extension.
- *
- * @return the settings value.
- */
- public Object settings() {
- return this.innerProperties() == null ? null : this.innerProperties().settings();
- }
-
- /**
- * Set the settings property: Json formatted public settings for the extension.
- *
- * @param settings the settings value to set.
- * @return the ExtensionInner object itself.
- */
- public ExtensionInner withSettings(Object settings) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ExtensionProperties();
- }
- this.innerProperties().withSettings(settings);
- return this;
- }
-
- /**
- * Get the protectedSettings property: Protected settings (may contain secrets).
- *
- * @return the protectedSettings value.
- */
- public Object protectedSettings() {
- return this.innerProperties() == null ? null : this.innerProperties().protectedSettings();
- }
-
- /**
- * Set the protectedSettings property: Protected settings (may contain secrets).
- *
- * @param protectedSettings the protectedSettings value to set.
- * @return the ExtensionInner object itself.
- */
- public ExtensionInner withProtectedSettings(Object protectedSettings) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ExtensionProperties();
- }
- this.innerProperties().withProtectedSettings(protectedSettings);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionParameters.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionParameters.java
deleted file mode 100644
index 52eea9ddbd4ae..0000000000000
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionParameters.java
+++ /dev/null
@@ -1,213 +0,0 @@
-// 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.fasterxml.jackson.annotation.JsonProperty;
-
-/** Describes the properties of a Machine Extension. This object mirrors the definition in HybridCompute. */
-@Fluent
-public final class ExtensionParameters {
- /*
- * How the extension handler should be forced to update even if the
- * extension configuration has not changed.
- */
- @JsonProperty(value = "forceUpdateTag")
- private String forceUpdateTag;
-
- /*
- * The name of the extension handler publisher.
- */
- @JsonProperty(value = "publisher")
- private String publisher;
-
- /*
- * Specifies the type of the extension; an example is
- * "CustomScriptExtension".
- */
- @JsonProperty(value = "type")
- private String type;
-
- /*
- * Specifies the version of the script handler.
- */
- @JsonProperty(value = "typeHandlerVersion")
- private String typeHandlerVersion;
-
- /*
- * Indicates whether the extension should use a newer minor version if one
- * is available at deployment time. Once deployed, however, the extension
- * will not upgrade minor versions unless redeployed, even with this
- * property set to true.
- */
- @JsonProperty(value = "autoUpgradeMinorVersion")
- private Boolean autoUpgradeMinorVersion;
-
- /*
- * Json formatted public settings for the extension.
- */
- @JsonProperty(value = "settings")
- private Object settings;
-
- /*
- * Protected settings (may contain secrets).
- */
- @JsonProperty(value = "protectedSettings")
- private Object protectedSettings;
-
- /**
- * Get the forceUpdateTag property: How the extension handler should be forced to update even if the extension
- * configuration has not changed.
- *
- * @return the forceUpdateTag value.
- */
- public String forceUpdateTag() {
- return this.forceUpdateTag;
- }
-
- /**
- * Set the forceUpdateTag property: How the extension handler should be forced to update even if the extension
- * configuration has not changed.
- *
- * @param forceUpdateTag the forceUpdateTag value to set.
- * @return the ExtensionParameters object itself.
- */
- public ExtensionParameters withForceUpdateTag(String forceUpdateTag) {
- this.forceUpdateTag = forceUpdateTag;
- return this;
- }
-
- /**
- * Get the publisher property: The name of the extension handler publisher.
- *
- * @return the publisher value.
- */
- public String publisher() {
- return this.publisher;
- }
-
- /**
- * Set the publisher property: The name of the extension handler publisher.
- *
- * @param publisher the publisher value to set.
- * @return the ExtensionParameters object itself.
- */
- public ExtensionParameters withPublisher(String publisher) {
- this.publisher = publisher;
- return this;
- }
-
- /**
- * Get the type property: Specifies the type of the extension; an example is "CustomScriptExtension".
- *
- * @return the type value.
- */
- public String type() {
- return this.type;
- }
-
- /**
- * Set the type property: Specifies the type of the extension; an example is "CustomScriptExtension".
- *
- * @param type the type value to set.
- * @return the ExtensionParameters object itself.
- */
- public ExtensionParameters withType(String type) {
- this.type = type;
- return this;
- }
-
- /**
- * Get the typeHandlerVersion property: Specifies the version of the script handler.
- *
- * @return the typeHandlerVersion value.
- */
- public String typeHandlerVersion() {
- return this.typeHandlerVersion;
- }
-
- /**
- * Set the typeHandlerVersion property: Specifies the version of the script handler.
- *
- * @param typeHandlerVersion the typeHandlerVersion value to set.
- * @return the ExtensionParameters object itself.
- */
- public ExtensionParameters withTypeHandlerVersion(String typeHandlerVersion) {
- this.typeHandlerVersion = typeHandlerVersion;
- return this;
- }
-
- /**
- * Get the autoUpgradeMinorVersion property: Indicates whether the extension should use a newer minor version if one
- * is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless
- * redeployed, even with this property set to true.
- *
- * @return the autoUpgradeMinorVersion value.
- */
- public Boolean autoUpgradeMinorVersion() {
- return this.autoUpgradeMinorVersion;
- }
-
- /**
- * Set the autoUpgradeMinorVersion property: Indicates whether the extension should use a newer minor version if one
- * is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless
- * redeployed, even with this property set to true.
- *
- * @param autoUpgradeMinorVersion the autoUpgradeMinorVersion value to set.
- * @return the ExtensionParameters object itself.
- */
- public ExtensionParameters withAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion) {
- this.autoUpgradeMinorVersion = autoUpgradeMinorVersion;
- return this;
- }
-
- /**
- * Get the settings property: Json formatted public settings for the extension.
- *
- * @return the settings value.
- */
- public Object settings() {
- return this.settings;
- }
-
- /**
- * Set the settings property: Json formatted public settings for the extension.
- *
- * @param settings the settings value to set.
- * @return the ExtensionParameters object itself.
- */
- public ExtensionParameters withSettings(Object settings) {
- this.settings = settings;
- return this;
- }
-
- /**
- * Get the protectedSettings property: Protected settings (may contain secrets).
- *
- * @return the protectedSettings value.
- */
- public Object protectedSettings() {
- return this.protectedSettings;
- }
-
- /**
- * Set the protectedSettings property: Protected settings (may contain secrets).
- *
- * @param protectedSettings the protectedSettings value to set.
- * @return the ExtensionParameters object itself.
- */
- public ExtensionParameters withProtectedSettings(Object protectedSettings) {
- this.protectedSettings = protectedSettings;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionProperties.java
deleted file mode 100644
index 0a19e3a728d56..0000000000000
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionProperties.java
+++ /dev/null
@@ -1,259 +0,0 @@
-// 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.resourcemanager.azurestackhci.models.ExtensionAggregateState;
-import com.azure.resourcemanager.azurestackhci.models.PerNodeExtensionState;
-import com.azure.resourcemanager.azurestackhci.models.ProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/** Status of Arc Extension for a particular node in HCI Cluster. */
-@Fluent
-public final class ExtensionProperties {
- /*
- * Provisioning state of the Extension proxy resource.
- */
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
- private ProvisioningState provisioningState;
-
- /*
- * Parameters specific to this extension type.
- */
- @JsonProperty(value = "extensionParameters")
- private ExtensionParameters innerExtensionParameters;
-
- /*
- * Aggregate state of Arc Extensions across the nodes in this HCI cluster.
- */
- @JsonProperty(value = "aggregateState", access = JsonProperty.Access.WRITE_ONLY)
- private ExtensionAggregateState aggregateState;
-
- /*
- * State of Arc Extension in each of the nodes.
- */
- @JsonProperty(value = "perNodeExtensionDetails", access = JsonProperty.Access.WRITE_ONLY)
- private List perNodeExtensionDetails;
-
- /**
- * Get the provisioningState property: Provisioning state of the Extension proxy resource.
- *
- * @return the provisioningState value.
- */
- public ProvisioningState provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Get the innerExtensionParameters property: Parameters specific to this extension type.
- *
- * @return the innerExtensionParameters value.
- */
- private ExtensionParameters innerExtensionParameters() {
- return this.innerExtensionParameters;
- }
-
- /**
- * Get the aggregateState property: Aggregate state of Arc Extensions across the nodes in this HCI cluster.
- *
- * @return the aggregateState value.
- */
- public ExtensionAggregateState aggregateState() {
- return this.aggregateState;
- }
-
- /**
- * Get the perNodeExtensionDetails property: State of Arc Extension in each of the nodes.
- *
- * @return the perNodeExtensionDetails value.
- */
- public List perNodeExtensionDetails() {
- return this.perNodeExtensionDetails;
- }
-
- /**
- * Get the forceUpdateTag property: How the extension handler should be forced to update even if the extension
- * configuration has not changed.
- *
- * @return the forceUpdateTag value.
- */
- public String forceUpdateTag() {
- return this.innerExtensionParameters() == null ? null : this.innerExtensionParameters().forceUpdateTag();
- }
-
- /**
- * Set the forceUpdateTag property: How the extension handler should be forced to update even if the extension
- * configuration has not changed.
- *
- * @param forceUpdateTag the forceUpdateTag value to set.
- * @return the ExtensionProperties object itself.
- */
- public ExtensionProperties withForceUpdateTag(String forceUpdateTag) {
- if (this.innerExtensionParameters() == null) {
- this.innerExtensionParameters = new ExtensionParameters();
- }
- this.innerExtensionParameters().withForceUpdateTag(forceUpdateTag);
- return this;
- }
-
- /**
- * Get the publisher property: The name of the extension handler publisher.
- *
- * @return the publisher value.
- */
- public String publisher() {
- return this.innerExtensionParameters() == null ? null : this.innerExtensionParameters().publisher();
- }
-
- /**
- * Set the publisher property: The name of the extension handler publisher.
- *
- * @param publisher the publisher value to set.
- * @return the ExtensionProperties object itself.
- */
- public ExtensionProperties withPublisher(String publisher) {
- if (this.innerExtensionParameters() == null) {
- this.innerExtensionParameters = new ExtensionParameters();
- }
- this.innerExtensionParameters().withPublisher(publisher);
- return this;
- }
-
- /**
- * Get the type property: Specifies the type of the extension; an example is "CustomScriptExtension".
- *
- * @return the type value.
- */
- public String type() {
- return this.innerExtensionParameters() == null ? null : this.innerExtensionParameters().type();
- }
-
- /**
- * Set the type property: Specifies the type of the extension; an example is "CustomScriptExtension".
- *
- * @param type the type value to set.
- * @return the ExtensionProperties object itself.
- */
- public ExtensionProperties withType(String type) {
- if (this.innerExtensionParameters() == null) {
- this.innerExtensionParameters = new ExtensionParameters();
- }
- this.innerExtensionParameters().withType(type);
- return this;
- }
-
- /**
- * Get the typeHandlerVersion property: Specifies the version of the script handler.
- *
- * @return the typeHandlerVersion value.
- */
- public String typeHandlerVersion() {
- return this.innerExtensionParameters() == null ? null : this.innerExtensionParameters().typeHandlerVersion();
- }
-
- /**
- * Set the typeHandlerVersion property: Specifies the version of the script handler.
- *
- * @param typeHandlerVersion the typeHandlerVersion value to set.
- * @return the ExtensionProperties object itself.
- */
- public ExtensionProperties withTypeHandlerVersion(String typeHandlerVersion) {
- if (this.innerExtensionParameters() == null) {
- this.innerExtensionParameters = new ExtensionParameters();
- }
- this.innerExtensionParameters().withTypeHandlerVersion(typeHandlerVersion);
- return this;
- }
-
- /**
- * Get the autoUpgradeMinorVersion property: Indicates whether the extension should use a newer minor version if one
- * is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless
- * redeployed, even with this property set to true.
- *
- * @return the autoUpgradeMinorVersion value.
- */
- public Boolean autoUpgradeMinorVersion() {
- return this.innerExtensionParameters() == null
- ? null
- : this.innerExtensionParameters().autoUpgradeMinorVersion();
- }
-
- /**
- * Set the autoUpgradeMinorVersion property: Indicates whether the extension should use a newer minor version if one
- * is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless
- * redeployed, even with this property set to true.
- *
- * @param autoUpgradeMinorVersion the autoUpgradeMinorVersion value to set.
- * @return the ExtensionProperties object itself.
- */
- public ExtensionProperties withAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion) {
- if (this.innerExtensionParameters() == null) {
- this.innerExtensionParameters = new ExtensionParameters();
- }
- this.innerExtensionParameters().withAutoUpgradeMinorVersion(autoUpgradeMinorVersion);
- return this;
- }
-
- /**
- * Get the settings property: Json formatted public settings for the extension.
- *
- * @return the settings value.
- */
- public Object settings() {
- return this.innerExtensionParameters() == null ? null : this.innerExtensionParameters().settings();
- }
-
- /**
- * Set the settings property: Json formatted public settings for the extension.
- *
- * @param settings the settings value to set.
- * @return the ExtensionProperties object itself.
- */
- public ExtensionProperties withSettings(Object settings) {
- if (this.innerExtensionParameters() == null) {
- this.innerExtensionParameters = new ExtensionParameters();
- }
- this.innerExtensionParameters().withSettings(settings);
- return this;
- }
-
- /**
- * Get the protectedSettings property: Protected settings (may contain secrets).
- *
- * @return the protectedSettings value.
- */
- public Object protectedSettings() {
- return this.innerExtensionParameters() == null ? null : this.innerExtensionParameters().protectedSettings();
- }
-
- /**
- * Set the protectedSettings property: Protected settings (may contain secrets).
- *
- * @param protectedSettings the protectedSettings value to set.
- * @return the ExtensionProperties object itself.
- */
- public ExtensionProperties withProtectedSettings(Object protectedSettings) {
- if (this.innerExtensionParameters() == null) {
- this.innerExtensionParameters = new ExtensionParameters();
- }
- this.innerExtensionParameters().withProtectedSettings(protectedSettings);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerExtensionParameters() != null) {
- innerExtensionParameters().validate();
- }
- if (perNodeExtensionDetails() != null) {
- perNodeExtensionDetails().forEach(e -> e.validate());
- }
- }
-}
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 0000000000000..fe985b0dc7420
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/GalleryImageProperties.java
@@ -0,0 +1,264 @@
+// 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.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 com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties under the gallery image resource. */
+@Fluent
+public final class GalleryImageProperties {
+ /*
+ * Storage ContainerID of the storage container to be used for gallery image
+ */
+ @JsonProperty(value = "containerId")
+ private String containerId;
+
+ /*
+ * location of the image the gallery image should be created from
+ */
+ @JsonProperty(value = "imagePath")
+ private String imagePath;
+
+ /*
+ * Operating system type that the gallery image uses [Windows, Linux]
+ */
+ @JsonProperty(value = "osType", required = true)
+ private OperatingSystemTypes osType;
+
+ /*
+ * Datasource for the gallery image when provisioning with cloud-init [NoCloud, Azure]
+ */
+ @JsonProperty(value = "cloudInitDataSource")
+ private CloudInitDataSource cloudInitDataSource;
+
+ /*
+ * The hypervisor generation of the Virtual Machine [V1, V2]
+ */
+ @JsonProperty(value = "hyperVGeneration")
+ private HyperVGeneration hyperVGeneration;
+
+ /*
+ * This is the gallery image definition identifier.
+ */
+ @JsonProperty(value = "identifier")
+ private GalleryImageIdentifier identifier;
+
+ /*
+ * Specifies information about the gallery image version that you want to create or update.
+ */
+ @JsonProperty(value = "version")
+ private GalleryImageVersion version;
+
+ /*
+ * Provisioning state of the gallery image.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningStateEnum provisioningState;
+
+ /*
+ * The observed state of gallery images
+ */
+ @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
+ 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
+ .logExceptionAsError(
+ 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);
+}
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 0000000000000..ad1b2ef34f2a1
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/GalleryImageVersionProperties.java
@@ -0,0 +1,62 @@
+// 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.resourcemanager.azurestackhci.models.GalleryImageVersionStorageProfile;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Describes the properties of a gallery image version. */
+@Fluent
+public final class GalleryImageVersionProperties {
+ /*
+ * This is the storage profile of a Gallery Image Version.
+ */
+ @JsonProperty(value = "storageProfile", required = true)
+ 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
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property storageProfile in model GalleryImageVersionProperties"));
+ } else {
+ storageProfile().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(GalleryImageVersionProperties.class);
+}
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 0000000000000..9e9bc65db83f7
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/GalleryImagesInner.java
@@ -0,0 +1,294 @@
+// 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.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 com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** The gallery images resource definition. */
+@Fluent
+public final class GalleryImagesInner extends Resource {
+ /*
+ * Properties under the gallery image resource
+ */
+ @JsonProperty(value = "properties")
+ private GalleryImageProperties innerProperties;
+
+ /*
+ * The extendedLocation of the resource.
+ */
+ @JsonProperty(value = "extendedLocation")
+ private ExtendedLocation extendedLocation;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** 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;
+ }
+
+ /** {@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();
+ }
+ }
+}
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 0000000000000..c9c6c1e5b55f5
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/GuestAgentInner.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.management.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.azurestackhci.models.GuestCredential;
+import com.azure.resourcemanager.azurestackhci.models.HttpProxyConfiguration;
+import com.azure.resourcemanager.azurestackhci.models.ProvisioningAction;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Defines the GuestAgent. */
+@Fluent
+public final class GuestAgentInner extends ProxyResource {
+ /*
+ * Resource properties.
+ */
+ @JsonProperty(value = "properties", required = true)
+ private GuestAgentProperties innerProperties = new GuestAgentProperties();
+
+ /** 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 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 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 GuestAgentInner object itself.
+ */
+ public GuestAgentInner withHttpProxyConfig(HttpProxyConfiguration httpProxyConfig) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new GuestAgentProperties();
+ }
+ this.innerProperties().withHttpProxyConfig(httpProxyConfig);
+ 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
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property innerProperties in model GuestAgentInner"));
+ } else {
+ innerProperties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(GuestAgentInner.class);
+}
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 0000000000000..4200d200e819f
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/GuestAgentProperties.java
@@ -0,0 +1,141 @@
+// 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.resourcemanager.azurestackhci.models.GuestCredential;
+import com.azure.resourcemanager.azurestackhci.models.HttpProxyConfiguration;
+import com.azure.resourcemanager.azurestackhci.models.ProvisioningAction;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Defines the resource properties. */
+@Fluent
+public final class GuestAgentProperties {
+ /*
+ * Username / Password Credentials to provision guest agent.
+ */
+ @JsonProperty(value = "credentials")
+ private GuestCredential credentials;
+
+ /*
+ * HTTP Proxy configuration for the VM.
+ */
+ @JsonProperty(value = "httpProxyConfig")
+ private HttpProxyConfiguration httpProxyConfig;
+
+ /*
+ * The guest agent provisioning action.
+ */
+ @JsonProperty(value = "provisioningAction")
+ private ProvisioningAction provisioningAction;
+
+ /*
+ * The guest agent status.
+ */
+ @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
+ private String status;
+
+ /*
+ * The provisioning state.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ 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 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 GuestAgentProperties object itself.
+ */
+ public GuestAgentProperties withHttpProxyConfig(HttpProxyConfiguration httpProxyConfig) {
+ this.httpProxyConfig = httpProxyConfig;
+ 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();
+ }
+ if (httpProxyConfig() != null) {
+ httpProxyConfig().validate();
+ }
+ }
+}
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 0000000000000..c5c084ba71a51
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/HybridIdentityMetadataInner.java
@@ -0,0 +1,116 @@
+// 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.util.logging.ClientLogger;
+import com.azure.resourcemanager.azurestackhci.models.Identity;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Defines the HybridIdentityMetadata. */
+@Fluent
+public final class HybridIdentityMetadataInner extends ProxyResource {
+ /*
+ * Resource properties.
+ */
+ @JsonProperty(value = "properties", required = true)
+ private HybridIdentityMetadataProperties innerProperties = new HybridIdentityMetadataProperties();
+
+ /** 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 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
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property innerProperties in model HybridIdentityMetadataInner"));
+ } else {
+ innerProperties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(HybridIdentityMetadataInner.class);
+}
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 0000000000000..ed37a83a47fe1
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/HybridIdentityMetadataProperties.java
@@ -0,0 +1,110 @@
+// 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.resourcemanager.azurestackhci.models.Identity;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Defines the resource properties. */
+@Fluent
+public final class HybridIdentityMetadataProperties {
+ /*
+ * The unique identifier for the resource.
+ */
+ @JsonProperty(value = "resourceUid")
+ private String resourceUid;
+
+ /*
+ * The Public Key.
+ */
+ @JsonProperty(value = "publicKey")
+ private String publicKey;
+
+ /*
+ * Identity for the resource.
+ */
+ @JsonProperty(value = "identity", access = JsonProperty.Access.WRITE_ONLY)
+ private Identity identity;
+
+ /*
+ * The provisioning state.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ 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();
+ }
+ }
+}
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 0000000000000..846c79e02b095
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/MarketplaceGalleryImageProperties.java
@@ -0,0 +1,241 @@
+// 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.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 com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties under the marketplace gallery image resource. */
+@Fluent
+public final class MarketplaceGalleryImageProperties {
+ /*
+ * Storage ContainerID of the storage container to be used for marketplace gallery image
+ */
+ @JsonProperty(value = "containerId")
+ private String containerId;
+
+ /*
+ * Operating system type that the gallery image uses [Windows, Linux]
+ */
+ @JsonProperty(value = "osType", required = true)
+ private OperatingSystemTypes osType;
+
+ /*
+ * Datasource for the gallery image when provisioning with cloud-init [NoCloud, Azure]
+ */
+ @JsonProperty(value = "cloudInitDataSource")
+ private CloudInitDataSource cloudInitDataSource;
+
+ /*
+ * The hypervisor generation of the Virtual Machine [V1, V2]
+ */
+ @JsonProperty(value = "hyperVGeneration")
+ private HyperVGeneration hyperVGeneration;
+
+ /*
+ * This is the gallery image definition identifier.
+ */
+ @JsonProperty(value = "identifier")
+ private GalleryImageIdentifier identifier;
+
+ /*
+ * Specifies information about the gallery image version that you want to create or update.
+ */
+ @JsonProperty(value = "version")
+ private GalleryImageVersion version;
+
+ /*
+ * Provisioning state of the marketplace gallery image.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningStateEnum provisioningState;
+
+ /*
+ * The observed state of marketplace gallery images
+ */
+ @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
+ 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
+ .logExceptionAsError(
+ 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);
+}
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 0000000000000..f3e6159a5c308
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/MarketplaceGalleryImagesInner.java
@@ -0,0 +1,273 @@
+// 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.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 com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** The marketplace gallery image resource definition. */
+@Fluent
+public final class MarketplaceGalleryImagesInner extends Resource {
+ /*
+ * Properties under the marketplace gallery image resource
+ */
+ @JsonProperty(value = "properties")
+ private MarketplaceGalleryImageProperties innerProperties;
+
+ /*
+ * The extendedLocation of the resource.
+ */
+ @JsonProperty(value = "extendedLocation")
+ private ExtendedLocation extendedLocation;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** 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;
+ }
+
+ /** {@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();
+ }
+ }
+}
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 0000000000000..f15bd4eed24ea
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/NetworkInterfaceProperties.java
@@ -0,0 +1,146 @@
+// 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.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 com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Properties under the network interface resource. */
+@Fluent
+public final class NetworkInterfaceProperties {
+ /*
+ * IPConfigurations - A list of IPConfigurations of the network interface.
+ */
+ @JsonProperty(value = "ipConfigurations")
+ private List ipConfigurations;
+
+ /*
+ * MacAddress - The MAC address of the network interface.
+ */
+ @JsonProperty(value = "macAddress")
+ private String macAddress;
+
+ /*
+ * DNS Settings for the interface
+ */
+ @JsonProperty(value = "dnsSettings")
+ private InterfaceDnsSettings dnsSettings;
+
+ /*
+ * Provisioning state of the network interface.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningStateEnum provisioningState;
+
+ /*
+ * The observed state of network interfaces
+ */
+ @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
+ 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();
+ }
+ }
+}
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 0000000000000..e504f8292c41e
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/NetworkInterfacesInner.java
@@ -0,0 +1,196 @@
+// 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.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 com.fasterxml.jackson.annotation.JsonProperty;
+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
+ */
+ @JsonProperty(value = "properties")
+ private NetworkInterfaceProperties innerProperties;
+
+ /*
+ * The extendedLocation of the resource.
+ */
+ @JsonProperty(value = "extendedLocation")
+ private ExtendedLocation extendedLocation;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** 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;
+ }
+
+ /** {@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();
+ }
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/OperationListResultInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/OperationListResultInner.java
deleted file mode 100644
index cd70af853a48e..0000000000000
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/OperationListResultInner.java
+++ /dev/null
@@ -1,58 +0,0 @@
-// 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.Immutable;
-import com.azure.resourcemanager.azurestackhci.models.Operation;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/**
- * A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of
- * results.
- */
-@Immutable
-public final class OperationListResultInner {
- /*
- * List of operations supported by the resource provider
- */
- @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
- private List value;
-
- /*
- * URL to get the next set of operation list results (if there are any).
- */
- @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY)
- private String nextLink;
-
- /**
- * Get the value property: List of operations supported by the resource provider.
- *
- * @return the value value.
- */
- public List value() {
- return this.value;
- }
-
- /**
- * Get the nextLink property: URL to get the next set of operation list results (if there are any).
- *
- * @return the nextLink value.
- */
- public String nextLink() {
- return this.nextLink;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (value() != null) {
- value().forEach(e -> e.validate());
- }
- }
-}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/PasswordCredentialInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/PasswordCredentialInner.java
deleted file mode 100644
index 92abc341b7391..0000000000000
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/PasswordCredentialInner.java
+++ /dev/null
@@ -1,125 +0,0 @@
-// 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.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-
-/** The PasswordCredential model. */
-@Fluent
-public final class PasswordCredentialInner {
- /*
- * The secretText property.
- */
- @JsonProperty(value = "secretText")
- private String secretText;
-
- /*
- * The keyId property.
- */
- @JsonProperty(value = "keyId")
- private String keyId;
-
- /*
- * The startDateTime property.
- */
- @JsonProperty(value = "startDateTime")
- private OffsetDateTime startDateTime;
-
- /*
- * The endDateTime property.
- */
- @JsonProperty(value = "endDateTime")
- private OffsetDateTime endDateTime;
-
- /**
- * Get the secretText property: The secretText property.
- *
- * @return the secretText value.
- */
- public String secretText() {
- return this.secretText;
- }
-
- /**
- * Set the secretText property: The secretText property.
- *
- * @param secretText the secretText value to set.
- * @return the PasswordCredentialInner object itself.
- */
- public PasswordCredentialInner withSecretText(String secretText) {
- this.secretText = secretText;
- return this;
- }
-
- /**
- * Get the keyId property: The keyId property.
- *
- * @return the keyId value.
- */
- public String keyId() {
- return this.keyId;
- }
-
- /**
- * Set the keyId property: The keyId property.
- *
- * @param keyId the keyId value to set.
- * @return the PasswordCredentialInner object itself.
- */
- public PasswordCredentialInner withKeyId(String keyId) {
- this.keyId = keyId;
- return this;
- }
-
- /**
- * Get the startDateTime property: The startDateTime property.
- *
- * @return the startDateTime value.
- */
- public OffsetDateTime startDateTime() {
- return this.startDateTime;
- }
-
- /**
- * Set the startDateTime property: The startDateTime property.
- *
- * @param startDateTime the startDateTime value to set.
- * @return the PasswordCredentialInner object itself.
- */
- public PasswordCredentialInner withStartDateTime(OffsetDateTime startDateTime) {
- this.startDateTime = startDateTime;
- return this;
- }
-
- /**
- * Get the endDateTime property: The endDateTime property.
- *
- * @return the endDateTime value.
- */
- public OffsetDateTime endDateTime() {
- return this.endDateTime;
- }
-
- /**
- * Set the endDateTime property: The endDateTime property.
- *
- * @param endDateTime the endDateTime value to set.
- * @return the PasswordCredentialInner object itself.
- */
- public PasswordCredentialInner withEndDateTime(OffsetDateTime endDateTime) {
- this.endDateTime = endDateTime;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
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 0000000000000..56ed744c26101
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/StorageContainerProperties.java
@@ -0,0 +1,85 @@
+// 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.resourcemanager.azurestackhci.models.ProvisioningStateEnum;
+import com.azure.resourcemanager.azurestackhci.models.StorageContainerStatus;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties under the storage container resource. */
+@Fluent
+public final class StorageContainerProperties {
+ /*
+ * Path of the storage container on the disk
+ */
+ @JsonProperty(value = "path")
+ private String path;
+
+ /*
+ * Provisioning state of the storage container.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningStateEnum provisioningState;
+
+ /*
+ * The observed state of storage containers
+ */
+ @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
+ 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 (status() != null) {
+ status().validate();
+ }
+ }
+}
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 0000000000000..046491d1e9927
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/StorageContainersInner.java
@@ -0,0 +1,147 @@
+// 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.resourcemanager.azurestackhci.models.ExtendedLocation;
+import com.azure.resourcemanager.azurestackhci.models.ProvisioningStateEnum;
+import com.azure.resourcemanager.azurestackhci.models.StorageContainerStatus;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** The storage container resource definition. */
+@Fluent
+public final class StorageContainersInner extends Resource {
+ /*
+ * Properties under the storage container resource
+ */
+ @JsonProperty(value = "properties")
+ private StorageContainerProperties innerProperties;
+
+ /*
+ * The extendedLocation of the resource.
+ */
+ @JsonProperty(value = "extendedLocation")
+ private ExtendedLocation extendedLocation;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** 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;
+ }
+
+ /** {@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();
+ }
+ }
+}
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 0000000000000..1b424339cfaec
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualHardDiskProperties.java
@@ -0,0 +1,269 @@
+// 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.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 com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties under the virtual hard disk resource. */
+@Fluent
+public final class VirtualHardDiskProperties {
+ /*
+ * The blockSizeBytes property.
+ */
+ @JsonProperty(value = "blockSizeBytes")
+ private Integer blockSizeBytes;
+
+ /*
+ * Size of the disk in GB
+ */
+ @JsonProperty(value = "diskSizeGB")
+ private Long diskSizeGB;
+
+ /*
+ * Boolean for enabling dynamic sizing on the virtual hard disk
+ */
+ @JsonProperty(value = "dynamic")
+ private Boolean dynamic;
+
+ /*
+ * The logicalSectorBytes property.
+ */
+ @JsonProperty(value = "logicalSectorBytes")
+ private Integer logicalSectorBytes;
+
+ /*
+ * The physicalSectorBytes property.
+ */
+ @JsonProperty(value = "physicalSectorBytes")
+ private Integer physicalSectorBytes;
+
+ /*
+ * The hypervisor generation of the Virtual Machine [V1, V2]
+ */
+ @JsonProperty(value = "hyperVGeneration")
+ private HyperVGeneration hyperVGeneration;
+
+ /*
+ * The format of the actual VHD file [vhd, vhdx]
+ */
+ @JsonProperty(value = "diskFileFormat")
+ private DiskFileFormat diskFileFormat;
+
+ /*
+ * Provisioning state of the virtual hard disk.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningStateEnum provisioningState;
+
+ /*
+ * Storage ContainerID of the storage container to be used for VHD
+ */
+ @JsonProperty(value = "containerId")
+ private String containerId;
+
+ /*
+ * The observed state of virtual hard disks
+ */
+ @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
+ 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();
+ }
+ }
+}
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 0000000000000..a335eb5f2d37e
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualHardDisksInner.java
@@ -0,0 +1,310 @@
+// 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.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 com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** The virtual hard disk resource definition. */
+@Fluent
+public final class VirtualHardDisksInner extends Resource {
+ /*
+ * Properties under the virtual hard disk resource
+ */
+ @JsonProperty(value = "properties")
+ private VirtualHardDiskProperties innerProperties;
+
+ /*
+ * The extendedLocation of the resource.
+ */
+ @JsonProperty(value = "extendedLocation")
+ private ExtendedLocation extendedLocation;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** 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;
+ }
+
+ /** {@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();
+ }
+ }
+}
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 0000000000000..9ceab364aeb26
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualMachineInstanceInner.java
@@ -0,0 +1,337 @@
+// 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.resourcemanager.azurestackhci.models.ExtendedLocation;
+import com.azure.resourcemanager.azurestackhci.models.GuestAgentInstallStatus;
+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 com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The virtual machine instance resource definition. */
+@Fluent
+public final class VirtualMachineInstanceInner extends ProxyResource {
+ /*
+ * Properties under the virtual machine instance resource
+ */
+ @JsonProperty(value = "properties")
+ private VirtualMachineInstanceProperties innerProperties;
+
+ /*
+ * The extendedLocation of the resource.
+ */
+ @JsonProperty(value = "extendedLocation")
+ private ExtendedLocation extendedLocation;
+
+ /*
+ * Identity for the resource.
+ */
+ @JsonProperty(value = "identity")
+ private Identity identity;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** 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 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 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();
+ }
+ }
+}
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 0000000000000..24a09099f2f69
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualMachineInstanceProperties.java
@@ -0,0 +1,312 @@
+// 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.resourcemanager.azurestackhci.models.GuestAgentInstallStatus;
+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 com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties under the virtual machine instance resource. */
+@Fluent
+public final class VirtualMachineInstanceProperties {
+ /*
+ * HardwareProfile - Specifies the hardware settings for the virtual machine instance.
+ */
+ @JsonProperty(value = "hardwareProfile")
+ private VirtualMachineInstancePropertiesHardwareProfile hardwareProfile;
+
+ /*
+ * NetworkProfile - describes the network configuration the virtual machine instance
+ */
+ @JsonProperty(value = "networkProfile")
+ private VirtualMachineInstancePropertiesNetworkProfile networkProfile;
+
+ /*
+ * OsProfile - describes the configuration of the operating system and sets login data
+ */
+ @JsonProperty(value = "osProfile")
+ private VirtualMachineInstancePropertiesOsProfile osProfile;
+
+ /*
+ * SecurityProfile - Specifies the security settings for the virtual machine instance.
+ */
+ @JsonProperty(value = "securityProfile")
+ private VirtualMachineInstancePropertiesSecurityProfile securityProfile;
+
+ /*
+ * StorageProfile - contains information about the disks and storage information for the virtual machine instance
+ */
+ @JsonProperty(value = "storageProfile")
+ private VirtualMachineInstancePropertiesStorageProfile storageProfile;
+
+ /*
+ * Provisioning state of the virtual machine instance.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningStateEnum provisioningState;
+
+ /*
+ * The virtual machine instance view.
+ */
+ @JsonProperty(value = "instanceView", access = JsonProperty.Access.WRITE_ONLY)
+ private VirtualMachineInstanceView instanceView;
+
+ /*
+ * The observed state of virtual machine instances
+ */
+ @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
+ private VirtualMachineInstanceStatus status;
+
+ /*
+ * Guest agent install status.
+ */
+ @JsonProperty(value = "guestAgentInstallStatus")
+ private GuestAgentInstallStatus guestAgentInstallStatus;
+
+ /*
+ * Unique identifier for the vm resource.
+ */
+ @JsonProperty(value = "vmId", access = JsonProperty.Access.WRITE_ONLY)
+ private String vmId;
+
+ /*
+ * Unique identifier defined by ARC to identify the guest of the VM.
+ */
+ @JsonProperty(value = "resourceUid")
+ 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 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 (instanceView() != null) {
+ instanceView().validate();
+ }
+ if (status() != null) {
+ status().validate();
+ }
+ if (guestAgentInstallStatus() != null) {
+ guestAgentInstallStatus().validate();
+ }
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualNetworkProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualNetworkProperties.java
new file mode 100644
index 0000000000000..fdd42637bf26c
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualNetworkProperties.java
@@ -0,0 +1,176 @@
+// 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.resourcemanager.azurestackhci.models.NetworkTypeEnum;
+import com.azure.resourcemanager.azurestackhci.models.ProvisioningStateEnum;
+import com.azure.resourcemanager.azurestackhci.models.VirtualNetworkPropertiesDhcpOptions;
+import com.azure.resourcemanager.azurestackhci.models.VirtualNetworkPropertiesSubnetsItem;
+import com.azure.resourcemanager.azurestackhci.models.VirtualNetworkStatus;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Properties under the virtual network resource. */
+@Fluent
+public final class VirtualNetworkProperties {
+ /*
+ * DhcpOptions contains an array of DNS servers available to VMs deployed in the virtual network. Standard DHCP
+ * option for a subnet overrides VNET DHCP options.
+ */
+ @JsonProperty(value = "dhcpOptions")
+ private VirtualNetworkPropertiesDhcpOptions dhcpOptions;
+
+ /*
+ * Type of the network
+ */
+ @JsonProperty(value = "networkType")
+ private NetworkTypeEnum networkType;
+
+ /*
+ * Subnet - list of subnets under the virtual network
+ */
+ @JsonProperty(value = "subnets")
+ private List subnets;
+
+ /*
+ * Provisioning state of the virtual network.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningStateEnum provisioningState;
+
+ /*
+ * name of the network switch to be used for VMs
+ */
+ @JsonProperty(value = "vmSwitchName")
+ private String vmSwitchName;
+
+ /*
+ * The observed state of virtual networks
+ */
+ @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
+ private VirtualNetworkStatus status;
+
+ /** Creates an instance of VirtualNetworkProperties class. */
+ public VirtualNetworkProperties() {
+ }
+
+ /**
+ * Get the dhcpOptions property: DhcpOptions contains an array of DNS servers available to VMs deployed in the
+ * virtual network. Standard DHCP option for a subnet overrides VNET DHCP options.
+ *
+ * @return the dhcpOptions value.
+ */
+ public VirtualNetworkPropertiesDhcpOptions dhcpOptions() {
+ return this.dhcpOptions;
+ }
+
+ /**
+ * Set the dhcpOptions property: DhcpOptions contains an array of DNS servers available to VMs deployed in the
+ * virtual network. Standard DHCP option for a subnet overrides VNET DHCP options.
+ *
+ * @param dhcpOptions the dhcpOptions value to set.
+ * @return the VirtualNetworkProperties object itself.
+ */
+ public VirtualNetworkProperties withDhcpOptions(VirtualNetworkPropertiesDhcpOptions dhcpOptions) {
+ this.dhcpOptions = dhcpOptions;
+ return this;
+ }
+
+ /**
+ * Get the networkType property: Type of the network.
+ *
+ * @return the networkType value.
+ */
+ public NetworkTypeEnum networkType() {
+ return this.networkType;
+ }
+
+ /**
+ * Set the networkType property: Type of the network.
+ *
+ * @param networkType the networkType value to set.
+ * @return the VirtualNetworkProperties object itself.
+ */
+ public VirtualNetworkProperties withNetworkType(NetworkTypeEnum networkType) {
+ this.networkType = networkType;
+ return this;
+ }
+
+ /**
+ * Get the subnets property: Subnet - list of subnets under the virtual network.
+ *
+ * @return the subnets value.
+ */
+ public List subnets() {
+ return this.subnets;
+ }
+
+ /**
+ * Set the subnets property: Subnet - list of subnets under the virtual network.
+ *
+ * @param subnets the subnets value to set.
+ * @return the VirtualNetworkProperties object itself.
+ */
+ public VirtualNetworkProperties withSubnets(List subnets) {
+ this.subnets = subnets;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the virtual 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 VirtualNetworkProperties object itself.
+ */
+ public VirtualNetworkProperties withVmSwitchName(String vmSwitchName) {
+ this.vmSwitchName = vmSwitchName;
+ return this;
+ }
+
+ /**
+ * Get the status property: The observed state of virtual networks.
+ *
+ * @return the status value.
+ */
+ public VirtualNetworkStatus 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();
+ }
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualNetworkPropertiesSubnetsItemAutoGenerated.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualNetworkPropertiesSubnetsItemAutoGenerated.java
new file mode 100644
index 0000000000000..82d4bee102b6b
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualNetworkPropertiesSubnetsItemAutoGenerated.java
@@ -0,0 +1,195 @@
+// 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.resourcemanager.azurestackhci.models.ComponentsI4F0MhSchemasVirtualnetworkpropertiesPropertiesSubnetsItemsPropertiesRoutetable;
+import com.azure.resourcemanager.azurestackhci.models.IpAllocationMethodEnum;
+import com.azure.resourcemanager.azurestackhci.models.VirtualNetworkPropertiesSubnetsItemAutoGeneratedIpConfigurationReference;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** SubnetProperties - Properties of the subnet. */
+@Fluent
+public final class VirtualNetworkPropertiesSubnetsItemAutoGenerated {
+ /*
+ * Cidr for this subnet - IPv4, IPv6
+ */
+ @JsonProperty(value = "addressPrefix")
+ private String addressPrefix;
+
+ /*
+ * AddressPrefixes - List of address prefixes for the subnet.
+ */
+ @JsonProperty(value = "addressPrefixes")
+ private List addressPrefixes;
+
+ /*
+ * IPAllocationMethod - The IP address allocation method. Possible values include: 'Static', 'Dynamic'
+ */
+ @JsonProperty(value = "ipAllocationMethod")
+ private IpAllocationMethodEnum ipAllocationMethod;
+
+ /*
+ * IPConfigurationReferences - list of IPConfigurationReferences
+ */
+ @JsonProperty(value = "ipConfigurationReferences")
+ private List ipConfigurationReferences;
+
+ /*
+ * RouteTable for the subnet
+ */
+ @JsonProperty(value = "routeTable")
+ private ComponentsI4F0MhSchemasVirtualnetworkpropertiesPropertiesSubnetsItemsPropertiesRoutetable routeTable;
+
+ /*
+ * Vlan to use for the subnet
+ */
+ @JsonProperty(value = "vlan")
+ private Integer vlan;
+
+ /** Creates an instance of VirtualNetworkPropertiesSubnetsItemAutoGenerated class. */
+ public VirtualNetworkPropertiesSubnetsItemAutoGenerated() {
+ }
+
+ /**
+ * Get the addressPrefix property: Cidr for this subnet - IPv4, IPv6.
+ *
+ * @return the addressPrefix value.
+ */
+ public String addressPrefix() {
+ return this.addressPrefix;
+ }
+
+ /**
+ * Set the addressPrefix property: Cidr for this subnet - IPv4, IPv6.
+ *
+ * @param addressPrefix the addressPrefix value to set.
+ * @return the VirtualNetworkPropertiesSubnetsItemAutoGenerated object itself.
+ */
+ public VirtualNetworkPropertiesSubnetsItemAutoGenerated withAddressPrefix(String addressPrefix) {
+ this.addressPrefix = addressPrefix;
+ return this;
+ }
+
+ /**
+ * Get the addressPrefixes property: AddressPrefixes - List of address prefixes for the subnet.
+ *
+ * @return the addressPrefixes value.
+ */
+ public List addressPrefixes() {
+ return this.addressPrefixes;
+ }
+
+ /**
+ * Set the addressPrefixes property: AddressPrefixes - List of address prefixes for the subnet.
+ *
+ * @param addressPrefixes the addressPrefixes value to set.
+ * @return the VirtualNetworkPropertiesSubnetsItemAutoGenerated object itself.
+ */
+ public VirtualNetworkPropertiesSubnetsItemAutoGenerated 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 VirtualNetworkPropertiesSubnetsItemAutoGenerated object itself.
+ */
+ public VirtualNetworkPropertiesSubnetsItemAutoGenerated 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 VirtualNetworkPropertiesSubnetsItemAutoGenerated object itself.
+ */
+ public VirtualNetworkPropertiesSubnetsItemAutoGenerated withIpConfigurationReferences(
+ List ipConfigurationReferences) {
+ this.ipConfigurationReferences = ipConfigurationReferences;
+ return this;
+ }
+
+ /**
+ * Get the routeTable property: RouteTable for the subnet.
+ *
+ * @return the routeTable value.
+ */
+ public ComponentsI4F0MhSchemasVirtualnetworkpropertiesPropertiesSubnetsItemsPropertiesRoutetable routeTable() {
+ return this.routeTable;
+ }
+
+ /**
+ * Set the routeTable property: RouteTable for the subnet.
+ *
+ * @param routeTable the routeTable value to set.
+ * @return the VirtualNetworkPropertiesSubnetsItemAutoGenerated object itself.
+ */
+ public VirtualNetworkPropertiesSubnetsItemAutoGenerated withRouteTable(
+ ComponentsI4F0MhSchemasVirtualnetworkpropertiesPropertiesSubnetsItemsPropertiesRoutetable routeTable) {
+ this.routeTable = routeTable;
+ 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 VirtualNetworkPropertiesSubnetsItemAutoGenerated object itself.
+ */
+ public VirtualNetworkPropertiesSubnetsItemAutoGenerated 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();
+ }
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualNetworkPropertiesSubnetsItemRouteTableRoutesItem.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualNetworkPropertiesSubnetsItemRouteTableRoutesItem.java
new file mode 100644
index 0000000000000..cfedd5fe3fc69
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualNetworkPropertiesSubnetsItemRouteTableRoutesItem.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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** RoutePropertiesFormat - Properties of the route. */
+@Fluent
+public final class VirtualNetworkPropertiesSubnetsItemRouteTableRoutesItem {
+ /*
+ * AddressPrefix - The destination CIDR to which the route applies.
+ */
+ @JsonProperty(value = "addressPrefix")
+ private String addressPrefix;
+
+ /*
+ * NextHopIPAddress - The IP address packets should be forwarded to. Next hop values are only allowed in routes
+ * where the next hop type is VirtualAppliance.
+ */
+ @JsonProperty(value = "nextHopIpAddress")
+ private String nextHopIpAddress;
+
+ /** Creates an instance of VirtualNetworkPropertiesSubnetsItemRouteTableRoutesItem class. */
+ public VirtualNetworkPropertiesSubnetsItemRouteTableRoutesItem() {
+ }
+
+ /**
+ * Get the addressPrefix property: AddressPrefix - The destination CIDR to which the route applies.
+ *
+ * @return the addressPrefix value.
+ */
+ public String addressPrefix() {
+ return this.addressPrefix;
+ }
+
+ /**
+ * Set the addressPrefix property: AddressPrefix - The destination CIDR to which the route applies.
+ *
+ * @param addressPrefix the addressPrefix value to set.
+ * @return the VirtualNetworkPropertiesSubnetsItemRouteTableRoutesItem object itself.
+ */
+ public VirtualNetworkPropertiesSubnetsItemRouteTableRoutesItem withAddressPrefix(String addressPrefix) {
+ this.addressPrefix = addressPrefix;
+ return this;
+ }
+
+ /**
+ * Get the nextHopIpAddress property: NextHopIPAddress - 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: NextHopIPAddress - 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 VirtualNetworkPropertiesSubnetsItemRouteTableRoutesItem object itself.
+ */
+ public VirtualNetworkPropertiesSubnetsItemRouteTableRoutesItem withNextHopIpAddress(String nextHopIpAddress) {
+ this.nextHopIpAddress = nextHopIpAddress;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualNetworksInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualNetworksInner.java
new file mode 100644
index 0000000000000..fb1e0d1583509
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/VirtualNetworksInner.java
@@ -0,0 +1,222 @@
+// 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.resourcemanager.azurestackhci.models.ExtendedLocation;
+import com.azure.resourcemanager.azurestackhci.models.NetworkTypeEnum;
+import com.azure.resourcemanager.azurestackhci.models.ProvisioningStateEnum;
+import com.azure.resourcemanager.azurestackhci.models.VirtualNetworkPropertiesDhcpOptions;
+import com.azure.resourcemanager.azurestackhci.models.VirtualNetworkPropertiesSubnetsItem;
+import com.azure.resourcemanager.azurestackhci.models.VirtualNetworkStatus;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** The virtual network resource definition. */
+@Fluent
+public final class VirtualNetworksInner extends Resource {
+ /*
+ * Properties under the virtual network resource
+ */
+ @JsonProperty(value = "properties")
+ private VirtualNetworkProperties innerProperties;
+
+ /*
+ * The extendedLocation of the resource.
+ */
+ @JsonProperty(value = "extendedLocation")
+ private ExtendedLocation extendedLocation;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** Creates an instance of VirtualNetworksInner class. */
+ public VirtualNetworksInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Properties under the virtual network resource.
+ *
+ * @return the innerProperties value.
+ */
+ private VirtualNetworkProperties 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 VirtualNetworksInner object itself.
+ */
+ public VirtualNetworksInner 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;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public VirtualNetworksInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public VirtualNetworksInner 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
+ * virtual network. Standard DHCP option for a subnet overrides VNET DHCP options.
+ *
+ * @return the dhcpOptions value.
+ */
+ public VirtualNetworkPropertiesDhcpOptions 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
+ * virtual network. Standard DHCP option for a subnet overrides VNET DHCP options.
+ *
+ * @param dhcpOptions the dhcpOptions value to set.
+ * @return the VirtualNetworksInner object itself.
+ */
+ public VirtualNetworksInner withDhcpOptions(VirtualNetworkPropertiesDhcpOptions dhcpOptions) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualNetworkProperties();
+ }
+ this.innerProperties().withDhcpOptions(dhcpOptions);
+ return this;
+ }
+
+ /**
+ * Get the networkType property: Type of the network.
+ *
+ * @return the networkType value.
+ */
+ public NetworkTypeEnum networkType() {
+ return this.innerProperties() == null ? null : this.innerProperties().networkType();
+ }
+
+ /**
+ * Set the networkType property: Type of the network.
+ *
+ * @param networkType the networkType value to set.
+ * @return the VirtualNetworksInner object itself.
+ */
+ public VirtualNetworksInner withNetworkType(NetworkTypeEnum networkType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualNetworkProperties();
+ }
+ this.innerProperties().withNetworkType(networkType);
+ return this;
+ }
+
+ /**
+ * Get the subnets property: Subnet - list of subnets under the virtual 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 virtual network.
+ *
+ * @param subnets the subnets value to set.
+ * @return the VirtualNetworksInner object itself.
+ */
+ public VirtualNetworksInner withSubnets(List subnets) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualNetworkProperties();
+ }
+ this.innerProperties().withSubnets(subnets);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the virtual 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 VirtualNetworksInner object itself.
+ */
+ public VirtualNetworksInner withVmSwitchName(String vmSwitchName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualNetworkProperties();
+ }
+ this.innerProperties().withVmSwitchName(vmSwitchName);
+ return this;
+ }
+
+ /**
+ * Get the status property: The observed state of virtual networks.
+ *
+ * @return the status value.
+ */
+ public VirtualNetworkStatus 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();
+ }
+ }
+}
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
deleted file mode 100644
index d0fa03aff9ea7..0000000000000
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcIdentityResponseImpl.java
+++ /dev/null
@@ -1,45 +0,0 @@
-// 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.resourcemanager.azurestackhci.fluent.models.ArcIdentityResponseInner;
-import com.azure.resourcemanager.azurestackhci.models.ArcIdentityResponse;
-
-public final class ArcIdentityResponseImpl implements ArcIdentityResponse {
- private ArcIdentityResponseInner innerObject;
-
- private final com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager;
-
- ArcIdentityResponseImpl(
- ArcIdentityResponseInner innerObject,
- com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- }
-
- public String arcApplicationClientId() {
- return this.innerModel().arcApplicationClientId();
- }
-
- public String arcApplicationTenantId() {
- return this.innerModel().arcApplicationTenantId();
- }
-
- public String arcServicePrincipalObjectId() {
- return this.innerModel().arcServicePrincipalObjectId();
- }
-
- public String arcApplicationObjectId() {
- return this.innerModel().arcApplicationObjectId();
- }
-
- public ArcIdentityResponseInner innerModel() {
- return this.innerObject;
- }
-
- 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
deleted file mode 100644
index e7c22ee4ecd1a..0000000000000
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcSettingImpl.java
+++ /dev/null
@@ -1,251 +0,0 @@
-// 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.http.rest.Response;
-import com.azure.core.management.SystemData;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.azurestackhci.fluent.models.ArcSettingInner;
-import com.azure.resourcemanager.azurestackhci.models.ArcIdentityResponse;
-import com.azure.resourcemanager.azurestackhci.models.ArcSetting;
-import com.azure.resourcemanager.azurestackhci.models.ArcSettingAggregateState;
-import com.azure.resourcemanager.azurestackhci.models.ArcSettingsPatch;
-import com.azure.resourcemanager.azurestackhci.models.PasswordCredential;
-import com.azure.resourcemanager.azurestackhci.models.PerNodeState;
-import com.azure.resourcemanager.azurestackhci.models.ProvisioningState;
-import java.util.Collections;
-import java.util.List;
-import java.util.Map;
-
-public final class ArcSettingImpl implements ArcSetting, ArcSetting.Definition, ArcSetting.Update {
- private ArcSettingInner 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 SystemData systemData() {
- return this.innerModel().systemData();
- }
-
- public ProvisioningState provisioningState() {
- return this.innerModel().provisioningState();
- }
-
- public String arcInstanceResourceGroup() {
- return this.innerModel().arcInstanceResourceGroup();
- }
-
- public String arcApplicationClientId() {
- return this.innerModel().arcApplicationClientId();
- }
-
- public String arcApplicationTenantId() {
- return this.innerModel().arcApplicationTenantId();
- }
-
- public String arcServicePrincipalObjectId() {
- return this.innerModel().arcServicePrincipalObjectId();
- }
-
- public String arcApplicationObjectId() {
- return this.innerModel().arcApplicationObjectId();
- }
-
- public ArcSettingAggregateState aggregateState() {
- return this.innerModel().aggregateState();
- }
-
- public List perNodeDetails() {
- List inner = this.innerModel().perNodeDetails();
- if (inner != null) {
- return Collections.unmodifiableList(inner);
- } else {
- return Collections.emptyList();
- }
- }
-
- public Object connectivityProperties() {
- return this.innerModel().connectivityProperties();
- }
-
- public String resourceGroupName() {
- return resourceGroupName;
- }
-
- public ArcSettingInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager() {
- return this.serviceManager;
- }
-
- private String resourceGroupName;
-
- private String clusterName;
-
- private String arcSettingName;
-
- private ArcSettingsPatch updateArcSetting;
-
- public ArcSettingImpl withExistingCluster(String resourceGroupName, String clusterName) {
- this.resourceGroupName = resourceGroupName;
- this.clusterName = clusterName;
- return this;
- }
-
- public ArcSetting create() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getArcSettings()
- .createWithResponse(resourceGroupName, clusterName, arcSettingName, this.innerModel(), Context.NONE)
- .getValue();
- return this;
- }
-
- public ArcSetting create(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getArcSettings()
- .createWithResponse(resourceGroupName, clusterName, arcSettingName, this.innerModel(), context)
- .getValue();
- return this;
- }
-
- ArcSettingImpl(String name, com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
- this.innerObject = new ArcSettingInner();
- this.serviceManager = serviceManager;
- this.arcSettingName = name;
- }
-
- public ArcSettingImpl update() {
- this.updateArcSetting = new ArcSettingsPatch();
- return this;
- }
-
- public ArcSetting apply() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getArcSettings()
- .updateWithResponse(resourceGroupName, clusterName, arcSettingName, updateArcSetting, Context.NONE)
- .getValue();
- return this;
- }
-
- public ArcSetting apply(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getArcSettings()
- .updateWithResponse(resourceGroupName, clusterName, arcSettingName, updateArcSetting, context)
- .getValue();
- return this;
- }
-
- ArcSettingImpl(
- ArcSettingInner innerObject, com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.clusterName = Utils.getValueFromIdByName(innerObject.id(), "clusters");
- this.arcSettingName = Utils.getValueFromIdByName(innerObject.id(), "arcSettings");
- }
-
- public ArcSetting refresh() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getArcSettings()
- .getWithResponse(resourceGroupName, clusterName, arcSettingName, Context.NONE)
- .getValue();
- return this;
- }
-
- public ArcSetting refresh(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getArcSettings()
- .getWithResponse(resourceGroupName, clusterName, arcSettingName, context)
- .getValue();
- return this;
- }
-
- public PasswordCredential generatePassword() {
- return serviceManager.arcSettings().generatePassword(resourceGroupName, clusterName, arcSettingName);
- }
-
- public Response generatePasswordWithResponse(Context context) {
- return serviceManager
- .arcSettings()
- .generatePasswordWithResponse(resourceGroupName, clusterName, arcSettingName, context);
- }
-
- public ArcIdentityResponse createIdentity() {
- return serviceManager.arcSettings().createIdentity(resourceGroupName, clusterName, arcSettingName);
- }
-
- public ArcIdentityResponse createIdentity(Context context) {
- return serviceManager.arcSettings().createIdentity(resourceGroupName, clusterName, arcSettingName, context);
- }
-
- public ArcSettingImpl withArcInstanceResourceGroup(String arcInstanceResourceGroup) {
- this.innerModel().withArcInstanceResourceGroup(arcInstanceResourceGroup);
- return this;
- }
-
- public ArcSettingImpl withArcApplicationClientId(String arcApplicationClientId) {
- this.innerModel().withArcApplicationClientId(arcApplicationClientId);
- return this;
- }
-
- public ArcSettingImpl withArcApplicationTenantId(String arcApplicationTenantId) {
- this.innerModel().withArcApplicationTenantId(arcApplicationTenantId);
- return this;
- }
-
- public ArcSettingImpl withArcServicePrincipalObjectId(String arcServicePrincipalObjectId) {
- this.innerModel().withArcServicePrincipalObjectId(arcServicePrincipalObjectId);
- return this;
- }
-
- public ArcSettingImpl withArcApplicationObjectId(String arcApplicationObjectId) {
- this.innerModel().withArcApplicationObjectId(arcApplicationObjectId);
- return this;
- }
-
- public ArcSettingImpl withConnectivityProperties(Object connectivityProperties) {
- if (isInCreateMode()) {
- this.innerModel().withConnectivityProperties(connectivityProperties);
- return this;
- } else {
- this.updateArcSetting.withConnectivityProperties(connectivityProperties);
- return this;
- }
- }
-
- public ArcSettingImpl withTags(Map tags) {
- this.updateArcSetting.withTags(tags);
- 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/ArcSettingsImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcSettingsImpl.java
deleted file mode 100644
index e7fc8d055b322..0000000000000
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcSettingsImpl.java
+++ /dev/null
@@ -1,238 +0,0 @@
-// 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.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.SimpleResponse;
-import com.azure.core.util.Context;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.azurestackhci.fluent.ArcSettingsClient;
-import com.azure.resourcemanager.azurestackhci.fluent.models.ArcIdentityResponseInner;
-import com.azure.resourcemanager.azurestackhci.fluent.models.ArcSettingInner;
-import com.azure.resourcemanager.azurestackhci.fluent.models.PasswordCredentialInner;
-import com.azure.resourcemanager.azurestackhci.models.ArcIdentityResponse;
-import com.azure.resourcemanager.azurestackhci.models.ArcSetting;
-import com.azure.resourcemanager.azurestackhci.models.ArcSettings;
-import com.azure.resourcemanager.azurestackhci.models.PasswordCredential;
-
-public final class ArcSettingsImpl implements ArcSettings {
- private static final ClientLogger LOGGER = new ClientLogger(ArcSettingsImpl.class);
-
- private final ArcSettingsClient innerClient;
-
- private final com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager;
-
- public ArcSettingsImpl(
- ArcSettingsClient innerClient, com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public PagedIterable listByCluster(String resourceGroupName, String clusterName) {
- PagedIterable inner = this.serviceClient().listByCluster(resourceGroupName, clusterName);
- return Utils.mapPage(inner, inner1 -> new ArcSettingImpl(inner1, this.manager()));
- }
-
- public PagedIterable listByCluster(String resourceGroupName, String clusterName, Context context) {
- PagedIterable inner =
- this.serviceClient().listByCluster(resourceGroupName, clusterName, context);
- return Utils.mapPage(inner, inner1 -> new ArcSettingImpl(inner1, this.manager()));
- }
-
- public ArcSetting get(String resourceGroupName, String clusterName, String arcSettingName) {
- ArcSettingInner inner = this.serviceClient().get(resourceGroupName, clusterName, arcSettingName);
- if (inner != null) {
- return new ArcSettingImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public Response getWithResponse(
- String resourceGroupName, String clusterName, String arcSettingName, Context context) {
- Response inner =
- this.serviceClient().getWithResponse(resourceGroupName, clusterName, arcSettingName, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- new ArcSettingImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public void delete(String resourceGroupName, String clusterName, String arcSettingName) {
- this.serviceClient().delete(resourceGroupName, clusterName, arcSettingName);
- }
-
- public void delete(String resourceGroupName, String clusterName, String arcSettingName, Context context) {
- this.serviceClient().delete(resourceGroupName, clusterName, arcSettingName, context);
- }
-
- public PasswordCredential generatePassword(String resourceGroupName, String clusterName, String arcSettingName) {
- PasswordCredentialInner inner =
- this.serviceClient().generatePassword(resourceGroupName, clusterName, arcSettingName);
- if (inner != null) {
- return new PasswordCredentialImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public Response generatePasswordWithResponse(
- String resourceGroupName, String clusterName, String arcSettingName, Context context) {
- Response inner =
- this.serviceClient().generatePasswordWithResponse(resourceGroupName, clusterName, arcSettingName, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- new PasswordCredentialImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public ArcIdentityResponse createIdentity(String resourceGroupName, String clusterName, String arcSettingName) {
- ArcIdentityResponseInner inner =
- this.serviceClient().createIdentity(resourceGroupName, clusterName, arcSettingName);
- if (inner != null) {
- return new ArcIdentityResponseImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public ArcIdentityResponse createIdentity(
- String resourceGroupName, String clusterName, String arcSettingName, Context context) {
- ArcIdentityResponseInner inner =
- this.serviceClient().createIdentity(resourceGroupName, clusterName, arcSettingName, context);
- if (inner != null) {
- return new ArcIdentityResponseImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public ArcSetting getById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String clusterName = Utils.getValueFromIdByName(id, "clusters");
- if (clusterName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id)));
- }
- String arcSettingName = Utils.getValueFromIdByName(id, "arcSettings");
- if (arcSettingName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'arcSettings'.", id)));
- }
- return this.getWithResponse(resourceGroupName, clusterName, arcSettingName, Context.NONE).getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String clusterName = Utils.getValueFromIdByName(id, "clusters");
- if (clusterName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id)));
- }
- String arcSettingName = Utils.getValueFromIdByName(id, "arcSettings");
- if (arcSettingName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'arcSettings'.", id)));
- }
- return this.getWithResponse(resourceGroupName, clusterName, arcSettingName, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String clusterName = Utils.getValueFromIdByName(id, "clusters");
- if (clusterName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id)));
- }
- String arcSettingName = Utils.getValueFromIdByName(id, "arcSettings");
- if (arcSettingName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'arcSettings'.", id)));
- }
- this.delete(resourceGroupName, clusterName, arcSettingName, Context.NONE);
- }
-
- public void deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String clusterName = Utils.getValueFromIdByName(id, "clusters");
- if (clusterName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id)));
- }
- String arcSettingName = Utils.getValueFromIdByName(id, "arcSettings");
- if (arcSettingName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'arcSettings'.", id)));
- }
- this.delete(resourceGroupName, clusterName, arcSettingName, context);
- }
-
- private ArcSettingsClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager() {
- return this.serviceManager;
- }
-
- public ArcSettingImpl define(String name) {
- return new ArcSettingImpl(name, this.manager());
- }
-}
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 31e4c5141f028..a68487f0b8c27 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
@@ -119,24 +119,26 @@ public AzureStackHciClientBuilder serializerAdapter(SerializerAdapter serializer
* @return an instance of AzureStackHciClientImpl.
*/
public AzureStackHciClientImpl buildClient() {
- if (endpoint == null) {
- this.endpoint = "https://management.azure.com";
- }
- if (environment == null) {
- this.environment = AzureEnvironment.AZURE;
- }
- if (pipeline == null) {
- this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
- }
- if (defaultPollInterval == null) {
- this.defaultPollInterval = Duration.ofSeconds(30);
- }
- if (serializerAdapter == null) {
- this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
- }
+ String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
+ AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
+ HttpPipeline localPipeline =
+ (pipeline != null)
+ ? pipeline
+ : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ Duration localDefaultPollInterval =
+ (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
+ SerializerAdapter localSerializerAdapter =
+ (serializerAdapter != null)
+ ? serializerAdapter
+ : SerializerFactory.createDefaultManagementSerializerAdapter();
AzureStackHciClientImpl client =
new AzureStackHciClientImpl(
- pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint);
+ localPipeline,
+ localSerializerAdapter,
+ localDefaultPollInterval,
+ localEnvironment,
+ subscriptionId,
+ localEndpoint);
return client;
}
}
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 773a2426d48da..84a242a386941 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
@@ -22,11 +22,17 @@
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.serializer.SerializerAdapter;
import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.azurestackhci.fluent.ArcSettingsClient;
import com.azure.resourcemanager.azurestackhci.fluent.AzureStackHciClient;
-import com.azure.resourcemanager.azurestackhci.fluent.ClustersClient;
-import com.azure.resourcemanager.azurestackhci.fluent.ExtensionsClient;
-import com.azure.resourcemanager.azurestackhci.fluent.OperationsClient;
+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.MarketplaceGalleryImagesOperationsClient;
+import com.azure.resourcemanager.azurestackhci.fluent.NetworkInterfacesOperationsClient;
+import com.azure.resourcemanager.azurestackhci.fluent.StorageContainersOperationsClient;
+import com.azure.resourcemanager.azurestackhci.fluent.VirtualHardDisksOperationsClient;
+import com.azure.resourcemanager.azurestackhci.fluent.VirtualMachineInstancesClient;
+import com.azure.resourcemanager.azurestackhci.fluent.VirtualNetworksOperationsClient;
import java.io.IOException;
import java.lang.reflect.Type;
import java.nio.ByteBuffer;
@@ -111,52 +117,124 @@ public Duration getDefaultPollInterval() {
return this.defaultPollInterval;
}
- /** The ArcSettingsClient object to access its operations. */
- private final ArcSettingsClient arcSettings;
+ /** The GalleryImagesOperationsClient object to access its operations. */
+ private final GalleryImagesOperationsClient galleryImagesOperations;
/**
- * Gets the ArcSettingsClient object to access its operations.
+ * Gets the GalleryImagesOperationsClient object to access its operations.
*
- * @return the ArcSettingsClient object.
+ * @return the GalleryImagesOperationsClient object.
*/
- public ArcSettingsClient getArcSettings() {
- return this.arcSettings;
+ public GalleryImagesOperationsClient getGalleryImagesOperations() {
+ return this.galleryImagesOperations;
}
- /** The ClustersClient object to access its operations. */
- private final ClustersClient clusters;
+ /** The MarketplaceGalleryImagesOperationsClient object to access its operations. */
+ private final MarketplaceGalleryImagesOperationsClient marketplaceGalleryImagesOperations;
/**
- * Gets the ClustersClient object to access its operations.
+ * Gets the MarketplaceGalleryImagesOperationsClient object to access its operations.
*
- * @return the ClustersClient object.
+ * @return the MarketplaceGalleryImagesOperationsClient object.
*/
- public ClustersClient getClusters() {
- return this.clusters;
+ public MarketplaceGalleryImagesOperationsClient getMarketplaceGalleryImagesOperations() {
+ return this.marketplaceGalleryImagesOperations;
}
- /** The ExtensionsClient object to access its operations. */
- private final ExtensionsClient extensions;
+ /** The NetworkInterfacesOperationsClient object to access its operations. */
+ private final NetworkInterfacesOperationsClient networkInterfacesOperations;
/**
- * Gets the ExtensionsClient object to access its operations.
+ * Gets the NetworkInterfacesOperationsClient object to access its operations.
*
- * @return the ExtensionsClient object.
+ * @return the NetworkInterfacesOperationsClient object.
*/
- public ExtensionsClient getExtensions() {
- return this.extensions;
+ public NetworkInterfacesOperationsClient getNetworkInterfacesOperations() {
+ return this.networkInterfacesOperations;
}
- /** The OperationsClient object to access its operations. */
- private final OperationsClient operations;
+ /** The StorageContainersOperationsClient object to access its operations. */
+ private final StorageContainersOperationsClient storageContainersOperations;
/**
- * Gets the OperationsClient object to access its operations.
+ * Gets the StorageContainersOperationsClient object to access its operations.
*
- * @return the OperationsClient object.
+ * @return the StorageContainersOperationsClient object.
*/
- public OperationsClient getOperations() {
- return this.operations;
+ public StorageContainersOperationsClient getStorageContainersOperations() {
+ return this.storageContainersOperations;
+ }
+
+ /** 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;
+ }
+
+ /** The VirtualNetworksOperationsClient object to access its operations. */
+ private final VirtualNetworksOperationsClient virtualNetworksOperations;
+
+ /**
+ * Gets the VirtualNetworksOperationsClient object to access its operations.
+ *
+ * @return the VirtualNetworksOperationsClient object.
+ */
+ public VirtualNetworksOperationsClient getVirtualNetworksOperations() {
+ return this.virtualNetworksOperations;
}
/**
@@ -181,11 +259,17 @@ public OperationsClient getOperations() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2022-05-01";
- this.arcSettings = new ArcSettingsClientImpl(this);
- this.clusters = new ClustersClientImpl(this);
- this.extensions = new ExtensionsClientImpl(this);
- this.operations = new OperationsClientImpl(this);
+ this.apiVersion = "2023-07-01-preview";
+ this.galleryImagesOperations = new GalleryImagesOperationsClientImpl(this);
+ this.marketplaceGalleryImagesOperations = new MarketplaceGalleryImagesOperationsClientImpl(this);
+ this.networkInterfacesOperations = new NetworkInterfacesOperationsClientImpl(this);
+ this.storageContainersOperations = new StorageContainersOperationsClientImpl(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);
+ this.virtualNetworksOperations = new VirtualNetworksOperationsClientImpl(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
deleted file mode 100644
index bc4eb9adf8bee..0000000000000
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClusterIdentityResponseImpl.java
+++ /dev/null
@@ -1,45 +0,0 @@
-// 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.resourcemanager.azurestackhci.fluent.models.ClusterIdentityResponseInner;
-import com.azure.resourcemanager.azurestackhci.models.ClusterIdentityResponse;
-
-public final class ClusterIdentityResponseImpl implements ClusterIdentityResponse {
- private ClusterIdentityResponseInner innerObject;
-
- private final com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager;
-
- ClusterIdentityResponseImpl(
- ClusterIdentityResponseInner innerObject,
- com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- }
-
- public String aadClientId() {
- return this.innerModel().aadClientId();
- }
-
- public String aadTenantId() {
- return this.innerModel().aadTenantId();
- }
-
- public String aadServicePrincipalObjectId() {
- return this.innerModel().aadServicePrincipalObjectId();
- }
-
- public String aadApplicationObjectId() {
- return this.innerModel().aadApplicationObjectId();
- }
-
- public ClusterIdentityResponseInner innerModel() {
- return this.innerObject;
- }
-
- 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
deleted file mode 100644
index 3bb9fccdd06c7..0000000000000
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClusterImpl.java
+++ /dev/null
@@ -1,319 +0,0 @@
-// 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.ClusterInner;
-import com.azure.resourcemanager.azurestackhci.models.Cluster;
-import com.azure.resourcemanager.azurestackhci.models.ClusterDesiredProperties;
-import com.azure.resourcemanager.azurestackhci.models.ClusterIdentityResponse;
-import com.azure.resourcemanager.azurestackhci.models.ClusterPatch;
-import com.azure.resourcemanager.azurestackhci.models.ClusterReportedProperties;
-import com.azure.resourcemanager.azurestackhci.models.ProvisioningState;
-import com.azure.resourcemanager.azurestackhci.models.Status;
-import com.azure.resourcemanager.azurestackhci.models.UploadCertificateRequest;
-import java.time.OffsetDateTime;
-import java.util.Collections;
-import java.util.Map;
-
-public final class ClusterImpl implements Cluster, Cluster.Definition, Cluster.Update {
- private ClusterInner 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 SystemData systemData() {
- return this.innerModel().systemData();
- }
-
- public ProvisioningState provisioningState() {
- return this.innerModel().provisioningState();
- }
-
- public Status status() {
- return this.innerModel().status();
- }
-
- public String cloudId() {
- return this.innerModel().cloudId();
- }
-
- public String cloudManagementEndpoint() {
- return this.innerModel().cloudManagementEndpoint();
- }
-
- public String aadClientId() {
- return this.innerModel().aadClientId();
- }
-
- public String aadTenantId() {
- return this.innerModel().aadTenantId();
- }
-
- public String aadApplicationObjectId() {
- return this.innerModel().aadApplicationObjectId();
- }
-
- public String aadServicePrincipalObjectId() {
- return this.innerModel().aadServicePrincipalObjectId();
- }
-
- public ClusterDesiredProperties desiredProperties() {
- return this.innerModel().desiredProperties();
- }
-
- public ClusterReportedProperties reportedProperties() {
- return this.innerModel().reportedProperties();
- }
-
- public Float trialDaysRemaining() {
- return this.innerModel().trialDaysRemaining();
- }
-
- public String billingModel() {
- return this.innerModel().billingModel();
- }
-
- public OffsetDateTime registrationTimestamp() {
- return this.innerModel().registrationTimestamp();
- }
-
- public OffsetDateTime lastSyncTimestamp() {
- return this.innerModel().lastSyncTimestamp();
- }
-
- public OffsetDateTime lastBillingTimestamp() {
- return this.innerModel().lastBillingTimestamp();
- }
-
- public String serviceEndpoint() {
- return this.innerModel().serviceEndpoint();
- }
-
- public Region region() {
- return Region.fromName(this.regionName());
- }
-
- public String regionName() {
- return this.location();
- }
-
- public String resourceGroupName() {
- return resourceGroupName;
- }
-
- public ClusterInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager() {
- return this.serviceManager;
- }
-
- private String resourceGroupName;
-
- private String clusterName;
-
- private ClusterPatch updateCluster;
-
- public ClusterImpl withExistingResourceGroup(String resourceGroupName) {
- this.resourceGroupName = resourceGroupName;
- return this;
- }
-
- public Cluster create() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getClusters()
- .createWithResponse(resourceGroupName, clusterName, this.innerModel(), Context.NONE)
- .getValue();
- return this;
- }
-
- public Cluster create(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getClusters()
- .createWithResponse(resourceGroupName, clusterName, this.innerModel(), context)
- .getValue();
- return this;
- }
-
- ClusterImpl(String name, com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
- this.innerObject = new ClusterInner();
- this.serviceManager = serviceManager;
- this.clusterName = name;
- }
-
- public ClusterImpl update() {
- this.updateCluster = new ClusterPatch();
- return this;
- }
-
- public Cluster apply() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getClusters()
- .updateWithResponse(resourceGroupName, clusterName, updateCluster, Context.NONE)
- .getValue();
- return this;
- }
-
- public Cluster apply(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getClusters()
- .updateWithResponse(resourceGroupName, clusterName, updateCluster, context)
- .getValue();
- return this;
- }
-
- ClusterImpl(ClusterInner innerObject, com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.clusterName = Utils.getValueFromIdByName(innerObject.id(), "clusters");
- }
-
- public Cluster refresh() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getClusters()
- .getByResourceGroupWithResponse(resourceGroupName, clusterName, Context.NONE)
- .getValue();
- return this;
- }
-
- public Cluster refresh(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getClusters()
- .getByResourceGroupWithResponse(resourceGroupName, clusterName, context)
- .getValue();
- return this;
- }
-
- public void uploadCertificate(UploadCertificateRequest uploadCertificateRequest) {
- serviceManager.clusters().uploadCertificate(resourceGroupName, clusterName, uploadCertificateRequest);
- }
-
- public void uploadCertificate(UploadCertificateRequest uploadCertificateRequest, Context context) {
- serviceManager.clusters().uploadCertificate(resourceGroupName, clusterName, uploadCertificateRequest, context);
- }
-
- public ClusterIdentityResponse createIdentity() {
- return serviceManager.clusters().createIdentity(resourceGroupName, clusterName);
- }
-
- public ClusterIdentityResponse createIdentity(Context context) {
- return serviceManager.clusters().createIdentity(resourceGroupName, clusterName, context);
- }
-
- public ClusterImpl withRegion(Region location) {
- this.innerModel().withLocation(location.toString());
- return this;
- }
-
- public ClusterImpl withRegion(String location) {
- this.innerModel().withLocation(location);
- return this;
- }
-
- public ClusterImpl withTags(Map tags) {
- if (isInCreateMode()) {
- this.innerModel().withTags(tags);
- return this;
- } else {
- this.updateCluster.withTags(tags);
- return this;
- }
- }
-
- public ClusterImpl withCloudManagementEndpoint(String cloudManagementEndpoint) {
- if (isInCreateMode()) {
- this.innerModel().withCloudManagementEndpoint(cloudManagementEndpoint);
- return this;
- } else {
- this.updateCluster.withCloudManagementEndpoint(cloudManagementEndpoint);
- return this;
- }
- }
-
- public ClusterImpl withAadClientId(String aadClientId) {
- if (isInCreateMode()) {
- this.innerModel().withAadClientId(aadClientId);
- return this;
- } else {
- this.updateCluster.withAadClientId(aadClientId);
- return this;
- }
- }
-
- public ClusterImpl withAadTenantId(String aadTenantId) {
- if (isInCreateMode()) {
- this.innerModel().withAadTenantId(aadTenantId);
- return this;
- } else {
- this.updateCluster.withAadTenantId(aadTenantId);
- return this;
- }
- }
-
- public ClusterImpl withAadApplicationObjectId(String aadApplicationObjectId) {
- this.innerModel().withAadApplicationObjectId(aadApplicationObjectId);
- return this;
- }
-
- public ClusterImpl withAadServicePrincipalObjectId(String aadServicePrincipalObjectId) {
- this.innerModel().withAadServicePrincipalObjectId(aadServicePrincipalObjectId);
- return this;
- }
-
- public ClusterImpl withDesiredProperties(ClusterDesiredProperties desiredProperties) {
- if (isInCreateMode()) {
- this.innerModel().withDesiredProperties(desiredProperties);
- return this;
- } else {
- this.updateCluster.withDesiredProperties(desiredProperties);
- 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/ClustersImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClustersImpl.java
deleted file mode 100644
index 980c49de2240a..0000000000000
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClustersImpl.java
+++ /dev/null
@@ -1,204 +0,0 @@
-// 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.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.SimpleResponse;
-import com.azure.core.util.Context;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.azurestackhci.fluent.ClustersClient;
-import com.azure.resourcemanager.azurestackhci.fluent.models.ClusterIdentityResponseInner;
-import com.azure.resourcemanager.azurestackhci.fluent.models.ClusterInner;
-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.UploadCertificateRequest;
-
-public final class ClustersImpl implements Clusters {
- private static final ClientLogger LOGGER = new ClientLogger(ClustersImpl.class);
-
- private final ClustersClient innerClient;
-
- private final com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager;
-
- public ClustersImpl(
- ClustersClient innerClient, com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public PagedIterable list() {
- PagedIterable inner = this.serviceClient().list();
- return Utils.mapPage(inner, inner1 -> new ClusterImpl(inner1, this.manager()));
- }
-
- public PagedIterable list(Context context) {
- PagedIterable inner = this.serviceClient().list(context);
- return Utils.mapPage(inner, inner1 -> new ClusterImpl(inner1, this.manager()));
- }
-
- public PagedIterable listByResourceGroup(String resourceGroupName) {
- PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName);
- return Utils.mapPage(inner, inner1 -> new ClusterImpl(inner1, this.manager()));
- }
-
- public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
- PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context);
- return Utils.mapPage(inner, inner1 -> new ClusterImpl(inner1, this.manager()));
- }
-
- public Cluster getByResourceGroup(String resourceGroupName, String clusterName) {
- ClusterInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, clusterName);
- if (inner != null) {
- return new ClusterImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public Response getByResourceGroupWithResponse(
- String resourceGroupName, String clusterName, Context context) {
- Response inner =
- this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, clusterName, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- new ClusterImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public void deleteByResourceGroup(String resourceGroupName, String clusterName) {
- this.serviceClient().delete(resourceGroupName, clusterName);
- }
-
- public void delete(String resourceGroupName, String clusterName, Context context) {
- this.serviceClient().delete(resourceGroupName, clusterName, context);
- }
-
- public void uploadCertificate(
- String resourceGroupName, String clusterName, UploadCertificateRequest uploadCertificateRequest) {
- this.serviceClient().uploadCertificate(resourceGroupName, clusterName, uploadCertificateRequest);
- }
-
- public void uploadCertificate(
- String resourceGroupName,
- String clusterName,
- UploadCertificateRequest uploadCertificateRequest,
- Context context) {
- this.serviceClient().uploadCertificate(resourceGroupName, clusterName, uploadCertificateRequest, context);
- }
-
- public ClusterIdentityResponse createIdentity(String resourceGroupName, String clusterName) {
- ClusterIdentityResponseInner inner = this.serviceClient().createIdentity(resourceGroupName, clusterName);
- if (inner != null) {
- return new ClusterIdentityResponseImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public ClusterIdentityResponse createIdentity(String resourceGroupName, String clusterName, Context context) {
- ClusterIdentityResponseInner inner =
- this.serviceClient().createIdentity(resourceGroupName, clusterName, context);
- if (inner != null) {
- return new ClusterIdentityResponseImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public Cluster getById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String clusterName = Utils.getValueFromIdByName(id, "clusters");
- if (clusterName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id)));
- }
- return this.getByResourceGroupWithResponse(resourceGroupName, clusterName, Context.NONE).getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String clusterName = Utils.getValueFromIdByName(id, "clusters");
- if (clusterName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id)));
- }
- return this.getByResourceGroupWithResponse(resourceGroupName, clusterName, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String clusterName = Utils.getValueFromIdByName(id, "clusters");
- if (clusterName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id)));
- }
- this.delete(resourceGroupName, clusterName, Context.NONE);
- }
-
- public void deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String clusterName = Utils.getValueFromIdByName(id, "clusters");
- if (clusterName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id)));
- }
- this.delete(resourceGroupName, clusterName, context);
- }
-
- private ClustersClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager() {
- return this.serviceManager;
- }
-
- public ClusterImpl define(String name) {
- return new ClusterImpl(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
deleted file mode 100644
index 4340ad680657a..0000000000000
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ExtensionImpl.java
+++ /dev/null
@@ -1,220 +0,0 @@
-// 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.SystemData;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.azurestackhci.fluent.models.ExtensionInner;
-import com.azure.resourcemanager.azurestackhci.models.Extension;
-import com.azure.resourcemanager.azurestackhci.models.ExtensionAggregateState;
-import com.azure.resourcemanager.azurestackhci.models.PerNodeExtensionState;
-import com.azure.resourcemanager.azurestackhci.models.ProvisioningState;
-import java.util.Collections;
-import java.util.List;
-
-public final class ExtensionImpl implements Extension, Extension.Definition, Extension.Update {
- private ExtensionInner 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 SystemData systemData() {
- return this.innerModel().systemData();
- }
-
- public ProvisioningState provisioningState() {
- return this.innerModel().provisioningState();
- }
-
- public ExtensionAggregateState aggregateState() {
- return this.innerModel().aggregateState();
- }
-
- public List perNodeExtensionDetails() {
- List inner = this.innerModel().perNodeExtensionDetails();
- if (inner != null) {
- return Collections.unmodifiableList(inner);
- } else {
- return Collections.emptyList();
- }
- }
-
- public String forceUpdateTag() {
- return this.innerModel().forceUpdateTag();
- }
-
- public String publisher() {
- return this.innerModel().publisher();
- }
-
- public String typePropertiesType() {
- return this.innerModel().typePropertiesType();
- }
-
- public String typeHandlerVersion() {
- return this.innerModel().typeHandlerVersion();
- }
-
- public Boolean autoUpgradeMinorVersion() {
- return this.innerModel().autoUpgradeMinorVersion();
- }
-
- public Object settings() {
- return this.innerModel().settings();
- }
-
- public Object protectedSettings() {
- return this.innerModel().protectedSettings();
- }
-
- public String resourceGroupName() {
- return resourceGroupName;
- }
-
- public ExtensionInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager() {
- return this.serviceManager;
- }
-
- private String resourceGroupName;
-
- private String clusterName;
-
- private String arcSettingName;
-
- private String extensionName;
-
- public ExtensionImpl withExistingArcSetting(String resourceGroupName, String clusterName, String arcSettingName) {
- this.resourceGroupName = resourceGroupName;
- this.clusterName = clusterName;
- this.arcSettingName = arcSettingName;
- return this;
- }
-
- public Extension create() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getExtensions()
- .create(resourceGroupName, clusterName, arcSettingName, extensionName, this.innerModel(), Context.NONE);
- return this;
- }
-
- public Extension create(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getExtensions()
- .create(resourceGroupName, clusterName, arcSettingName, extensionName, this.innerModel(), context);
- return this;
- }
-
- ExtensionImpl(String name, com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
- this.innerObject = new ExtensionInner();
- this.serviceManager = serviceManager;
- this.extensionName = name;
- }
-
- public ExtensionImpl update() {
- return this;
- }
-
- public Extension apply() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getExtensions()
- .update(resourceGroupName, clusterName, arcSettingName, extensionName, this.innerModel(), Context.NONE);
- return this;
- }
-
- public Extension apply(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getExtensions()
- .update(resourceGroupName, clusterName, arcSettingName, extensionName, this.innerModel(), context);
- return this;
- }
-
- ExtensionImpl(
- ExtensionInner innerObject, com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.clusterName = Utils.getValueFromIdByName(innerObject.id(), "clusters");
- this.arcSettingName = Utils.getValueFromIdByName(innerObject.id(), "arcSettings");
- this.extensionName = Utils.getValueFromIdByName(innerObject.id(), "extensions");
- }
-
- public Extension refresh() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getExtensions()
- .getWithResponse(resourceGroupName, clusterName, arcSettingName, extensionName, Context.NONE)
- .getValue();
- return this;
- }
-
- public Extension refresh(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getExtensions()
- .getWithResponse(resourceGroupName, clusterName, arcSettingName, extensionName, context)
- .getValue();
- return this;
- }
-
- public ExtensionImpl withForceUpdateTag(String forceUpdateTag) {
- this.innerModel().withForceUpdateTag(forceUpdateTag);
- return this;
- }
-
- public ExtensionImpl withPublisher(String publisher) {
- this.innerModel().withPublisher(publisher);
- return this;
- }
-
- public ExtensionImpl withTypePropertiesType(String typePropertiesType) {
- this.innerModel().withTypePropertiesType(typePropertiesType);
- return this;
- }
-
- public ExtensionImpl withTypeHandlerVersion(String typeHandlerVersion) {
- this.innerModel().withTypeHandlerVersion(typeHandlerVersion);
- return this;
- }
-
- public ExtensionImpl withAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion) {
- this.innerModel().withAutoUpgradeMinorVersion(autoUpgradeMinorVersion);
- return this;
- }
-
- public ExtensionImpl withSettings(Object settings) {
- this.innerModel().withSettings(settings);
- return this;
- }
-
- public ExtensionImpl withProtectedSettings(Object protectedSettings) {
- this.innerModel().withProtectedSettings(protectedSettings);
- return this;
- }
-}
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
deleted file mode 100644
index a2ed71822024c..0000000000000
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ExtensionsImpl.java
+++ /dev/null
@@ -1,224 +0,0 @@
-// 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.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.SimpleResponse;
-import com.azure.core.util.Context;
-import com.azure.core.util.logging.ClientLogger;
-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;
-
-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;
-
- public ExtensionsImpl(
- ExtensionsClient innerClient, com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public PagedIterable listByArcSetting(
- String resourceGroupName, String clusterName, String arcSettingName) {
- PagedIterable inner =
- this.serviceClient().listByArcSetting(resourceGroupName, clusterName, arcSettingName);
- return Utils.mapPage(inner, inner1 -> new ExtensionImpl(inner1, this.manager()));
- }
-
- public PagedIterable listByArcSetting(
- String resourceGroupName, String clusterName, String arcSettingName, Context context) {
- PagedIterable inner =
- this.serviceClient().listByArcSetting(resourceGroupName, clusterName, arcSettingName, context);
- return Utils.mapPage(inner, inner1 -> new ExtensionImpl(inner1, this.manager()));
- }
-
- public Extension get(String resourceGroupName, String clusterName, String arcSettingName, String extensionName) {
- ExtensionInner inner = this.serviceClient().get(resourceGroupName, clusterName, arcSettingName, extensionName);
- if (inner != null) {
- return new ExtensionImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public Response getWithResponse(
- String resourceGroupName, String clusterName, String arcSettingName, String extensionName, Context context) {
- Response inner =
- this
- .serviceClient()
- .getWithResponse(resourceGroupName, clusterName, arcSettingName, extensionName, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- new ExtensionImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public void delete(String resourceGroupName, String clusterName, String arcSettingName, String extensionName) {
- this.serviceClient().delete(resourceGroupName, clusterName, arcSettingName, extensionName);
- }
-
- public void delete(
- String resourceGroupName, String clusterName, String arcSettingName, String extensionName, Context context) {
- this.serviceClient().delete(resourceGroupName, clusterName, arcSettingName, extensionName, context);
- }
-
- public Extension getById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String clusterName = Utils.getValueFromIdByName(id, "clusters");
- if (clusterName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id)));
- }
- String arcSettingName = Utils.getValueFromIdByName(id, "arcSettings");
- if (arcSettingName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'arcSettings'.", id)));
- }
- String extensionName = Utils.getValueFromIdByName(id, "extensions");
- if (extensionName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'extensions'.", id)));
- }
- return this
- .getWithResponse(resourceGroupName, clusterName, arcSettingName, extensionName, Context.NONE)
- .getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String clusterName = Utils.getValueFromIdByName(id, "clusters");
- if (clusterName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id)));
- }
- String arcSettingName = Utils.getValueFromIdByName(id, "arcSettings");
- if (arcSettingName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'arcSettings'.", id)));
- }
- String extensionName = Utils.getValueFromIdByName(id, "extensions");
- if (extensionName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'extensions'.", id)));
- }
- return this.getWithResponse(resourceGroupName, clusterName, arcSettingName, extensionName, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String clusterName = Utils.getValueFromIdByName(id, "clusters");
- if (clusterName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id)));
- }
- String arcSettingName = Utils.getValueFromIdByName(id, "arcSettings");
- if (arcSettingName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'arcSettings'.", id)));
- }
- String extensionName = Utils.getValueFromIdByName(id, "extensions");
- if (extensionName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'extensions'.", id)));
- }
- this.delete(resourceGroupName, clusterName, arcSettingName, extensionName, Context.NONE);
- }
-
- public void deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String clusterName = Utils.getValueFromIdByName(id, "clusters");
- if (clusterName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id)));
- }
- String arcSettingName = Utils.getValueFromIdByName(id, "arcSettings");
- if (arcSettingName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'arcSettings'.", id)));
- }
- String extensionName = Utils.getValueFromIdByName(id, "extensions");
- if (extensionName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'extensions'.", id)));
- }
- this.delete(resourceGroupName, clusterName, arcSettingName, extensionName, context);
- }
-
- private ExtensionsClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager() {
- return this.serviceManager;
- }
-
- public ExtensionImpl define(String name) {
- return new ExtensionImpl(name, this.manager());
- }
-}
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 0000000000000..8bf29ac11b7e5
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/GalleryImagesImpl.java
@@ -0,0 +1,267 @@
+// 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 = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.galleryImageName = Utils.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/ArcSettingsClientImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/GalleryImagesOperationsClientImpl.java
similarity index 57%
rename from sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcSettingsClientImpl.java
rename to sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/GalleryImagesOperationsClientImpl.java
index 0da1463d48572..73a5aead3ecea 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcSettingsClientImpl.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/GalleryImagesOperationsClientImpl.java
@@ -14,7 +14,6 @@
import com.azure.core.annotation.HostParam;
import com.azure.core.annotation.Patch;
import com.azure.core.annotation.PathParam;
-import com.azure.core.annotation.Post;
import com.azure.core.annotation.Put;
import com.azure.core.annotation.QueryParam;
import com.azure.core.annotation.ReturnType;
@@ -33,152 +32,130 @@
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.ArcSettingsClient;
-import com.azure.resourcemanager.azurestackhci.fluent.models.ArcIdentityResponseInner;
-import com.azure.resourcemanager.azurestackhci.fluent.models.ArcSettingInner;
-import com.azure.resourcemanager.azurestackhci.fluent.models.PasswordCredentialInner;
-import com.azure.resourcemanager.azurestackhci.models.ArcSettingList;
-import com.azure.resourcemanager.azurestackhci.models.ArcSettingsPatch;
+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 ArcSettingsClient. */
-public final class ArcSettingsClientImpl implements ArcSettingsClient {
+/** 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 ArcSettingsService service;
+ private final GalleryImagesOperationsService service;
/** The service client containing this operation class. */
private final AzureStackHciClientImpl client;
/**
- * Initializes an instance of ArcSettingsClientImpl.
+ * Initializes an instance of GalleryImagesOperationsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- ArcSettingsClientImpl(AzureStackHciClientImpl client) {
+ GalleryImagesOperationsClientImpl(AzureStackHciClientImpl client) {
this.service =
- RestProxy.create(ArcSettingsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ RestProxy
+ .create(GalleryImagesOperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureStackHciClientArcSettings to be used by the proxy service to
- * perform REST calls.
+ * The interface defining all the services for AzureStackHciClientGalleryImagesOperations to be used by the proxy
+ * service to perform REST calls.
*/
@Host("{$host}")
- @ServiceInterface(name = "AzureStackHciClientA")
- private interface ArcSettingsService {
+ @ServiceInterface(name = "AzureStackHciClientG")
+ public interface GalleryImagesOperationsService {
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI"
- + "/clusters/{clusterName}/arcSettings")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/galleryImages/{galleryImageName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByCluster(
+ Mono> getByResourceGroup(
@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("clusterName") String clusterName,
+ @PathParam("galleryImageName") String galleryImageName,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
Context context);
@Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI"
- + "/clusters/{clusterName}/arcSettings/{arcSettingName}")
- @ExpectedResponses({200})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/galleryImages/{galleryImageName}")
+ @ExpectedResponses({200, 201})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(
+ Mono>> createOrUpdate(
@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("clusterName") String clusterName,
- @PathParam("arcSettingName") String arcSettingName,
+ @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"})
- @Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI"
- + "/clusters/{clusterName}/arcSettings/{arcSettingName}")
- @ExpectedResponses({200})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/galleryImages/{galleryImageName}")
+ @ExpectedResponses({200, 202, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> create(
+ Mono>> delete(
@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("clusterName") String clusterName,
- @PathParam("arcSettingName") String arcSettingName,
+ @PathParam("galleryImageName") String galleryImageName,
@QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") ArcSettingInner arcSetting,
@HeaderParam("Accept") String accept,
Context context);
@Headers({"Content-Type: application/json"})
@Patch(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI"
- + "/clusters/{clusterName}/arcSettings/{arcSettingName}")
- @ExpectedResponses({200})
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/galleryImages/{galleryImageName}")
+ @ExpectedResponses({200, 202})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> update(
+ Mono>> update(
@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("clusterName") String clusterName,
- @PathParam("arcSettingName") String arcSettingName,
+ @PathParam("galleryImageName") String galleryImageName,
@QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") ArcSettingsPatch arcSetting,
+ @BodyParam("application/json") GalleryImagesUpdateRequest galleryImages,
@HeaderParam("Accept") String accept,
Context context);
@Headers({"Content-Type: application/json"})
- @Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI"
- + "/clusters/{clusterName}/arcSettings/{arcSettingName}")
- @ExpectedResponses({200, 202, 204})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/galleryImages")
+ @ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(
+ Mono> listByResourceGroup(
@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("clusterName") String clusterName,
- @PathParam("arcSettingName") String arcSettingName,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
Context context);
@Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI"
- + "/clusters/{clusterName}/arcSettings/{arcSettingName}/generatePassword")
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHci/galleryImages")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> generatePassword(
+ Mono> list(
@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("clusterName") String clusterName,
- @PathParam("arcSettingName") String arcSettingName,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
Context context);
@Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI"
- + "/clusters/{clusterName}/arcSettings/{arcSettingName}/createArcIdentity")
- @ExpectedResponses({200, 202})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createIdentity(
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("clusterName") String clusterName,
- @PathParam("arcSettingName") String arcSettingName,
- @QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
Context context);
@@ -186,7 +163,7 @@ Mono>> createIdentity(
@Get("{nextLink}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByClusterNext(
+ Mono> listAllNext(
@PathParam(value = "nextLink", encoded = true) String nextLink,
@HostParam("$host") String endpoint,
@HeaderParam("Accept") String accept,
@@ -194,19 +171,18 @@ Mono> listByClusterNext(
}
/**
- * Get ArcSetting resources of HCI Cluster.
+ * Gets a gallery image.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
+ * @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 arcSetting resources of HCI Cluster along with {@link PagedResponse} on successful completion of {@link
- * Mono}.
+ * @return a gallery image along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByClusterSinglePageAsync(
- String resourceGroupName, String clusterName) {
+ private Mono> getByResourceGroupWithResponseAsync(
+ String resourceGroupName, String galleryImageName) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -223,49 +199,40 @@ private Mono> listByClusterSinglePageAsync(
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 (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
- .listByCluster(
+ .getByResourceGroup(
this.client.getEndpoint(),
this.client.getSubscriptionId(),
resourceGroupName,
- clusterName,
+ galleryImageName,
this.client.getApiVersion(),
accept,
context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Get ArcSetting resources of HCI Cluster.
+ * Gets a gallery image.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
+ * @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 arcSetting resources of HCI Cluster along with {@link PagedResponse} on successful completion of {@link
- * Mono}.
+ * @return a gallery image along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByClusterSinglePageAsync(
- String resourceGroupName, String clusterName, Context context) {
+ private Mono> getByResourceGroupWithResponseAsync(
+ String resourceGroupName, String galleryImageName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -282,113 +249,87 @@ private Mono