, ClusterInner> beginExtendSoftwareAssuranceBenefit(
+ String resourceGroupName,
+ String clusterName,
+ SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest,
+ Context context);
+
+ /**
+ * Extends Software Assurance Benefit to a cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param softwareAssuranceChangeRequest Software Assurance Change Request Payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cluster details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ClusterInner extendSoftwareAssuranceBenefit(
+ String resourceGroupName, String clusterName, SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest);
+
+ /**
+ * Extends Software Assurance Benefit to a cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param softwareAssuranceChangeRequest Software Assurance Change Request Payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cluster details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ClusterInner extendSoftwareAssuranceBenefit(
+ String resourceGroupName,
+ String clusterName,
+ SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest,
+ Context context);
}
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
index e628ec8d6f03..cc569ef1895f 100644
--- 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
@@ -21,8 +21,7 @@ public final class ArcSettingProperties {
private ProvisioningState provisioningState;
/*
- * The resource group that hosts the Arc agents, ie. Hybrid Compute Machine
- * resources.
+ * The resource group that hosts the Arc agents, ie. Hybrid Compute Machine resources.
*/
@JsonProperty(value = "arcInstanceResourceGroup")
private String arcInstanceResourceGroup;
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterInner.java
index 90830dc5dd72..d52de319bdf5 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterInner.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterInner.java
@@ -10,6 +10,7 @@
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.SoftwareAssuranceProperties;
import com.azure.resourcemanager.azurestackhci.models.Status;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
@@ -204,6 +205,29 @@ public ClusterInner withAadServicePrincipalObjectId(String aadServicePrincipalOb
return this;
}
+ /**
+ * Get the softwareAssuranceProperties property: Software Assurance properties of the cluster.
+ *
+ * @return the softwareAssuranceProperties value.
+ */
+ public SoftwareAssuranceProperties softwareAssuranceProperties() {
+ return this.innerProperties() == null ? null : this.innerProperties().softwareAssuranceProperties();
+ }
+
+ /**
+ * Set the softwareAssuranceProperties property: Software Assurance properties of the cluster.
+ *
+ * @param softwareAssuranceProperties the softwareAssuranceProperties value to set.
+ * @return the ClusterInner object itself.
+ */
+ public ClusterInner withSoftwareAssuranceProperties(SoftwareAssuranceProperties softwareAssuranceProperties) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ClusterProperties();
+ }
+ this.innerProperties().withSoftwareAssuranceProperties(softwareAssuranceProperties);
+ return this;
+ }
+
/**
* Get the desiredProperties property: Desired properties of the cluster.
*
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterProperties.java
index cb7310c87094..9fad4ee32176 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterProperties.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterProperties.java
@@ -8,6 +8,7 @@
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.SoftwareAssuranceProperties;
import com.azure.resourcemanager.azurestackhci.models.Status;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
@@ -63,6 +64,12 @@ public final class ClusterProperties {
@JsonProperty(value = "aadServicePrincipalObjectId")
private String aadServicePrincipalObjectId;
+ /*
+ * Software Assurance properties of the cluster.
+ */
+ @JsonProperty(value = "softwareAssuranceProperties")
+ private SoftwareAssuranceProperties softwareAssuranceProperties;
+
/*
* Desired properties of the cluster.
*/
@@ -238,6 +245,26 @@ public ClusterProperties withAadServicePrincipalObjectId(String aadServicePrinci
return this;
}
+ /**
+ * Get the softwareAssuranceProperties property: Software Assurance properties of the cluster.
+ *
+ * @return the softwareAssuranceProperties value.
+ */
+ public SoftwareAssuranceProperties softwareAssuranceProperties() {
+ return this.softwareAssuranceProperties;
+ }
+
+ /**
+ * Set the softwareAssuranceProperties property: Software Assurance properties of the cluster.
+ *
+ * @param softwareAssuranceProperties the softwareAssuranceProperties value to set.
+ * @return the ClusterProperties object itself.
+ */
+ public ClusterProperties withSoftwareAssuranceProperties(SoftwareAssuranceProperties softwareAssuranceProperties) {
+ this.softwareAssuranceProperties = softwareAssuranceProperties;
+ return this;
+ }
+
/**
* Get the desiredProperties property: Desired properties of the cluster.
*
@@ -327,6 +354,9 @@ public String serviceEndpoint() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (softwareAssuranceProperties() != null) {
+ softwareAssuranceProperties().validate();
+ }
if (desiredProperties() != null) {
desiredProperties().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
index 52eea9ddbd4a..fe8e7f9a2aad 100644
--- 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
@@ -11,8 +11,7 @@
@Fluent
public final class ExtensionParameters {
/*
- * How the extension handler should be forced to update even if the
- * extension configuration has not changed.
+ * How the extension handler should be forced to update even if the extension configuration has not changed.
*/
@JsonProperty(value = "forceUpdateTag")
private String forceUpdateTag;
@@ -24,8 +23,7 @@ public final class ExtensionParameters {
private String publisher;
/*
- * Specifies the type of the extension; an example is
- * "CustomScriptExtension".
+ * Specifies the type of the extension; an example is "CustomScriptExtension".
*/
@JsonProperty(value = "type")
private String type;
@@ -37,10 +35,9 @@ public final class ExtensionParameters {
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.
+ * 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;
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/ArcSettingsClientImpl.java
index 0da1463d4857..519a2dba2be4 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/ArcSettingsClientImpl.java
@@ -1574,7 +1574,8 @@ public ArcIdentityResponseInner createIdentity(
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -1610,7 +1611,8 @@ private Mono> listByClusterNextSinglePageAsync(St
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
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 31e4c5141f02..a68487f0b8c2 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 773a2426d48d..c38f56e4bfdb 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
@@ -181,7 +181,7 @@ public OperationsClient getOperations() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2022-05-01";
+ this.apiVersion = "2022-09-01";
this.arcSettings = new ArcSettingsClientImpl(this);
this.clusters = new ClustersClientImpl(this);
this.extensions = new ExtensionsClientImpl(this);
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClusterImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClusterImpl.java
index 3bb9fccdd06c..479fe3d2c172 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClusterImpl.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClusterImpl.java
@@ -14,6 +14,8 @@
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.SoftwareAssuranceChangeRequest;
+import com.azure.resourcemanager.azurestackhci.models.SoftwareAssuranceProperties;
import com.azure.resourcemanager.azurestackhci.models.Status;
import com.azure.resourcemanager.azurestackhci.models.UploadCertificateRequest;
import java.time.OffsetDateTime;
@@ -86,6 +88,10 @@ public String aadServicePrincipalObjectId() {
return this.innerModel().aadServicePrincipalObjectId();
}
+ public SoftwareAssuranceProperties softwareAssuranceProperties() {
+ return this.innerModel().softwareAssuranceProperties();
+ }
+
public ClusterDesiredProperties desiredProperties() {
return this.innerModel().desiredProperties();
}
@@ -243,6 +249,19 @@ public ClusterIdentityResponse createIdentity(Context context) {
return serviceManager.clusters().createIdentity(resourceGroupName, clusterName, context);
}
+ public Cluster extendSoftwareAssuranceBenefit(SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest) {
+ return serviceManager
+ .clusters()
+ .extendSoftwareAssuranceBenefit(resourceGroupName, clusterName, softwareAssuranceChangeRequest);
+ }
+
+ public Cluster extendSoftwareAssuranceBenefit(
+ SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest, Context context) {
+ return serviceManager
+ .clusters()
+ .extendSoftwareAssuranceBenefit(resourceGroupName, clusterName, softwareAssuranceChangeRequest, context);
+ }
+
public ClusterImpl withRegion(Region location) {
this.innerModel().withLocation(location.toString());
return this;
@@ -303,6 +322,11 @@ public ClusterImpl withAadServicePrincipalObjectId(String aadServicePrincipalObj
return this;
}
+ public ClusterImpl withSoftwareAssuranceProperties(SoftwareAssuranceProperties softwareAssuranceProperties) {
+ this.innerModel().withSoftwareAssuranceProperties(softwareAssuranceProperties);
+ return this;
+ }
+
public ClusterImpl withDesiredProperties(ClusterDesiredProperties desiredProperties) {
if (isInCreateMode()) {
this.innerModel().withDesiredProperties(desiredProperties);
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClustersClientImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClustersClientImpl.java
index d04da2f86403..a8f6422d6603 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClustersClientImpl.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClustersClientImpl.java
@@ -38,6 +38,7 @@
import com.azure.resourcemanager.azurestackhci.fluent.models.ClusterInner;
import com.azure.resourcemanager.azurestackhci.models.ClusterList;
import com.azure.resourcemanager.azurestackhci.models.ClusterPatch;
+import com.azure.resourcemanager.azurestackhci.models.SoftwareAssuranceChangeRequest;
import com.azure.resourcemanager.azurestackhci.models.UploadCertificateRequest;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
@@ -186,6 +187,22 @@ Mono>> createIdentity(
@HeaderParam("Accept") String accept,
Context context);
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI"
+ + "/clusters/{clusterName}/extendSoftwareAssuranceBenefit")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> extendSoftwareAssuranceBenefit(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("clusterName") String clusterName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({"Content-Type: application/json"})
@Get("{nextLink}")
@ExpectedResponses({200})
@@ -1723,10 +1740,304 @@ public ClusterIdentityResponseInner createIdentity(String resourceGroupName, Str
return createIdentityAsync(resourceGroupName, clusterName, context).block();
}
+ /**
+ * Extends Software Assurance Benefit to a cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param softwareAssuranceChangeRequest Software Assurance Change Request Payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cluster details along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> extendSoftwareAssuranceBenefitWithResponseAsync(
+ String resourceGroupName, String clusterName, SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
+ }
+ if (softwareAssuranceChangeRequest == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter softwareAssuranceChangeRequest is required and cannot be null."));
+ } else {
+ softwareAssuranceChangeRequest.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .extendSoftwareAssuranceBenefit(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterName,
+ this.client.getApiVersion(),
+ softwareAssuranceChangeRequest,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Extends Software Assurance Benefit to a cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param softwareAssuranceChangeRequest Software Assurance Change Request Payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cluster details along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> extendSoftwareAssuranceBenefitWithResponseAsync(
+ String resourceGroupName,
+ String clusterName,
+ SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
+ }
+ if (softwareAssuranceChangeRequest == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter softwareAssuranceChangeRequest is required and cannot be null."));
+ } else {
+ softwareAssuranceChangeRequest.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .extendSoftwareAssuranceBenefit(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterName,
+ this.client.getApiVersion(),
+ softwareAssuranceChangeRequest,
+ accept,
+ context);
+ }
+
+ /**
+ * Extends Software Assurance Benefit to a cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param softwareAssuranceChangeRequest Software Assurance Change Request Payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of cluster details.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ClusterInner> beginExtendSoftwareAssuranceBenefitAsync(
+ String resourceGroupName, String clusterName, SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest) {
+ Mono>> mono =
+ extendSoftwareAssuranceBenefitWithResponseAsync(
+ resourceGroupName, clusterName, softwareAssuranceChangeRequest);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), ClusterInner.class, ClusterInner.class, this.client.getContext());
+ }
+
+ /**
+ * Extends Software Assurance Benefit to a cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param softwareAssuranceChangeRequest Software Assurance Change Request Payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of cluster details.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ClusterInner> beginExtendSoftwareAssuranceBenefitAsync(
+ String resourceGroupName,
+ String clusterName,
+ SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ extendSoftwareAssuranceBenefitWithResponseAsync(
+ resourceGroupName, clusterName, softwareAssuranceChangeRequest, context);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), ClusterInner.class, ClusterInner.class, context);
+ }
+
+ /**
+ * Extends Software Assurance Benefit to a cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param softwareAssuranceChangeRequest Software Assurance Change Request Payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of cluster details.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ClusterInner> beginExtendSoftwareAssuranceBenefit(
+ String resourceGroupName, String clusterName, SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest) {
+ return beginExtendSoftwareAssuranceBenefitAsync(resourceGroupName, clusterName, softwareAssuranceChangeRequest)
+ .getSyncPoller();
+ }
+
+ /**
+ * Extends Software Assurance Benefit to a cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param softwareAssuranceChangeRequest Software Assurance Change Request Payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of cluster details.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ClusterInner> beginExtendSoftwareAssuranceBenefit(
+ String resourceGroupName,
+ String clusterName,
+ SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest,
+ Context context) {
+ return beginExtendSoftwareAssuranceBenefitAsync(
+ resourceGroupName, clusterName, softwareAssuranceChangeRequest, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Extends Software Assurance Benefit to a cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param softwareAssuranceChangeRequest Software Assurance Change Request Payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cluster details on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono extendSoftwareAssuranceBenefitAsync(
+ String resourceGroupName, String clusterName, SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest) {
+ return beginExtendSoftwareAssuranceBenefitAsync(resourceGroupName, clusterName, softwareAssuranceChangeRequest)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Extends Software Assurance Benefit to a cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param softwareAssuranceChangeRequest Software Assurance Change Request Payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cluster details on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono extendSoftwareAssuranceBenefitAsync(
+ String resourceGroupName,
+ String clusterName,
+ SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest,
+ Context context) {
+ return beginExtendSoftwareAssuranceBenefitAsync(
+ resourceGroupName, clusterName, softwareAssuranceChangeRequest, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Extends Software Assurance Benefit to a cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param softwareAssuranceChangeRequest Software Assurance Change Request Payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cluster details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ClusterInner extendSoftwareAssuranceBenefit(
+ String resourceGroupName, String clusterName, SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest) {
+ return extendSoftwareAssuranceBenefitAsync(resourceGroupName, clusterName, softwareAssuranceChangeRequest)
+ .block();
+ }
+
+ /**
+ * Extends Software Assurance Benefit to a cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param softwareAssuranceChangeRequest Software Assurance Change Request Payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cluster details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ClusterInner extendSoftwareAssuranceBenefit(
+ String resourceGroupName,
+ String clusterName,
+ SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest,
+ Context context) {
+ return extendSoftwareAssuranceBenefitAsync(
+ resourceGroupName, clusterName, softwareAssuranceChangeRequest, context)
+ .block();
+ }
+
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -1762,7 +2073,8 @@ private Mono> listBySubscriptionNextSinglePageAsync(
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -1798,7 +2110,8 @@ private Mono> listBySubscriptionNextSinglePageAsync(
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -1834,7 +2147,8 @@ private Mono> listByResourceGroupNextSinglePageAsync
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClustersImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClustersImpl.java
index 980c49de2240..4ed9d1c9463c 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClustersImpl.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClustersImpl.java
@@ -15,6 +15,7 @@
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.SoftwareAssuranceChangeRequest;
import com.azure.resourcemanager.azurestackhci.models.UploadCertificateRequest;
public final class ClustersImpl implements Clusters {
@@ -114,6 +115,36 @@ public ClusterIdentityResponse createIdentity(String resourceGroupName, String c
}
}
+ public Cluster extendSoftwareAssuranceBenefit(
+ String resourceGroupName, String clusterName, SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest) {
+ ClusterInner inner =
+ this
+ .serviceClient()
+ .extendSoftwareAssuranceBenefit(resourceGroupName, clusterName, softwareAssuranceChangeRequest);
+ if (inner != null) {
+ return new ClusterImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Cluster extendSoftwareAssuranceBenefit(
+ String resourceGroupName,
+ String clusterName,
+ SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest,
+ Context context) {
+ ClusterInner inner =
+ this
+ .serviceClient()
+ .extendSoftwareAssuranceBenefit(
+ resourceGroupName, clusterName, softwareAssuranceChangeRequest, context);
+ if (inner != null) {
+ return new ClusterImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public Cluster getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ExtensionsClientImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ExtensionsClientImpl.java
index ea047f5486e1..a21c417ce018 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ExtensionsClientImpl.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ExtensionsClientImpl.java
@@ -1512,7 +1512,8 @@ public void delete(
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ *
The nextLink parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -1548,7 +1549,8 @@ private Mono> listByArcSettingNextSinglePageAsync(
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ActionType.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ActionType.java
index 2b1410993e7d..9a8ca4ae60a8 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ActionType.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ActionType.java
@@ -8,7 +8,7 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
-/** Defines values for ActionType. */
+/** Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */
public final class ActionType extends ExpandableStringEnum {
/** Static value Internal for ActionType. */
public static final ActionType INTERNAL = fromString("Internal");
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ArcSettingAggregateState.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ArcSettingAggregateState.java
index b784d7a58be9..5000846a04b0 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ArcSettingAggregateState.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ArcSettingAggregateState.java
@@ -8,7 +8,7 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
-/** Defines values for ArcSettingAggregateState. */
+/** Aggregate state of Arc agent across the nodes in this HCI cluster. */
public final class ArcSettingAggregateState extends ExpandableStringEnum {
/** Static value NotSpecified for ArcSettingAggregateState. */
public static final ArcSettingAggregateState NOT_SPECIFIED = fromString("NotSpecified");
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/Cluster.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/Cluster.java
index 1bc5810040be..14f0c0a65304 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/Cluster.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/Cluster.java
@@ -111,6 +111,13 @@ public interface Cluster {
*/
String aadServicePrincipalObjectId();
+ /**
+ * Gets the softwareAssuranceProperties property: Software Assurance properties of the cluster.
+ *
+ * @return the softwareAssuranceProperties value.
+ */
+ SoftwareAssuranceProperties softwareAssuranceProperties();
+
/**
* Gets the desiredProperties property: Desired properties of the cluster.
*
@@ -246,6 +253,7 @@ interface WithCreate
DefinitionStages.WithAadTenantId,
DefinitionStages.WithAadApplicationObjectId,
DefinitionStages.WithAadServicePrincipalObjectId,
+ DefinitionStages.WithSoftwareAssuranceProperties,
DefinitionStages.WithDesiredProperties {
/**
* Executes the create request.
@@ -323,6 +331,16 @@ interface WithAadServicePrincipalObjectId {
*/
WithCreate withAadServicePrincipalObjectId(String aadServicePrincipalObjectId);
}
+ /** The stage of the Cluster definition allowing to specify softwareAssuranceProperties. */
+ interface WithSoftwareAssuranceProperties {
+ /**
+ * Specifies the softwareAssuranceProperties property: Software Assurance properties of the cluster..
+ *
+ * @param softwareAssuranceProperties Software Assurance properties of the cluster.
+ * @return the next definition stage.
+ */
+ WithCreate withSoftwareAssuranceProperties(SoftwareAssuranceProperties softwareAssuranceProperties);
+ }
/** The stage of the Cluster definition allowing to specify desiredProperties. */
interface WithDesiredProperties {
/**
@@ -471,4 +489,28 @@ interface WithDesiredProperties {
* @return cluster Identity details.
*/
ClusterIdentityResponse createIdentity(Context context);
+
+ /**
+ * Extends Software Assurance Benefit to a cluster.
+ *
+ * @param softwareAssuranceChangeRequest Software Assurance Change Request Payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cluster details.
+ */
+ Cluster extendSoftwareAssuranceBenefit(SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest);
+
+ /**
+ * Extends Software Assurance Benefit to a cluster.
+ *
+ * @param softwareAssuranceChangeRequest Software Assurance Change Request Payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cluster details.
+ */
+ Cluster extendSoftwareAssuranceBenefit(
+ SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest, Context context);
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ClusterNode.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ClusterNode.java
index 1d7a5a571ed4..09630b47efcb 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ClusterNode.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ClusterNode.java
@@ -28,6 +28,12 @@ public final class ClusterNode {
@JsonProperty(value = "windowsServerSubscription", access = JsonProperty.Access.WRITE_ONLY)
private WindowsServerSubscription windowsServerSubscription;
+ /*
+ * Type of the cluster node hardware.
+ */
+ @JsonProperty(value = "nodeType", access = JsonProperty.Access.WRITE_ONLY)
+ private ClusterNodeType nodeType;
+
/*
* Manufacturer of the cluster node hardware.
*/
@@ -52,6 +58,12 @@ public final class ClusterNode {
@JsonProperty(value = "osVersion", access = JsonProperty.Access.WRITE_ONLY)
private String osVersion;
+ /*
+ * Display version of the operating system running on the cluster node.
+ */
+ @JsonProperty(value = "osDisplayVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String osDisplayVersion;
+
/*
* Immutable id of the cluster node.
*/
@@ -97,6 +109,15 @@ public WindowsServerSubscription windowsServerSubscription() {
return this.windowsServerSubscription;
}
+ /**
+ * Get the nodeType property: Type of the cluster node hardware.
+ *
+ * @return the nodeType value.
+ */
+ public ClusterNodeType nodeType() {
+ return this.nodeType;
+ }
+
/**
* Get the manufacturer property: Manufacturer of the cluster node hardware.
*
@@ -133,6 +154,15 @@ public String osVersion() {
return this.osVersion;
}
+ /**
+ * Get the osDisplayVersion property: Display version of the operating system running on the cluster node.
+ *
+ * @return the osDisplayVersion value.
+ */
+ public String osDisplayVersion() {
+ return this.osDisplayVersion;
+ }
+
/**
* Get the serialNumber property: Immutable id of the cluster node.
*
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ClusterNodeType.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ClusterNodeType.java
new file mode 100644
index 000000000000..07554047c4ee
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ClusterNodeType.java
@@ -0,0 +1,38 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Type of the cluster node hardware. */
+public final class ClusterNodeType extends ExpandableStringEnum {
+ /** Static value FirstParty for ClusterNodeType. */
+ public static final ClusterNodeType FIRST_PARTY = fromString("FirstParty");
+
+ /** Static value ThirdParty for ClusterNodeType. */
+ public static final ClusterNodeType THIRD_PARTY = fromString("ThirdParty");
+
+ /**
+ * Creates or finds a ClusterNodeType from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding ClusterNodeType.
+ */
+ @JsonCreator
+ public static ClusterNodeType fromString(String name) {
+ return fromString(name, ClusterNodeType.class);
+ }
+
+ /**
+ * Gets known ClusterNodeType values.
+ *
+ * @return known ClusterNodeType values.
+ */
+ public static Collection values() {
+ return values(ClusterNodeType.class);
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/Clusters.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/Clusters.java
index 989e69c94dfc..8f110c160698 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/Clusters.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/Clusters.java
@@ -156,6 +156,38 @@ void uploadCertificate(
*/
ClusterIdentityResponse createIdentity(String resourceGroupName, String clusterName, Context context);
+ /**
+ * Extends Software Assurance Benefit to a cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param softwareAssuranceChangeRequest Software Assurance Change Request Payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cluster details.
+ */
+ Cluster extendSoftwareAssuranceBenefit(
+ String resourceGroupName, String clusterName, SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest);
+
+ /**
+ * Extends Software Assurance Benefit to a cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param softwareAssuranceChangeRequest Software Assurance Change Request Payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cluster details.
+ */
+ Cluster extendSoftwareAssuranceBenefit(
+ String resourceGroupName,
+ String clusterName,
+ SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest,
+ Context context);
+
/**
* Get HCI cluster.
*
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/DiagnosticLevel.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/DiagnosticLevel.java
index 055016a21b28..6744b640b7b4 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/DiagnosticLevel.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/DiagnosticLevel.java
@@ -8,7 +8,7 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
-/** Defines values for DiagnosticLevel. */
+/** Desired level of diagnostic data emitted by the cluster. */
public final class DiagnosticLevel extends ExpandableStringEnum {
/** Static value Off for DiagnosticLevel. */
public static final DiagnosticLevel OFF = fromString("Off");
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ExtensionAggregateState.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ExtensionAggregateState.java
index 23c5dfbc409d..0f005c670321 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ExtensionAggregateState.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ExtensionAggregateState.java
@@ -8,7 +8,7 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
-/** Defines values for ExtensionAggregateState. */
+/** Aggregate state of Arc Extensions across the nodes in this HCI cluster. */
public final class ExtensionAggregateState extends ExpandableStringEnum {
/** Static value NotSpecified for ExtensionAggregateState. */
public static final ExtensionAggregateState NOT_SPECIFIED = fromString("NotSpecified");
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ImdsAttestation.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ImdsAttestation.java
index c3ca4a6a0bcf..ed88c23b9381 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ImdsAttestation.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ImdsAttestation.java
@@ -8,7 +8,7 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
-/** Defines values for ImdsAttestation. */
+/** IMDS attestation status of the cluster. */
public final class ImdsAttestation extends ExpandableStringEnum {
/** Static value Disabled for ImdsAttestation. */
public static final ImdsAttestation DISABLED = fromString("Disabled");
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/NodeArcState.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/NodeArcState.java
index c4f967773edf..6a23b63cbd08 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/NodeArcState.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/NodeArcState.java
@@ -8,7 +8,7 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
-/** Defines values for NodeArcState. */
+/** State of Arc agent in this node. */
public final class NodeArcState extends ExpandableStringEnum {
/** Static value NotSpecified for NodeArcState. */
public static final NodeArcState NOT_SPECIFIED = fromString("NotSpecified");
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/NodeExtensionState.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/NodeExtensionState.java
index c3394d36855f..e5991925f763 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/NodeExtensionState.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/NodeExtensionState.java
@@ -8,7 +8,7 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
-/** Defines values for NodeExtensionState. */
+/** State of Arc Extension in this node. */
public final class NodeExtensionState extends ExpandableStringEnum {
/** Static value NotSpecified for NodeExtensionState. */
public static final NodeExtensionState NOT_SPECIFIED = fromString("NotSpecified");
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/Operation.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/Operation.java
index 8a8c66e2aafe..a168be0e4753 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/Operation.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/Operation.java
@@ -7,20 +7,23 @@
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** REST API Operation Details of a REST API operation, returned from the Resource Provider Operations API. */
+/**
+ * REST API Operation
+ *
+ * Details of a REST API operation, returned from the Resource Provider Operations API.
+ */
@Fluent
public final class Operation {
/*
- * The name of the operation, as per Resource-Based Access Control (RBAC).
- * Examples: "Microsoft.Compute/virtualMachines/write",
- * "Microsoft.Compute/virtualMachines/capture/action"
+ * The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;
/*
- * Whether the operation applies to data-plane. This is "true" for
- * data-plane operations and "false" for ARM/control-plane operations.
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for
+ * ARM/control-plane operations.
*/
@JsonProperty(value = "isDataAction", access = JsonProperty.Access.WRITE_ONLY)
private Boolean isDataAction;
@@ -32,15 +35,14 @@ public final class Operation {
private OperationDisplay display;
/*
- * The intended executor of the operation; as in Resource Based Access
- * Control (RBAC) and audit logs UX. Default value is "user,system"
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
+ * value is "user,system"
*/
@JsonProperty(value = "origin", access = JsonProperty.Access.WRITE_ONLY)
private Origin origin;
/*
- * Enum. Indicates the action type. "Internal" refers to actions that are
- * for internal only APIs.
+ * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
*/
@JsonProperty(value = "actionType", access = JsonProperty.Access.WRITE_ONLY)
private ActionType actionType;
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/OperationDisplay.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/OperationDisplay.java
index 75a95b413ce4..aeb53f51ff5a 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/OperationDisplay.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/OperationDisplay.java
@@ -11,30 +11,28 @@
@Immutable
public final class OperationDisplay {
/*
- * The localized friendly form of the resource provider name, e.g.
- * "Microsoft Monitoring Insights" or "Microsoft Compute".
+ * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft
+ * Compute".
*/
@JsonProperty(value = "provider", access = JsonProperty.Access.WRITE_ONLY)
private String provider;
/*
- * The localized friendly name of the resource type related to this
- * operation. E.g. "Virtual Machines" or "Job Schedule Collections".
+ * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job
+ * Schedule Collections".
*/
@JsonProperty(value = "resource", access = JsonProperty.Access.WRITE_ONLY)
private String resource;
/*
- * The concise, localized friendly name for the operation; suitable for
- * dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual
- * Machine".
+ * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual
+ * Machine", "Restart Virtual Machine".
*/
@JsonProperty(value = "operation", access = JsonProperty.Access.WRITE_ONLY)
private String operation;
/*
- * The short, localized friendly description of the operation; suitable for
- * tool tips and detailed views.
+ * The short, localized friendly description of the operation; suitable for tool tips and detailed views.
*/
@JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY)
private String description;
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/Origin.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/Origin.java
index 5eb928fb9ec9..5fba491c43c0 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/Origin.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/Origin.java
@@ -8,7 +8,10 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
-/** Defines values for Origin. */
+/**
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value
+ * is "user,system".
+ */
public final class Origin extends ExpandableStringEnum {
/** Static value user for Origin. */
public static final Origin USER = fromString("user");
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/PerNodeExtensionState.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/PerNodeExtensionState.java
index 54a16e384b67..dba56bd51ddc 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/PerNodeExtensionState.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/PerNodeExtensionState.java
@@ -17,8 +17,7 @@ public final class PerNodeExtensionState {
private String name;
/*
- * Fully qualified resource ID for the particular Arc Extension on this
- * node.
+ * Fully qualified resource ID for the particular Arc Extension on this node.
*/
@JsonProperty(value = "extension", access = JsonProperty.Access.WRITE_ONLY)
private String extension;
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ProvisioningState.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ProvisioningState.java
index 117f3584ed15..d62c0d36a79b 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ProvisioningState.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/ProvisioningState.java
@@ -8,7 +8,7 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
-/** Defines values for ProvisioningState. */
+/** Provisioning state of the ArcSetting proxy resource. */
public final class ProvisioningState extends ExpandableStringEnum {
/** Static value Succeeded for ProvisioningState. */
public static final ProvisioningState SUCCEEDED = fromString("Succeeded");
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/SoftwareAssuranceChangeRequest.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/SoftwareAssuranceChangeRequest.java
new file mode 100644
index 000000000000..6e38460b6372
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/SoftwareAssuranceChangeRequest.java
@@ -0,0 +1,49 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The SoftwareAssuranceChangeRequest model. */
+@Fluent
+public final class SoftwareAssuranceChangeRequest {
+ /*
+ * The properties property.
+ */
+ @JsonProperty(value = "properties")
+ private SoftwareAssuranceChangeRequestProperties properties;
+
+ /**
+ * Get the properties property: The properties property.
+ *
+ * @return the properties value.
+ */
+ public SoftwareAssuranceChangeRequestProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The properties property.
+ *
+ * @param properties the properties value to set.
+ * @return the SoftwareAssuranceChangeRequest object itself.
+ */
+ public SoftwareAssuranceChangeRequest withProperties(SoftwareAssuranceChangeRequestProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/SoftwareAssuranceChangeRequestProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/SoftwareAssuranceChangeRequestProperties.java
new file mode 100644
index 000000000000..4d617747b6e2
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/SoftwareAssuranceChangeRequestProperties.java
@@ -0,0 +1,47 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The SoftwareAssuranceChangeRequestProperties model. */
+@Fluent
+public final class SoftwareAssuranceChangeRequestProperties {
+ /*
+ * Customer Intent for Software Assurance Benefit.
+ */
+ @JsonProperty(value = "softwareAssuranceIntent")
+ private SoftwareAssuranceIntent softwareAssuranceIntent;
+
+ /**
+ * Get the softwareAssuranceIntent property: Customer Intent for Software Assurance Benefit.
+ *
+ * @return the softwareAssuranceIntent value.
+ */
+ public SoftwareAssuranceIntent softwareAssuranceIntent() {
+ return this.softwareAssuranceIntent;
+ }
+
+ /**
+ * Set the softwareAssuranceIntent property: Customer Intent for Software Assurance Benefit.
+ *
+ * @param softwareAssuranceIntent the softwareAssuranceIntent value to set.
+ * @return the SoftwareAssuranceChangeRequestProperties object itself.
+ */
+ public SoftwareAssuranceChangeRequestProperties withSoftwareAssuranceIntent(
+ SoftwareAssuranceIntent softwareAssuranceIntent) {
+ this.softwareAssuranceIntent = softwareAssuranceIntent;
+ 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/models/SoftwareAssuranceIntent.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/SoftwareAssuranceIntent.java
new file mode 100644
index 000000000000..1a0a08e94146
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/SoftwareAssuranceIntent.java
@@ -0,0 +1,38 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Customer Intent for Software Assurance Benefit. */
+public final class SoftwareAssuranceIntent extends ExpandableStringEnum {
+ /** Static value Enable for SoftwareAssuranceIntent. */
+ public static final SoftwareAssuranceIntent ENABLE = fromString("Enable");
+
+ /** Static value Disable for SoftwareAssuranceIntent. */
+ public static final SoftwareAssuranceIntent DISABLE = fromString("Disable");
+
+ /**
+ * Creates or finds a SoftwareAssuranceIntent from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding SoftwareAssuranceIntent.
+ */
+ @JsonCreator
+ public static SoftwareAssuranceIntent fromString(String name) {
+ return fromString(name, SoftwareAssuranceIntent.class);
+ }
+
+ /**
+ * Gets known SoftwareAssuranceIntent values.
+ *
+ * @return known SoftwareAssuranceIntent values.
+ */
+ public static Collection values() {
+ return values(SoftwareAssuranceIntent.class);
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/SoftwareAssuranceProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/SoftwareAssuranceProperties.java
new file mode 100644
index 000000000000..713b9a011162
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/SoftwareAssuranceProperties.java
@@ -0,0 +1,88 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Software Assurance properties of the cluster. */
+@Fluent
+public final class SoftwareAssuranceProperties {
+ /*
+ * Status of the Software Assurance for the cluster.
+ */
+ @JsonProperty(value = "softwareAssuranceStatus")
+ private SoftwareAssuranceStatus softwareAssuranceStatus;
+
+ /*
+ * Customer Intent for Software Assurance Benefit.
+ */
+ @JsonProperty(value = "softwareAssuranceIntent")
+ private SoftwareAssuranceIntent softwareAssuranceIntent;
+
+ /*
+ * TimeStamp denoting the latest SA benefit applicability is validated.
+ */
+ @JsonProperty(value = "lastUpdated", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime lastUpdated;
+
+ /**
+ * Get the softwareAssuranceStatus property: Status of the Software Assurance for the cluster.
+ *
+ * @return the softwareAssuranceStatus value.
+ */
+ public SoftwareAssuranceStatus softwareAssuranceStatus() {
+ return this.softwareAssuranceStatus;
+ }
+
+ /**
+ * Set the softwareAssuranceStatus property: Status of the Software Assurance for the cluster.
+ *
+ * @param softwareAssuranceStatus the softwareAssuranceStatus value to set.
+ * @return the SoftwareAssuranceProperties object itself.
+ */
+ public SoftwareAssuranceProperties withSoftwareAssuranceStatus(SoftwareAssuranceStatus softwareAssuranceStatus) {
+ this.softwareAssuranceStatus = softwareAssuranceStatus;
+ return this;
+ }
+
+ /**
+ * Get the softwareAssuranceIntent property: Customer Intent for Software Assurance Benefit.
+ *
+ * @return the softwareAssuranceIntent value.
+ */
+ public SoftwareAssuranceIntent softwareAssuranceIntent() {
+ return this.softwareAssuranceIntent;
+ }
+
+ /**
+ * Set the softwareAssuranceIntent property: Customer Intent for Software Assurance Benefit.
+ *
+ * @param softwareAssuranceIntent the softwareAssuranceIntent value to set.
+ * @return the SoftwareAssuranceProperties object itself.
+ */
+ public SoftwareAssuranceProperties withSoftwareAssuranceIntent(SoftwareAssuranceIntent softwareAssuranceIntent) {
+ this.softwareAssuranceIntent = softwareAssuranceIntent;
+ return this;
+ }
+
+ /**
+ * Get the lastUpdated property: TimeStamp denoting the latest SA benefit applicability is validated.
+ *
+ * @return the lastUpdated value.
+ */
+ public OffsetDateTime lastUpdated() {
+ return this.lastUpdated;
+ }
+
+ /**
+ * 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/models/SoftwareAssuranceStatus.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/SoftwareAssuranceStatus.java
new file mode 100644
index 000000000000..b7e0e8bc7fb0
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/SoftwareAssuranceStatus.java
@@ -0,0 +1,38 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Status of the Software Assurance for the cluster. */
+public final class SoftwareAssuranceStatus extends ExpandableStringEnum {
+ /** Static value Enabled for SoftwareAssuranceStatus. */
+ public static final SoftwareAssuranceStatus ENABLED = fromString("Enabled");
+
+ /** Static value Disabled for SoftwareAssuranceStatus. */
+ public static final SoftwareAssuranceStatus DISABLED = fromString("Disabled");
+
+ /**
+ * Creates or finds a SoftwareAssuranceStatus from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding SoftwareAssuranceStatus.
+ */
+ @JsonCreator
+ public static SoftwareAssuranceStatus fromString(String name) {
+ return fromString(name, SoftwareAssuranceStatus.class);
+ }
+
+ /**
+ * Gets known SoftwareAssuranceStatus values.
+ *
+ * @return known SoftwareAssuranceStatus values.
+ */
+ public static Collection values() {
+ return values(SoftwareAssuranceStatus.class);
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/Status.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/Status.java
index 91733d95bf45..ff832a6d8a09 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/Status.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/Status.java
@@ -8,7 +8,7 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
-/** Defines values for Status. */
+/** Status of the cluster agent. */
public final class Status extends ExpandableStringEnum {
/** Static value NotYetRegistered for Status. */
public static final Status NOT_YET_REGISTERED = fromString("NotYetRegistered");
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/WindowsServerSubscription.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/WindowsServerSubscription.java
index 6d9da4e53ba7..176ee7fc1b2b 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/WindowsServerSubscription.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/models/WindowsServerSubscription.java
@@ -8,7 +8,7 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
-/** Defines values for WindowsServerSubscription. */
+/** Desired state of Windows Server Subscription. */
public final class WindowsServerSubscription extends ExpandableStringEnum {
/** Static value Disabled for WindowsServerSubscription. */
public static final WindowsServerSubscription DISABLED = fromString("Disabled");
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsCreateIdentitySamples.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsCreateIdentitySamples.java
index 47e9f75aa33b..6f99087460de 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsCreateIdentitySamples.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsCreateIdentitySamples.java
@@ -9,7 +9,7 @@
/** Samples for ArcSettings CreateIdentity. */
public final class ArcSettingsCreateIdentitySamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/CreateArcIdentity.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/CreateArcIdentity.json
*/
/**
* Sample code: Create Arc Identity.
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsCreateSamples.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsCreateSamples.java
index b0da37f7e07e..ecb8c618ed92 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsCreateSamples.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsCreateSamples.java
@@ -7,7 +7,7 @@
/** Samples for ArcSettings Create. */
public final class ArcSettingsCreateSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/PutArcSetting.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/PutArcSetting.json
*/
/**
* Sample code: Create ArcSetting.
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsDeleteSamples.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsDeleteSamples.java
index dd70b8317555..e8fc247c415b 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsDeleteSamples.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for ArcSettings Delete. */
public final class ArcSettingsDeleteSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/DeleteArcSetting.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/DeleteArcSetting.json
*/
/**
* Sample code: Delete ArcSetting.
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsGeneratePasswordSamples.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsGeneratePasswordSamples.java
index 066deffefc05..799b22d323d5 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsGeneratePasswordSamples.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsGeneratePasswordSamples.java
@@ -9,7 +9,7 @@
/** Samples for ArcSettings GeneratePassword. */
public final class ArcSettingsGeneratePasswordSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/GeneratePassword.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/GeneratePassword.json
*/
/**
* Sample code: Generate Password.
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsGetSamples.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsGetSamples.java
index 9b49a686cf00..b8b60343dfe1 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsGetSamples.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for ArcSettings Get. */
public final class ArcSettingsGetSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/GetArcSetting.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/GetArcSetting.json
*/
/**
* Sample code: Get ArcSetting.
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsListByClusterSamples.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsListByClusterSamples.java
index 840759606cea..308fcb56054e 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsListByClusterSamples.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsListByClusterSamples.java
@@ -9,7 +9,7 @@
/** Samples for ArcSettings ListByCluster. */
public final class ArcSettingsListByClusterSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/ListArcSettingsByCluster.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/ListArcSettingsByCluster.json
*/
/**
* Sample code: List ArcSetting resources by HCI Cluster.
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsUpdateSamples.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsUpdateSamples.java
index bfc08f7891a4..cb4b47c701be 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsUpdateSamples.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ArcSettingsUpdateSamples.java
@@ -13,7 +13,7 @@
/** Samples for ArcSettings Update. */
public final class ArcSettingsUpdateSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/PatchArcSetting.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/PatchArcSetting.json
*/
/**
* Sample code: Patch ArcSetting.
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersCreateIdentitySamples.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersCreateIdentitySamples.java
index 076cc9c75fbc..f988a43d2681 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersCreateIdentitySamples.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersCreateIdentitySamples.java
@@ -9,7 +9,7 @@
/** Samples for Clusters CreateIdentity. */
public final class ClustersCreateIdentitySamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/CreateClusterIdentity.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/CreateClusterIdentity.json
*/
/**
* Sample code: Create cluster Identity.
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersCreateSamples.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersCreateSamples.java
index 2e5a4bc4c68c..e923f1870c47 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersCreateSamples.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersCreateSamples.java
@@ -7,7 +7,7 @@
/** Samples for Clusters Create. */
public final class ClustersCreateSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/CreateCluster.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/CreateCluster.json
*/
/**
* Sample code: Create cluster.
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersDeleteSamples.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersDeleteSamples.java
index 087f8a22c28b..b399e5cbc250 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersDeleteSamples.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for Clusters Delete. */
public final class ClustersDeleteSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/DeleteCluster.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/DeleteCluster.json
*/
/**
* Sample code: Delete cluster.
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersExtendSoftwareAssuranceBenefitSamples.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersExtendSoftwareAssuranceBenefitSamples.java
new file mode 100644
index 000000000000..656015b0eacb
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersExtendSoftwareAssuranceBenefitSamples.java
@@ -0,0 +1,34 @@
+// 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.generated;
+
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.azurestackhci.models.SoftwareAssuranceChangeRequest;
+import com.azure.resourcemanager.azurestackhci.models.SoftwareAssuranceChangeRequestProperties;
+import com.azure.resourcemanager.azurestackhci.models.SoftwareAssuranceIntent;
+
+/** Samples for Clusters ExtendSoftwareAssuranceBenefit. */
+public final class ClustersExtendSoftwareAssuranceBenefitSamples {
+ /*
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/ExtendSoftwareAssuranceBenefit.json
+ */
+ /**
+ * Sample code: Create cluster Identity.
+ *
+ * @param manager Entry point to AzureStackHciManager.
+ */
+ public static void createClusterIdentity(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ manager
+ .clusters()
+ .extendSoftwareAssuranceBenefit(
+ "test-rg",
+ "myCluster",
+ new SoftwareAssuranceChangeRequest()
+ .withProperties(
+ new SoftwareAssuranceChangeRequestProperties()
+ .withSoftwareAssuranceIntent(SoftwareAssuranceIntent.ENABLE)),
+ Context.NONE);
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersGetByResourceGroupSamples.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersGetByResourceGroupSamples.java
index fb08e4f84c92..fd403c6d81be 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersGetByResourceGroupSamples.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersGetByResourceGroupSamples.java
@@ -9,7 +9,7 @@
/** Samples for Clusters GetByResourceGroup. */
public final class ClustersGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/GetCluster.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/GetCluster.json
*/
/**
* Sample code: Get cluster.
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersListByResourceGroupSamples.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersListByResourceGroupSamples.java
index 3bdd3e760971..0bf10d58507b 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersListByResourceGroupSamples.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersListByResourceGroupSamples.java
@@ -9,7 +9,7 @@
/** Samples for Clusters ListByResourceGroup. */
public final class ClustersListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/ListClustersByResourceGroup.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/ListClustersByResourceGroup.json
*/
/**
* Sample code: List clusters in a given resource group.
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersListSamples.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersListSamples.java
index 2d619de3c166..e8ffc66ef57c 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersListSamples.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersListSamples.java
@@ -9,7 +9,7 @@
/** Samples for Clusters List. */
public final class ClustersListSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/ListClustersBySubscription.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/ListClustersBySubscription.json
*/
/**
* Sample code: List clusters in a given subscription.
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersUpdateSamples.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersUpdateSamples.java
index 0604ed772ffc..8b55d60ae727 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersUpdateSamples.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersUpdateSamples.java
@@ -15,7 +15,7 @@
/** Samples for Clusters Update. */
public final class ClustersUpdateSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/UpdateCluster.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/UpdateCluster.json
*/
/**
* Sample code: Update cluster.
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersUploadCertificateSamples.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersUploadCertificateSamples.java
index e0b951ddce12..05e0929d3da8 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersUploadCertificateSamples.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ClustersUploadCertificateSamples.java
@@ -12,7 +12,7 @@
/** Samples for Clusters UploadCertificate. */
public final class ClustersUploadCertificateSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/UploadCertificate.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/UploadCertificate.json
*/
/**
* Sample code: Upload certificate.
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ExtensionsCreateSamples.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ExtensionsCreateSamples.java
index b25518c9e877..8d80c4c4067b 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ExtensionsCreateSamples.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ExtensionsCreateSamples.java
@@ -11,7 +11,7 @@
/** Samples for Extensions Create. */
public final class ExtensionsCreateSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/PutExtension.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/PutExtension.json
*/
/**
* Sample code: Create Arc Extension.
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ExtensionsDeleteSamples.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ExtensionsDeleteSamples.java
index e89be94c7633..31cf79684969 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ExtensionsDeleteSamples.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ExtensionsDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for Extensions Delete. */
public final class ExtensionsDeleteSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/DeleteExtension.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/DeleteExtension.json
*/
/**
* Sample code: Delete Arc Extension.
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ExtensionsGetSamples.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ExtensionsGetSamples.java
index 6cf05532d264..550e12786fde 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ExtensionsGetSamples.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ExtensionsGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for Extensions Get. */
public final class ExtensionsGetSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/GetExtension.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/GetExtension.json
*/
/**
* Sample code: Get ArcSettings Extension.
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ExtensionsListByArcSettingSamples.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ExtensionsListByArcSettingSamples.java
index 8206a6b61cd7..3f257755d4bd 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ExtensionsListByArcSettingSamples.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ExtensionsListByArcSettingSamples.java
@@ -9,7 +9,7 @@
/** Samples for Extensions ListByArcSetting. */
public final class ExtensionsListByArcSettingSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/ListExtensionsByArcSetting.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/ListExtensionsByArcSetting.json
*/
/**
* Sample code: List Extensions under ArcSetting resource.
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ExtensionsUpdateSamples.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ExtensionsUpdateSamples.java
index 382bea80ca75..04618efd9d9a 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ExtensionsUpdateSamples.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/ExtensionsUpdateSamples.java
@@ -13,7 +13,7 @@
/** Samples for Extensions Update. */
public final class ExtensionsUpdateSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/PatchExtension.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/PatchExtension.json
*/
/**
* Sample code: Update Arc Extension.
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/OperationsListSamples.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/OperationsListSamples.java
index 7dc158cda4c3..a44a162f5652 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/OperationsListSamples.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/samples/java/com/azure/resourcemanager/azurestackhci/generated/OperationsListSamples.java
@@ -9,7 +9,7 @@
/** Samples for Operations List. */
public final class OperationsListSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/ListOperations.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/ListOperations.json
*/
/**
* Sample code: Create cluster.