initializeDisableProcessAsync(
+ String resourceGroupName, String clusterName, String arcSettingName, Context context) {
+ return beginInitializeDisableProcessAsync(resourceGroupName, clusterName, arcSettingName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Initializes ARC Disable process on the cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void initializeDisableProcess(String resourceGroupName, String clusterName, String arcSettingName) {
+ initializeDisableProcessAsync(resourceGroupName, clusterName, arcSettingName).block();
+ }
+
+ /**
+ * Initializes ARC Disable process on the cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void initializeDisableProcess(
+ String resourceGroupName, String clusterName, String arcSettingName, Context context) {
+ initializeDisableProcessAsync(resourceGroupName, clusterName, arcSettingName, 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.
@@ -1610,7 +2052,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/ArcSettingsImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcSettingsImpl.java
index e7fc8d055b32..98ab568fe370 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcSettingsImpl.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcSettingsImpl.java
@@ -42,15 +42,6 @@ public PagedIterable listByCluster(String resourceGroupName, String
return Utils.mapPage(inner, inner1 -> new ArcSettingImpl(inner1, this.manager()));
}
- public ArcSetting get(String resourceGroupName, String clusterName, String arcSettingName) {
- ArcSettingInner inner = this.serviceClient().get(resourceGroupName, clusterName, arcSettingName);
- if (inner != null) {
- return new ArcSettingImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response getWithResponse(
String resourceGroupName, String clusterName, String arcSettingName, Context context) {
Response inner =
@@ -66,6 +57,15 @@ public Response getWithResponse(
}
}
+ public ArcSetting get(String resourceGroupName, String clusterName, String arcSettingName) {
+ ArcSettingInner inner = this.serviceClient().get(resourceGroupName, clusterName, arcSettingName);
+ if (inner != null) {
+ return new ArcSettingImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public void delete(String resourceGroupName, String clusterName, String arcSettingName) {
this.serviceClient().delete(resourceGroupName, clusterName, arcSettingName);
}
@@ -74,16 +74,6 @@ public void delete(String resourceGroupName, String clusterName, String arcSetti
this.serviceClient().delete(resourceGroupName, clusterName, arcSettingName, context);
}
- public PasswordCredential generatePassword(String resourceGroupName, String clusterName, String arcSettingName) {
- PasswordCredentialInner inner =
- this.serviceClient().generatePassword(resourceGroupName, clusterName, arcSettingName);
- if (inner != null) {
- return new PasswordCredentialImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response generatePasswordWithResponse(
String resourceGroupName, String clusterName, String arcSettingName, Context context) {
Response inner =
@@ -99,6 +89,16 @@ public Response generatePasswordWithResponse(
}
}
+ public PasswordCredential generatePassword(String resourceGroupName, String clusterName, String arcSettingName) {
+ PasswordCredentialInner inner =
+ this.serviceClient().generatePassword(resourceGroupName, clusterName, arcSettingName);
+ if (inner != null) {
+ return new PasswordCredentialImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public ArcIdentityResponse createIdentity(String resourceGroupName, String clusterName, String arcSettingName) {
ArcIdentityResponseInner inner =
this.serviceClient().createIdentity(resourceGroupName, clusterName, arcSettingName);
@@ -120,6 +120,44 @@ public ArcIdentityResponse createIdentity(
}
}
+ public Response consentAndInstallDefaultExtensionsWithResponse(
+ String resourceGroupName, String clusterName, String arcSettingName, Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .consentAndInstallDefaultExtensionsWithResponse(
+ resourceGroupName, clusterName, arcSettingName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new ArcSettingImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public ArcSetting consentAndInstallDefaultExtensions(
+ String resourceGroupName, String clusterName, String arcSettingName) {
+ ArcSettingInner inner =
+ this.serviceClient().consentAndInstallDefaultExtensions(resourceGroupName, clusterName, arcSettingName);
+ if (inner != null) {
+ return new ArcSettingImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void initializeDisableProcess(String resourceGroupName, String clusterName, String arcSettingName) {
+ this.serviceClient().initializeDisableProcess(resourceGroupName, clusterName, arcSettingName);
+ }
+
+ public void initializeDisableProcess(
+ String resourceGroupName, String clusterName, String arcSettingName, Context context) {
+ this.serviceClient().initializeDisableProcess(resourceGroupName, clusterName, arcSettingName, context);
+ }
+
public ArcSetting 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/AzureStackHciClientBuilder.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/AzureStackHciClientBuilder.java
index 31e4c5141f02..dafafa520ac6 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,
+ this.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..57e26c2e9943 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
@@ -26,7 +26,13 @@
import com.azure.resourcemanager.azurestackhci.fluent.AzureStackHciClient;
import com.azure.resourcemanager.azurestackhci.fluent.ClustersClient;
import com.azure.resourcemanager.azurestackhci.fluent.ExtensionsClient;
+import com.azure.resourcemanager.azurestackhci.fluent.OffersClient;
import com.azure.resourcemanager.azurestackhci.fluent.OperationsClient;
+import com.azure.resourcemanager.azurestackhci.fluent.PublishersClient;
+import com.azure.resourcemanager.azurestackhci.fluent.SkusClient;
+import com.azure.resourcemanager.azurestackhci.fluent.UpdateRunsClient;
+import com.azure.resourcemanager.azurestackhci.fluent.UpdateSummariesOperationsClient;
+import com.azure.resourcemanager.azurestackhci.fluent.UpdatesClient;
import java.io.IOException;
import java.lang.reflect.Type;
import java.nio.ByteBuffer;
@@ -147,6 +153,18 @@ public ExtensionsClient getExtensions() {
return this.extensions;
}
+ /** The OffersClient object to access its operations. */
+ private final OffersClient offers;
+
+ /**
+ * Gets the OffersClient object to access its operations.
+ *
+ * @return the OffersClient object.
+ */
+ public OffersClient getOffers() {
+ return this.offers;
+ }
+
/** The OperationsClient object to access its operations. */
private final OperationsClient operations;
@@ -159,6 +177,66 @@ public OperationsClient getOperations() {
return this.operations;
}
+ /** The PublishersClient object to access its operations. */
+ private final PublishersClient publishers;
+
+ /**
+ * Gets the PublishersClient object to access its operations.
+ *
+ * @return the PublishersClient object.
+ */
+ public PublishersClient getPublishers() {
+ return this.publishers;
+ }
+
+ /** The SkusClient object to access its operations. */
+ private final SkusClient skus;
+
+ /**
+ * Gets the SkusClient object to access its operations.
+ *
+ * @return the SkusClient object.
+ */
+ public SkusClient getSkus() {
+ return this.skus;
+ }
+
+ /** The UpdateRunsClient object to access its operations. */
+ private final UpdateRunsClient updateRuns;
+
+ /**
+ * Gets the UpdateRunsClient object to access its operations.
+ *
+ * @return the UpdateRunsClient object.
+ */
+ public UpdateRunsClient getUpdateRuns() {
+ return this.updateRuns;
+ }
+
+ /** The UpdateSummariesOperationsClient object to access its operations. */
+ private final UpdateSummariesOperationsClient updateSummariesOperations;
+
+ /**
+ * Gets the UpdateSummariesOperationsClient object to access its operations.
+ *
+ * @return the UpdateSummariesOperationsClient object.
+ */
+ public UpdateSummariesOperationsClient getUpdateSummariesOperations() {
+ return this.updateSummariesOperations;
+ }
+
+ /** The UpdatesClient object to access its operations. */
+ private final UpdatesClient updates;
+
+ /**
+ * Gets the UpdatesClient object to access its operations.
+ *
+ * @return the UpdatesClient object.
+ */
+ public UpdatesClient getUpdates() {
+ return this.updates;
+ }
+
/**
* Initializes an instance of AzureStackHciClient client.
*
@@ -181,11 +259,17 @@ public OperationsClient getOperations() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2022-05-01";
+ this.apiVersion = "2023-06-01";
this.arcSettings = new ArcSettingsClientImpl(this);
this.clusters = new ClustersClientImpl(this);
this.extensions = new ExtensionsClientImpl(this);
+ this.offers = new OffersClientImpl(this);
this.operations = new OperationsClientImpl(this);
+ this.publishers = new PublishersClientImpl(this);
+ this.skus = new SkusClientImpl(this);
+ this.updateRuns = new UpdateRunsClientImpl(this);
+ this.updateSummariesOperations = new UpdateSummariesOperationsClientImpl(this);
+ this.updates = new UpdatesClientImpl(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..2c9b9d3b9129 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
@@ -13,12 +13,17 @@
import com.azure.resourcemanager.azurestackhci.models.ClusterIdentityResponse;
import com.azure.resourcemanager.azurestackhci.models.ClusterPatch;
import com.azure.resourcemanager.azurestackhci.models.ClusterReportedProperties;
+import com.azure.resourcemanager.azurestackhci.models.ManagedServiceIdentityType;
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 com.azure.resourcemanager.azurestackhci.models.UserAssignedIdentity;
import java.time.OffsetDateTime;
import java.util.Collections;
import java.util.Map;
+import java.util.UUID;
public final class ClusterImpl implements Cluster, Cluster.Definition, Cluster.Update {
private ClusterInner innerObject;
@@ -54,6 +59,27 @@ public SystemData systemData() {
return this.innerModel().systemData();
}
+ public UUID principalId() {
+ return this.innerModel().principalId();
+ }
+
+ public UUID tenantId() {
+ return this.innerModel().tenantId();
+ }
+
+ public ManagedServiceIdentityType typeIdentityType() {
+ return this.innerModel().typeIdentityType();
+ }
+
+ public Map userAssignedIdentities() {
+ Map inner = this.innerModel().userAssignedIdentities();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
public ProvisioningState provisioningState() {
return this.innerModel().provisioningState();
}
@@ -86,6 +112,10 @@ public String aadServicePrincipalObjectId() {
return this.innerModel().aadServicePrincipalObjectId();
}
+ public SoftwareAssuranceProperties softwareAssuranceProperties() {
+ return this.innerModel().softwareAssuranceProperties();
+ }
+
public ClusterDesiredProperties desiredProperties() {
return this.innerModel().desiredProperties();
}
@@ -118,6 +148,10 @@ public String serviceEndpoint() {
return this.innerModel().serviceEndpoint();
}
+ public String resourceProviderObjectId() {
+ return this.innerModel().resourceProviderObjectId();
+ }
+
public Region region() {
return Region.fromName(this.regionName());
}
@@ -243,6 +277,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;
@@ -263,6 +310,21 @@ public ClusterImpl withTags(Map tags) {
}
}
+ public ClusterImpl withTypeIdentityType(ManagedServiceIdentityType typeIdentityType) {
+ this.innerModel().withTypeIdentityType(typeIdentityType);
+ return this;
+ }
+
+ public ClusterImpl withUserAssignedIdentities(Map userAssignedIdentities) {
+ if (isInCreateMode()) {
+ this.innerModel().withUserAssignedIdentities(userAssignedIdentities);
+ return this;
+ } else {
+ this.updateCluster.withUserAssignedIdentities(userAssignedIdentities);
+ return this;
+ }
+ }
+
public ClusterImpl withCloudManagementEndpoint(String cloudManagementEndpoint) {
if (isInCreateMode()) {
this.innerModel().withCloudManagementEndpoint(cloudManagementEndpoint);
@@ -303,6 +365,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);
@@ -313,6 +380,11 @@ public ClusterImpl withDesiredProperties(ClusterDesiredProperties desiredPropert
}
}
+ public ClusterImpl withType(ManagedServiceIdentityType type) {
+ this.updateCluster.withType(type);
+ return this;
+ }
+
private boolean isInCreateMode() {
return this.innerModel().id() == null;
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClustersClientImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ClustersClientImpl.java
index d04da2f86403..30d6772fe29f 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;
@@ -67,7 +68,7 @@ public final class ClustersClientImpl implements ClustersClient {
*/
@Host("{$host}")
@ServiceInterface(name = "AzureStackHciClientC")
- private interface ClustersService {
+ public interface ClustersService {
@Headers({"Content-Type: application/json"})
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/clusters")
@ExpectedResponses({200})
@@ -81,8 +82,7 @@ Mono> list(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI"
- + "/clusters")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByResourceGroup(
@@ -95,8 +95,7 @@ Mono> listByResourceGroup(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI"
- + "/clusters/{clusterName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> getByResourceGroup(
@@ -110,8 +109,7 @@ Mono> getByResourceGroup(
@Headers({"Content-Type: application/json"})
@Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI"
- + "/clusters/{clusterName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> create(
@@ -126,8 +124,7 @@ Mono> create(
@Headers({"Content-Type: application/json"})
@Patch(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI"
- + "/clusters/{clusterName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> update(
@@ -142,8 +139,7 @@ Mono> update(
@Headers({"Content-Type: application/json"})
@Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI"
- + "/clusters/{clusterName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}")
@ExpectedResponses({200, 202, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> delete(
@@ -157,8 +153,7 @@ Mono>> delete(
@Headers({"Content-Type: application/json"})
@Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI"
- + "/clusters/{clusterName}/uploadCertificate")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/uploadCertificate")
@ExpectedResponses({202})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> uploadCertificate(
@@ -173,8 +168,7 @@ Mono>> uploadCertificate(
@Headers({"Content-Type: application/json"})
@Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI"
- + "/clusters/{clusterName}/createClusterIdentity")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/createClusterIdentity")
@ExpectedResponses({200, 202})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> createIdentity(
@@ -186,6 +180,21 @@ 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})
@@ -626,14 +635,16 @@ private Mono getByResourceGroupAsync(String resourceGroupName, Str
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return hCI cluster.
+ * @return hCI cluster along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ClusterInner getByResourceGroup(String resourceGroupName, String clusterName) {
- return getByResourceGroupAsync(resourceGroupName, clusterName).block();
+ public Response getByResourceGroupWithResponse(
+ String resourceGroupName, String clusterName, Context context) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, clusterName, context).block();
}
/**
@@ -641,16 +652,14 @@ public ClusterInner getByResourceGroup(String resourceGroupName, String clusterN
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return hCI cluster along with {@link Response}.
+ * @return hCI cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getByResourceGroupWithResponse(
- String resourceGroupName, String clusterName, Context context) {
- return getByResourceGroupWithResponseAsync(resourceGroupName, clusterName, context).block();
+ public ClusterInner getByResourceGroup(String resourceGroupName, String clusterName) {
+ return getByResourceGroupWithResponse(resourceGroupName, clusterName, Context.NONE).getValue();
}
/**
@@ -784,14 +793,16 @@ private Mono createAsync(String resourceGroupName, String clusterN
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param cluster Details of the HCI cluster.
+ * @param 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.
+ * @return cluster details along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ClusterInner create(String resourceGroupName, String clusterName, ClusterInner cluster) {
- return createAsync(resourceGroupName, clusterName, cluster).block();
+ public Response createWithResponse(
+ String resourceGroupName, String clusterName, ClusterInner cluster, Context context) {
+ return createWithResponseAsync(resourceGroupName, clusterName, cluster, context).block();
}
/**
@@ -800,16 +811,14 @@ public ClusterInner create(String resourceGroupName, String clusterName, Cluster
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param cluster Details of the HCI cluster.
- * @param 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}.
+ * @return cluster details.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response createWithResponse(
- String resourceGroupName, String clusterName, ClusterInner cluster, Context context) {
- return createWithResponseAsync(resourceGroupName, clusterName, cluster, context).block();
+ public ClusterInner create(String resourceGroupName, String clusterName, ClusterInner cluster) {
+ return createWithResponse(resourceGroupName, clusterName, cluster, Context.NONE).getValue();
}
/**
@@ -943,14 +952,16 @@ private Mono updateAsync(String resourceGroupName, String clusterN
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param cluster Details of the HCI cluster.
+ * @param 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.
+ * @return cluster details along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ClusterInner update(String resourceGroupName, String clusterName, ClusterPatch cluster) {
- return updateAsync(resourceGroupName, clusterName, cluster).block();
+ public Response updateWithResponse(
+ String resourceGroupName, String clusterName, ClusterPatch cluster, Context context) {
+ return updateWithResponseAsync(resourceGroupName, clusterName, cluster, context).block();
}
/**
@@ -959,16 +970,14 @@ public ClusterInner update(String resourceGroupName, String clusterName, Cluster
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param cluster Details of the HCI cluster.
- * @param 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}.
+ * @return cluster details.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response updateWithResponse(
- String resourceGroupName, String clusterName, ClusterPatch cluster, Context context) {
- return updateWithResponseAsync(resourceGroupName, clusterName, cluster, context).block();
+ public ClusterInner update(String resourceGroupName, String clusterName, ClusterPatch cluster) {
+ return updateWithResponse(resourceGroupName, clusterName, cluster, Context.NONE).getValue();
}
/**
@@ -1116,7 +1125,7 @@ private PollerFlux, Void> beginDeleteAsync(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName) {
- return beginDeleteAsync(resourceGroupName, clusterName).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, clusterName).getSyncPoller();
}
/**
@@ -1133,7 +1142,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName,
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String clusterName, Context context) {
- return beginDeleteAsync(resourceGroupName, clusterName, context).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, clusterName, context).getSyncPoller();
}
/**
@@ -1375,7 +1384,9 @@ private PollerFlux, Void> beginUploadCertificateAsync(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginUploadCertificate(
String resourceGroupName, String clusterName, UploadCertificateRequest uploadCertificateRequest) {
- return beginUploadCertificateAsync(resourceGroupName, clusterName, uploadCertificateRequest).getSyncPoller();
+ return this
+ .beginUploadCertificateAsync(resourceGroupName, clusterName, uploadCertificateRequest)
+ .getSyncPoller();
}
/**
@@ -1396,7 +1407,8 @@ public SyncPoller, Void> beginUploadCertificate(
String clusterName,
UploadCertificateRequest uploadCertificateRequest,
Context context) {
- return beginUploadCertificateAsync(resourceGroupName, clusterName, uploadCertificateRequest, context)
+ return this
+ .beginUploadCertificateAsync(resourceGroupName, clusterName, uploadCertificateRequest, context)
.getSyncPoller();
}
@@ -1636,7 +1648,7 @@ private PollerFlux, ClusterIdentityResp
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ClusterIdentityResponseInner> beginCreateIdentity(
String resourceGroupName, String clusterName) {
- return beginCreateIdentityAsync(resourceGroupName, clusterName).getSyncPoller();
+ return this.beginCreateIdentityAsync(resourceGroupName, clusterName).getSyncPoller();
}
/**
@@ -1653,7 +1665,7 @@ public SyncPoller, ClusterIdentityRespo
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ClusterIdentityResponseInner> beginCreateIdentity(
String resourceGroupName, String clusterName, Context context) {
- return beginCreateIdentityAsync(resourceGroupName, clusterName, context).getSyncPoller();
+ return this.beginCreateIdentityAsync(resourceGroupName, clusterName, context).getSyncPoller();
}
/**
@@ -1723,10 +1735,306 @@ 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 this
+ .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 this
+ .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 +2070,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 +2107,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 +2144,8 @@ private Mono