diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/CHANGELOG.md b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/CHANGELOG.md
index 681c9bca3ed6..cd01427d9c1c 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/CHANGELOG.md
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/CHANGELOG.md
@@ -1,14 +1,90 @@
# Release History
-## 1.0.0-beta.3 (Unreleased)
+## 1.0.0-beta.3 (2022-05-25)
-### Features Added
+- Azure Resource Manager AzureStackHci client library for Java. This package contains Microsoft Azure SDK for AzureStackHci Management SDK. Azure Stack HCI management service. Package tag package-2022-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Breaking Changes
-### Bugs Fixed
+#### `models.Clusters` was modified
+
+* `deleteWithResponse(java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+* `com.azure.core.http.rest.Response deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)`
+
+### Features Added
+
+* `models.UploadCertificateRequest` was added
+
+* `models.ClusterIdentityResponse` was added
+
+* `models.ArcSetting$UpdateStages` was added
+
+* `models.ArcSettingsPatch` was added
+
+* `models.ArcSetting$Update` was added
+
+* `models.ArcIdentityResponse` was added
+
+* `models.PasswordCredential` was added
+
+* `models.RawCertificateData` was added
+
+#### `models.Extension` was modified
+
+* `resourceGroupName()` was added
+
+#### `models.Cluster` was modified
+
+* `resourceGroupName()` was added
+* `serviceEndpoint()` was added
+* `aadServicePrincipalObjectId()` was added
+* `aadApplicationObjectId()` was added
+* `createIdentity(com.azure.core.util.Context)` was added
+* `uploadCertificate(models.UploadCertificateRequest,com.azure.core.util.Context)` was added
+* `uploadCertificate(models.UploadCertificateRequest)` was added
+* `createIdentity()` was added
+
+#### `models.ArcSetting$Definition` was modified
+
+* `withArcApplicationClientId(java.lang.String)` was added
+* `withArcServicePrincipalObjectId(java.lang.String)` was added
+* `withConnectivityProperties(java.lang.Object)` was added
+* `withArcApplicationObjectId(java.lang.String)` was added
+* `withArcApplicationTenantId(java.lang.String)` was added
+
+#### `models.Clusters` was modified
+
+* `createIdentity(java.lang.String,java.lang.String)` was added
+* `uploadCertificate(java.lang.String,java.lang.String,models.UploadCertificateRequest)` was added
+* `uploadCertificate(java.lang.String,java.lang.String,models.UploadCertificateRequest,com.azure.core.util.Context)` was added
+* `delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+* `createIdentity(java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+
+#### `models.ArcSetting` was modified
+
+* `arcServicePrincipalObjectId()` was added
+* `createIdentity(com.azure.core.util.Context)` was added
+* `generatePassword()` was added
+* `resourceGroupName()` was added
+* `arcApplicationTenantId()` was added
+* `createIdentity()` was added
+* `connectivityProperties()` was added
+* `arcApplicationClientId()` was added
+* `update()` was added
+* `arcApplicationObjectId()` was added
+* `generatePasswordWithResponse(com.azure.core.util.Context)` was added
+
+#### `models.Cluster$Definition` was modified
+
+* `withAadApplicationObjectId(java.lang.String)` was added
+* `withAadServicePrincipalObjectId(java.lang.String)` was added
+
+#### `models.ArcSettings` was modified
-### Other Changes
+* `generatePassword(java.lang.String,java.lang.String,java.lang.String)` was added
+* `createIdentity(java.lang.String,java.lang.String,java.lang.String)` was added
+* `createIdentity(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+* `generatePasswordWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
## 1.0.0-beta.2 (2022-04-12)
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/README.md b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/README.md
index 6f4d73978e4b..49c5a0968a06 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/README.md
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager AzureStackHci client library for Java.
-This package contains Microsoft Azure SDK for AzureStackHci Management SDK. Azure Stack HCI management service. Package tag package-2022-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for AzureStackHci Management SDK. Azure Stack HCI management service. Package tag package-2022-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-azurestackhci
- 1.0.0-beta.2
+ 1.0.0-beta.3
```
[//]: # ({x-version-update-end})
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/SAMPLE.md b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/SAMPLE.md
index 4b71efad09f2..949f72862f79 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/SAMPLE.md
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/SAMPLE.md
@@ -4,18 +4,23 @@
## ArcSettings
- [Create](#arcsettings_create)
+- [CreateIdentity](#arcsettings_createidentity)
- [Delete](#arcsettings_delete)
+- [GeneratePassword](#arcsettings_generatepassword)
- [Get](#arcsettings_get)
- [ListByCluster](#arcsettings_listbycluster)
+- [Update](#arcsettings_update)
## Clusters
- [Create](#clusters_create)
+- [CreateIdentity](#clusters_createidentity)
- [Delete](#clusters_delete)
- [GetByResourceGroup](#clusters_getbyresourcegroup)
- [List](#clusters_list)
- [ListByResourceGroup](#clusters_listbyresourcegroup)
- [Update](#clusters_update)
+- [UploadCertificate](#clusters_uploadcertificate)
## Extensions
@@ -34,7 +39,7 @@
/** Samples for ArcSettings Create. */
public final class ArcSettingsCreateSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/PutArcSetting.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/PutArcSetting.json
*/
/**
* Sample code: Create ArcSetting.
@@ -47,6 +52,27 @@ public final class ArcSettingsCreateSamples {
}
```
+### ArcSettings_CreateIdentity
+
+```java
+import com.azure.core.util.Context;
+
+/** 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
+ */
+ /**
+ * Sample code: Create Arc Identity.
+ *
+ * @param manager Entry point to AzureStackHciManager.
+ */
+ public static void createArcIdentity(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ manager.arcSettings().createIdentity("test-rg", "myCluster", "default", Context.NONE);
+ }
+}
+```
+
### ArcSettings_Delete
```java
@@ -55,7 +81,7 @@ import com.azure.core.util.Context;
/** Samples for ArcSettings Delete. */
public final class ArcSettingsDeleteSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/DeleteArcSetting.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/DeleteArcSetting.json
*/
/**
* Sample code: Delete ArcSetting.
@@ -68,6 +94,27 @@ public final class ArcSettingsDeleteSamples {
}
```
+### ArcSettings_GeneratePassword
+
+```java
+import com.azure.core.util.Context;
+
+/** 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
+ */
+ /**
+ * Sample code: Generate Password.
+ *
+ * @param manager Entry point to AzureStackHciManager.
+ */
+ public static void generatePassword(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ manager.arcSettings().generatePasswordWithResponse("test-rg", "myCluster", "default", Context.NONE);
+ }
+}
+```
+
### ArcSettings_Get
```java
@@ -76,7 +123,7 @@ import com.azure.core.util.Context;
/** Samples for ArcSettings Get. */
public final class ArcSettingsGetSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/GetArcSetting.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/GetArcSetting.json
*/
/**
* Sample code: Get ArcSetting.
@@ -97,7 +144,7 @@ import com.azure.core.util.Context;
/** Samples for ArcSettings ListByCluster. */
public final class ArcSettingsListByClusterSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/ListArcSettingsByCluster.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/ListArcSettingsByCluster.json
*/
/**
* Sample code: List ArcSetting resources by HCI Cluster.
@@ -111,13 +158,47 @@ public final class ArcSettingsListByClusterSamples {
}
```
+### ArcSettings_Update
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.Context;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.azurestackhci.models.ArcSetting;
+import java.io.IOException;
+
+/** 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
+ */
+ /**
+ * Sample code: Patch ArcSetting.
+ *
+ * @param manager Entry point to AzureStackHciManager.
+ */
+ public static void patchArcSetting(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager)
+ throws IOException {
+ ArcSetting resource =
+ manager.arcSettings().getWithResponse("test-rg", "myCluster", "default", Context.NONE).getValue();
+ resource
+ .update()
+ .withConnectivityProperties(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{\"enabled\":true}", Object.class, SerializerEncoding.JSON))
+ .apply();
+ }
+}
+```
+
### Clusters_Create
```java
/** Samples for Clusters Create. */
public final class ClustersCreateSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/CreateCluster.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/CreateCluster.json
*/
/**
* Sample code: Create cluster.
@@ -138,6 +219,27 @@ public final class ClustersCreateSamples {
}
```
+### Clusters_CreateIdentity
+
+```java
+import com.azure.core.util.Context;
+
+/** 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
+ */
+ /**
+ * Sample code: Create cluster Identity.
+ *
+ * @param manager Entry point to AzureStackHciManager.
+ */
+ public static void createClusterIdentity(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ manager.clusters().createIdentity("test-rg", "myCluster", Context.NONE);
+ }
+}
+```
+
### Clusters_Delete
```java
@@ -146,7 +248,7 @@ import com.azure.core.util.Context;
/** Samples for Clusters Delete. */
public final class ClustersDeleteSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/DeleteCluster.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/DeleteCluster.json
*/
/**
* Sample code: Delete cluster.
@@ -154,7 +256,7 @@ public final class ClustersDeleteSamples {
* @param manager Entry point to AzureStackHciManager.
*/
public static void deleteCluster(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.clusters().deleteWithResponse("test-rg", "myCluster", Context.NONE);
+ manager.clusters().delete("test-rg", "myCluster", Context.NONE);
}
}
```
@@ -167,7 +269,7 @@ import com.azure.core.util.Context;
/** Samples for Clusters GetByResourceGroup. */
public final class ClustersGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/GetCluster.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/GetCluster.json
*/
/**
* Sample code: Get cluster.
@@ -188,7 +290,7 @@ import com.azure.core.util.Context;
/** Samples for Clusters List. */
public final class ClustersListSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/ListClustersBySubscription.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/ListClustersBySubscription.json
*/
/**
* Sample code: List clusters in a given subscription.
@@ -210,7 +312,7 @@ import com.azure.core.util.Context;
/** Samples for Clusters ListByResourceGroup. */
public final class ClustersListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/ListClustersByResourceGroup.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/ListClustersByResourceGroup.json
*/
/**
* Sample code: List clusters in a given resource group.
@@ -238,7 +340,7 @@ import java.util.Map;
/** Samples for Clusters Update. */
public final class ClustersUpdateSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/UpdateCluster.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/UpdateCluster.json
*/
/**
* Sample code: Update cluster.
@@ -272,6 +374,38 @@ public final class ClustersUpdateSamples {
}
```
+### Clusters_UploadCertificate
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.azurestackhci.models.RawCertificateData;
+import com.azure.resourcemanager.azurestackhci.models.UploadCertificateRequest;
+import java.util.Arrays;
+
+/** 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
+ */
+ /**
+ * Sample code: Upload certificate.
+ *
+ * @param manager Entry point to AzureStackHciManager.
+ */
+ public static void uploadCertificate(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ manager
+ .clusters()
+ .uploadCertificate(
+ "test-rg",
+ "myCluster",
+ new UploadCertificateRequest()
+ .withProperties(
+ new RawCertificateData().withCertificates(Arrays.asList("base64cert", "base64cert"))),
+ Context.NONE);
+ }
+}
+```
+
### Extensions_Create
```java
@@ -282,7 +416,7 @@ import java.io.IOException;
/** Samples for Extensions Create. */
public final class ExtensionsCreateSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/PutExtension.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/PutExtension.json
*/
/**
* Sample code: Create Arc Extension.
@@ -319,7 +453,7 @@ import com.azure.core.util.Context;
/** Samples for Extensions Delete. */
public final class ExtensionsDeleteSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/DeleteExtension.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/DeleteExtension.json
*/
/**
* Sample code: Delete Arc Extension.
@@ -340,7 +474,7 @@ import com.azure.core.util.Context;
/** Samples for Extensions Get. */
public final class ExtensionsGetSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/GetExtension.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/GetExtension.json
*/
/**
* Sample code: Get ArcSettings Extension.
@@ -363,7 +497,7 @@ import com.azure.core.util.Context;
/** Samples for Extensions ListByArcSetting. */
public final class ExtensionsListByArcSettingSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/ListExtensionsByArcSetting.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/ListExtensionsByArcSetting.json
*/
/**
* Sample code: List Extensions under ArcSetting resource.
@@ -389,7 +523,7 @@ import java.io.IOException;
/** Samples for Extensions Update. */
public final class ExtensionsUpdateSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/PatchExtension.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/PatchExtension.json
*/
/**
* Sample code: Update Arc Extension.
@@ -425,15 +559,14 @@ import com.azure.core.util.Context;
/** Samples for Operations List. */
public final class OperationsListSamples {
/*
- * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/ListOperations.json
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/ListOperations.json
*/
/**
- * Sample code: List operations available with the Microsoft.AzureStackHCI provider.
+ * Sample code: Create cluster.
*
* @param manager Entry point to AzureStackHciManager.
*/
- public static void listOperationsAvailableWithTheMicrosoftAzureStackHCIProvider(
- com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ public static void createCluster(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
manager.operations().listWithResponse(Context.NONE);
}
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/pom.xml b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/pom.xml
index 81f0550035e5..aded92b5736b 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/pom.xml
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/pom.xml
@@ -13,7 +13,7 @@
jar
Microsoft Azure SDK for AzureStackHci Management
- This package contains Microsoft Azure SDK for AzureStackHci Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Stack HCI management service. Package tag package-2022-01.
+ This package contains Microsoft Azure SDK for AzureStackHci Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Stack HCI management service. Package tag package-2022-05.
https://github.com/Azure/azure-sdk-for-java
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/AzureStackHciManager.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/AzureStackHciManager.java
index 14bd3ff22b8a..7fa8e3fcf096 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/AzureStackHciManager.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/AzureStackHciManager.java
@@ -215,7 +215,7 @@ public AzureStackHciManager authenticate(TokenCredential credential, AzureProfil
.append("-")
.append("com.azure.resourcemanager.azurestackhci")
.append("/")
- .append("1.0.0-beta.2");
+ .append("1.0.0-beta.3");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -272,7 +272,11 @@ public AzureStackHciManager authenticate(TokenCredential credential, AzureProfil
}
}
- /** @return Resource collection API of ArcSettings. */
+ /**
+ * Gets the resource collection API of ArcSettings. It manages ArcSetting.
+ *
+ * @return Resource collection API of ArcSettings.
+ */
public ArcSettings arcSettings() {
if (this.arcSettings == null) {
this.arcSettings = new ArcSettingsImpl(clientObject.getArcSettings(), this);
@@ -280,7 +284,11 @@ public ArcSettings arcSettings() {
return arcSettings;
}
- /** @return Resource collection API of Clusters. */
+ /**
+ * Gets the resource collection API of Clusters. It manages Cluster.
+ *
+ * @return Resource collection API of Clusters.
+ */
public Clusters clusters() {
if (this.clusters == null) {
this.clusters = new ClustersImpl(clientObject.getClusters(), this);
@@ -288,7 +296,11 @@ public Clusters clusters() {
return clusters;
}
- /** @return Resource collection API of Extensions. */
+ /**
+ * Gets the resource collection API of Extensions. It manages Extension.
+ *
+ * @return Resource collection API of Extensions.
+ */
public Extensions extensions() {
if (this.extensions == null) {
this.extensions = new ExtensionsImpl(clientObject.getExtensions(), this);
@@ -296,7 +308,11 @@ public Extensions extensions() {
return extensions;
}
- /** @return Resource collection API of Operations. */
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ArcSettingsClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ArcSettingsClient.java
index 054a33bb2872..e7dd0a66b848 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ArcSettingsClient.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ArcSettingsClient.java
@@ -11,7 +11,10 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.azurestackhci.fluent.models.ArcIdentityResponseInner;
import com.azure.resourcemanager.azurestackhci.fluent.models.ArcSettingInner;
+import com.azure.resourcemanager.azurestackhci.fluent.models.PasswordCredentialInner;
+import com.azure.resourcemanager.azurestackhci.models.ArcSettingsPatch;
/** An instance of this class provides access to all the operations defined in ArcSettingsClient. */
public interface ArcSettingsClient {
@@ -109,6 +112,43 @@ Response createWithResponse(
ArcSettingInner arcSetting,
Context context);
+ /**
+ * Update ArcSettings for HCI 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 arcSetting ArcSettings parameters that needs to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return arcSetting details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ArcSettingInner update(
+ String resourceGroupName, String clusterName, String arcSettingName, ArcSettingsPatch arcSetting);
+
+ /**
+ * Update ArcSettings for HCI 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 arcSetting ArcSettings parameters that needs to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return arcSetting details along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName,
+ String clusterName,
+ String arcSettingName,
+ ArcSettingsPatch arcSetting,
+ Context context);
+
/**
* Delete ArcSetting resource details of HCI Cluster.
*
@@ -165,4 +205,95 @@ SyncPoller, Void> beginDelete(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String clusterName, String arcSettingName, Context context);
+
+ /**
+ * Generate password for arc settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PasswordCredentialInner generatePassword(String resourceGroupName, String clusterName, String arcSettingName);
+
+ /**
+ * Generate password for arc settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response generatePasswordWithResponse(
+ String resourceGroupName, String clusterName, String arcSettingName, Context context);
+
+ /**
+ * Create Aad identity for arc settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of arcIdentity details.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ArcIdentityResponseInner> beginCreateIdentity(
+ String resourceGroupName, String clusterName, String arcSettingName);
+
+ /**
+ * Create Aad identity for arc settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of arcIdentity details.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ArcIdentityResponseInner> beginCreateIdentity(
+ String resourceGroupName, String clusterName, String arcSettingName, Context context);
+
+ /**
+ * Create Aad identity for arc settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return arcIdentity details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ArcIdentityResponseInner createIdentity(String resourceGroupName, String clusterName, String arcSettingName);
+
+ /**
+ * Create Aad identity for arc settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return arcIdentity details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ArcIdentityResponseInner createIdentity(
+ String resourceGroupName, String clusterName, String arcSettingName, Context context);
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ClustersClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ClustersClient.java
index c68684543ff8..625ccd127e93 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ClustersClient.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ClustersClient.java
@@ -8,9 +8,13 @@
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.azurestackhci.fluent.models.ClusterIdentityResponseInner;
import com.azure.resourcemanager.azurestackhci.fluent.models.ClusterInner;
import com.azure.resourcemanager.azurestackhci.models.ClusterPatch;
+import com.azure.resourcemanager.azurestackhci.models.UploadCertificateRequest;
/** An instance of this class provides access to all the operations defined in ClustersClient. */
public interface ClustersClient {
@@ -149,6 +153,33 @@ Response createWithResponse(
Response updateWithResponse(
String resourceGroupName, String clusterName, ClusterPatch cluster, Context context);
+ /**
+ * Delete an HCI cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName);
+
+ /**
+ * Delete an HCI cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, Context context);
+
/**
* Delete an HCI cluster.
*
@@ -170,8 +201,129 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String clusterName, Context context);
+ void delete(String resourceGroupName, String clusterName, Context context);
+
+ /**
+ * Upload certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param uploadCertificateRequest Upload certificate request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginUploadCertificate(
+ String resourceGroupName, String clusterName, UploadCertificateRequest uploadCertificateRequest);
+
+ /**
+ * Upload certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param uploadCertificateRequest Upload certificate request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginUploadCertificate(
+ String resourceGroupName,
+ String clusterName,
+ UploadCertificateRequest uploadCertificateRequest,
+ Context context);
+
+ /**
+ * Upload certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param uploadCertificateRequest Upload certificate request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void uploadCertificate(
+ String resourceGroupName, String clusterName, UploadCertificateRequest uploadCertificateRequest);
+
+ /**
+ * Upload certificate.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param uploadCertificateRequest Upload certificate request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void uploadCertificate(
+ String resourceGroupName,
+ String clusterName,
+ UploadCertificateRequest uploadCertificateRequest,
+ Context context);
+
+ /**
+ * Create cluster identity.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of cluster Identity details.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ClusterIdentityResponseInner> beginCreateIdentity(
+ String resourceGroupName, String clusterName);
+
+ /**
+ * Create cluster identity.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of cluster Identity details.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ClusterIdentityResponseInner> beginCreateIdentity(
+ String resourceGroupName, String clusterName, Context context);
+
+ /**
+ * Create cluster identity.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cluster Identity details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ClusterIdentityResponseInner createIdentity(String resourceGroupName, String clusterName);
+
+ /**
+ * Create cluster identity.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cluster Identity details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ClusterIdentityResponseInner createIdentity(String resourceGroupName, String clusterName, Context context);
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcIdentityResponseInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcIdentityResponseInner.java
new file mode 100644
index 000000000000..909acd05b51e
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcIdentityResponseInner.java
@@ -0,0 +1,130 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** ArcIdentity details. */
+@Immutable
+public final class ArcIdentityResponseInner {
+ /*
+ * ArcIdentity properties.
+ */
+ @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
+ private ArcIdentityResponseProperties innerProperties;
+
+ /**
+ * Get the innerProperties property: ArcIdentity properties.
+ *
+ * @return the innerProperties value.
+ */
+ private ArcIdentityResponseProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the arcApplicationClientId property: The arcApplicationClientId property.
+ *
+ * @return the arcApplicationClientId value.
+ */
+ public String arcApplicationClientId() {
+ return this.innerProperties() == null ? null : this.innerProperties().arcApplicationClientId();
+ }
+
+ /**
+ * Set the arcApplicationClientId property: The arcApplicationClientId property.
+ *
+ * @param arcApplicationClientId the arcApplicationClientId value to set.
+ * @return the ArcIdentityResponseInner object itself.
+ */
+ public ArcIdentityResponseInner withArcApplicationClientId(String arcApplicationClientId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ArcIdentityResponseProperties();
+ }
+ this.innerProperties().withArcApplicationClientId(arcApplicationClientId);
+ return this;
+ }
+
+ /**
+ * Get the arcApplicationTenantId property: The arcApplicationTenantId property.
+ *
+ * @return the arcApplicationTenantId value.
+ */
+ public String arcApplicationTenantId() {
+ return this.innerProperties() == null ? null : this.innerProperties().arcApplicationTenantId();
+ }
+
+ /**
+ * Set the arcApplicationTenantId property: The arcApplicationTenantId property.
+ *
+ * @param arcApplicationTenantId the arcApplicationTenantId value to set.
+ * @return the ArcIdentityResponseInner object itself.
+ */
+ public ArcIdentityResponseInner withArcApplicationTenantId(String arcApplicationTenantId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ArcIdentityResponseProperties();
+ }
+ this.innerProperties().withArcApplicationTenantId(arcApplicationTenantId);
+ return this;
+ }
+
+ /**
+ * Get the arcServicePrincipalObjectId property: The arcServicePrincipalObjectId property.
+ *
+ * @return the arcServicePrincipalObjectId value.
+ */
+ public String arcServicePrincipalObjectId() {
+ return this.innerProperties() == null ? null : this.innerProperties().arcServicePrincipalObjectId();
+ }
+
+ /**
+ * Set the arcServicePrincipalObjectId property: The arcServicePrincipalObjectId property.
+ *
+ * @param arcServicePrincipalObjectId the arcServicePrincipalObjectId value to set.
+ * @return the ArcIdentityResponseInner object itself.
+ */
+ public ArcIdentityResponseInner withArcServicePrincipalObjectId(String arcServicePrincipalObjectId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ArcIdentityResponseProperties();
+ }
+ this.innerProperties().withArcServicePrincipalObjectId(arcServicePrincipalObjectId);
+ return this;
+ }
+
+ /**
+ * Get the arcApplicationObjectId property: The arcApplicationObjectId property.
+ *
+ * @return the arcApplicationObjectId value.
+ */
+ public String arcApplicationObjectId() {
+ return this.innerProperties() == null ? null : this.innerProperties().arcApplicationObjectId();
+ }
+
+ /**
+ * Set the arcApplicationObjectId property: The arcApplicationObjectId property.
+ *
+ * @param arcApplicationObjectId the arcApplicationObjectId value to set.
+ * @return the ArcIdentityResponseInner object itself.
+ */
+ public ArcIdentityResponseInner withArcApplicationObjectId(String arcApplicationObjectId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ArcIdentityResponseProperties();
+ }
+ this.innerProperties().withArcApplicationObjectId(arcApplicationObjectId);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcIdentityResponseProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcIdentityResponseProperties.java
new file mode 100644
index 000000000000..5b20f4848fb7
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcIdentityResponseProperties.java
@@ -0,0 +1,124 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The ArcIdentityResponseProperties model. */
+@Fluent
+public final class ArcIdentityResponseProperties {
+ /*
+ * The arcApplicationClientId property.
+ */
+ @JsonProperty(value = "arcApplicationClientId")
+ private String arcApplicationClientId;
+
+ /*
+ * The arcApplicationTenantId property.
+ */
+ @JsonProperty(value = "arcApplicationTenantId")
+ private String arcApplicationTenantId;
+
+ /*
+ * The arcServicePrincipalObjectId property.
+ */
+ @JsonProperty(value = "arcServicePrincipalObjectId")
+ private String arcServicePrincipalObjectId;
+
+ /*
+ * The arcApplicationObjectId property.
+ */
+ @JsonProperty(value = "arcApplicationObjectId")
+ private String arcApplicationObjectId;
+
+ /**
+ * Get the arcApplicationClientId property: The arcApplicationClientId property.
+ *
+ * @return the arcApplicationClientId value.
+ */
+ public String arcApplicationClientId() {
+ return this.arcApplicationClientId;
+ }
+
+ /**
+ * Set the arcApplicationClientId property: The arcApplicationClientId property.
+ *
+ * @param arcApplicationClientId the arcApplicationClientId value to set.
+ * @return the ArcIdentityResponseProperties object itself.
+ */
+ public ArcIdentityResponseProperties withArcApplicationClientId(String arcApplicationClientId) {
+ this.arcApplicationClientId = arcApplicationClientId;
+ return this;
+ }
+
+ /**
+ * Get the arcApplicationTenantId property: The arcApplicationTenantId property.
+ *
+ * @return the arcApplicationTenantId value.
+ */
+ public String arcApplicationTenantId() {
+ return this.arcApplicationTenantId;
+ }
+
+ /**
+ * Set the arcApplicationTenantId property: The arcApplicationTenantId property.
+ *
+ * @param arcApplicationTenantId the arcApplicationTenantId value to set.
+ * @return the ArcIdentityResponseProperties object itself.
+ */
+ public ArcIdentityResponseProperties withArcApplicationTenantId(String arcApplicationTenantId) {
+ this.arcApplicationTenantId = arcApplicationTenantId;
+ return this;
+ }
+
+ /**
+ * Get the arcServicePrincipalObjectId property: The arcServicePrincipalObjectId property.
+ *
+ * @return the arcServicePrincipalObjectId value.
+ */
+ public String arcServicePrincipalObjectId() {
+ return this.arcServicePrincipalObjectId;
+ }
+
+ /**
+ * Set the arcServicePrincipalObjectId property: The arcServicePrincipalObjectId property.
+ *
+ * @param arcServicePrincipalObjectId the arcServicePrincipalObjectId value to set.
+ * @return the ArcIdentityResponseProperties object itself.
+ */
+ public ArcIdentityResponseProperties withArcServicePrincipalObjectId(String arcServicePrincipalObjectId) {
+ this.arcServicePrincipalObjectId = arcServicePrincipalObjectId;
+ return this;
+ }
+
+ /**
+ * Get the arcApplicationObjectId property: The arcApplicationObjectId property.
+ *
+ * @return the arcApplicationObjectId value.
+ */
+ public String arcApplicationObjectId() {
+ return this.arcApplicationObjectId;
+ }
+
+ /**
+ * Set the arcApplicationObjectId property: The arcApplicationObjectId property.
+ *
+ * @param arcApplicationObjectId the arcApplicationObjectId value to set.
+ * @return the ArcIdentityResponseProperties object itself.
+ */
+ public ArcIdentityResponseProperties withArcApplicationObjectId(String arcApplicationObjectId) {
+ this.arcApplicationObjectId = arcApplicationObjectId;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcSettingInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcSettingInner.java
index 8af2c532e716..cfdbb16c5d22 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcSettingInner.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcSettingInner.java
@@ -80,6 +80,98 @@ public ArcSettingInner withArcInstanceResourceGroup(String arcInstanceResourceGr
return this;
}
+ /**
+ * Get the arcApplicationClientId property: App id of arc AAD identity.
+ *
+ * @return the arcApplicationClientId value.
+ */
+ public String arcApplicationClientId() {
+ return this.innerProperties() == null ? null : this.innerProperties().arcApplicationClientId();
+ }
+
+ /**
+ * Set the arcApplicationClientId property: App id of arc AAD identity.
+ *
+ * @param arcApplicationClientId the arcApplicationClientId value to set.
+ * @return the ArcSettingInner object itself.
+ */
+ public ArcSettingInner withArcApplicationClientId(String arcApplicationClientId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ArcSettingProperties();
+ }
+ this.innerProperties().withArcApplicationClientId(arcApplicationClientId);
+ return this;
+ }
+
+ /**
+ * Get the arcApplicationTenantId property: Tenant id of arc AAD identity.
+ *
+ * @return the arcApplicationTenantId value.
+ */
+ public String arcApplicationTenantId() {
+ return this.innerProperties() == null ? null : this.innerProperties().arcApplicationTenantId();
+ }
+
+ /**
+ * Set the arcApplicationTenantId property: Tenant id of arc AAD identity.
+ *
+ * @param arcApplicationTenantId the arcApplicationTenantId value to set.
+ * @return the ArcSettingInner object itself.
+ */
+ public ArcSettingInner withArcApplicationTenantId(String arcApplicationTenantId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ArcSettingProperties();
+ }
+ this.innerProperties().withArcApplicationTenantId(arcApplicationTenantId);
+ return this;
+ }
+
+ /**
+ * Get the arcServicePrincipalObjectId property: Object id of arc AAD service principal.
+ *
+ * @return the arcServicePrincipalObjectId value.
+ */
+ public String arcServicePrincipalObjectId() {
+ return this.innerProperties() == null ? null : this.innerProperties().arcServicePrincipalObjectId();
+ }
+
+ /**
+ * Set the arcServicePrincipalObjectId property: Object id of arc AAD service principal.
+ *
+ * @param arcServicePrincipalObjectId the arcServicePrincipalObjectId value to set.
+ * @return the ArcSettingInner object itself.
+ */
+ public ArcSettingInner withArcServicePrincipalObjectId(String arcServicePrincipalObjectId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ArcSettingProperties();
+ }
+ this.innerProperties().withArcServicePrincipalObjectId(arcServicePrincipalObjectId);
+ return this;
+ }
+
+ /**
+ * Get the arcApplicationObjectId property: Object id of arc AAD identity.
+ *
+ * @return the arcApplicationObjectId value.
+ */
+ public String arcApplicationObjectId() {
+ return this.innerProperties() == null ? null : this.innerProperties().arcApplicationObjectId();
+ }
+
+ /**
+ * Set the arcApplicationObjectId property: Object id of arc AAD identity.
+ *
+ * @param arcApplicationObjectId the arcApplicationObjectId value to set.
+ * @return the ArcSettingInner object itself.
+ */
+ public ArcSettingInner withArcApplicationObjectId(String arcApplicationObjectId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ArcSettingProperties();
+ }
+ this.innerProperties().withArcApplicationObjectId(arcApplicationObjectId);
+ return this;
+ }
+
/**
* Get the aggregateState property: Aggregate state of Arc agent across the nodes in this HCI cluster.
*
@@ -98,6 +190,29 @@ public List perNodeDetails() {
return this.innerProperties() == null ? null : this.innerProperties().perNodeDetails();
}
+ /**
+ * Get the connectivityProperties property: contains connectivity related configuration for ARC resources.
+ *
+ * @return the connectivityProperties value.
+ */
+ public Object connectivityProperties() {
+ return this.innerProperties() == null ? null : this.innerProperties().connectivityProperties();
+ }
+
+ /**
+ * Set the connectivityProperties property: contains connectivity related configuration for ARC resources.
+ *
+ * @param connectivityProperties the connectivityProperties value to set.
+ * @return the ArcSettingInner object itself.
+ */
+ public ArcSettingInner withConnectivityProperties(Object connectivityProperties) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ArcSettingProperties();
+ }
+ this.innerProperties().withConnectivityProperties(connectivityProperties);
+ return this;
+ }
+
/**
* Validates the instance.
*
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 45e5201c7b58..e628ec8d6f03 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
@@ -27,6 +27,30 @@ public final class ArcSettingProperties {
@JsonProperty(value = "arcInstanceResourceGroup")
private String arcInstanceResourceGroup;
+ /*
+ * App id of arc AAD identity.
+ */
+ @JsonProperty(value = "arcApplicationClientId")
+ private String arcApplicationClientId;
+
+ /*
+ * Tenant id of arc AAD identity.
+ */
+ @JsonProperty(value = "arcApplicationTenantId")
+ private String arcApplicationTenantId;
+
+ /*
+ * Object id of arc AAD service principal.
+ */
+ @JsonProperty(value = "arcServicePrincipalObjectId")
+ private String arcServicePrincipalObjectId;
+
+ /*
+ * Object id of arc AAD identity.
+ */
+ @JsonProperty(value = "arcApplicationObjectId")
+ private String arcApplicationObjectId;
+
/*
* Aggregate state of Arc agent across the nodes in this HCI cluster.
*/
@@ -39,6 +63,12 @@ public final class ArcSettingProperties {
@JsonProperty(value = "perNodeDetails", access = JsonProperty.Access.WRITE_ONLY)
private List perNodeDetails;
+ /*
+ * contains connectivity related configuration for ARC resources
+ */
+ @JsonProperty(value = "connectivityProperties")
+ private Object connectivityProperties;
+
/**
* Get the provisioningState property: Provisioning state of the ArcSetting proxy resource.
*
@@ -70,6 +100,86 @@ public ArcSettingProperties withArcInstanceResourceGroup(String arcInstanceResou
return this;
}
+ /**
+ * Get the arcApplicationClientId property: App id of arc AAD identity.
+ *
+ * @return the arcApplicationClientId value.
+ */
+ public String arcApplicationClientId() {
+ return this.arcApplicationClientId;
+ }
+
+ /**
+ * Set the arcApplicationClientId property: App id of arc AAD identity.
+ *
+ * @param arcApplicationClientId the arcApplicationClientId value to set.
+ * @return the ArcSettingProperties object itself.
+ */
+ public ArcSettingProperties withArcApplicationClientId(String arcApplicationClientId) {
+ this.arcApplicationClientId = arcApplicationClientId;
+ return this;
+ }
+
+ /**
+ * Get the arcApplicationTenantId property: Tenant id of arc AAD identity.
+ *
+ * @return the arcApplicationTenantId value.
+ */
+ public String arcApplicationTenantId() {
+ return this.arcApplicationTenantId;
+ }
+
+ /**
+ * Set the arcApplicationTenantId property: Tenant id of arc AAD identity.
+ *
+ * @param arcApplicationTenantId the arcApplicationTenantId value to set.
+ * @return the ArcSettingProperties object itself.
+ */
+ public ArcSettingProperties withArcApplicationTenantId(String arcApplicationTenantId) {
+ this.arcApplicationTenantId = arcApplicationTenantId;
+ return this;
+ }
+
+ /**
+ * Get the arcServicePrincipalObjectId property: Object id of arc AAD service principal.
+ *
+ * @return the arcServicePrincipalObjectId value.
+ */
+ public String arcServicePrincipalObjectId() {
+ return this.arcServicePrincipalObjectId;
+ }
+
+ /**
+ * Set the arcServicePrincipalObjectId property: Object id of arc AAD service principal.
+ *
+ * @param arcServicePrincipalObjectId the arcServicePrincipalObjectId value to set.
+ * @return the ArcSettingProperties object itself.
+ */
+ public ArcSettingProperties withArcServicePrincipalObjectId(String arcServicePrincipalObjectId) {
+ this.arcServicePrincipalObjectId = arcServicePrincipalObjectId;
+ return this;
+ }
+
+ /**
+ * Get the arcApplicationObjectId property: Object id of arc AAD identity.
+ *
+ * @return the arcApplicationObjectId value.
+ */
+ public String arcApplicationObjectId() {
+ return this.arcApplicationObjectId;
+ }
+
+ /**
+ * Set the arcApplicationObjectId property: Object id of arc AAD identity.
+ *
+ * @param arcApplicationObjectId the arcApplicationObjectId value to set.
+ * @return the ArcSettingProperties object itself.
+ */
+ public ArcSettingProperties withArcApplicationObjectId(String arcApplicationObjectId) {
+ this.arcApplicationObjectId = arcApplicationObjectId;
+ return this;
+ }
+
/**
* Get the aggregateState property: Aggregate state of Arc agent across the nodes in this HCI cluster.
*
@@ -88,6 +198,26 @@ public List perNodeDetails() {
return this.perNodeDetails;
}
+ /**
+ * Get the connectivityProperties property: contains connectivity related configuration for ARC resources.
+ *
+ * @return the connectivityProperties value.
+ */
+ public Object connectivityProperties() {
+ return this.connectivityProperties;
+ }
+
+ /**
+ * Set the connectivityProperties property: contains connectivity related configuration for ARC resources.
+ *
+ * @param connectivityProperties the connectivityProperties value to set.
+ * @return the ArcSettingProperties object itself.
+ */
+ public ArcSettingProperties withConnectivityProperties(Object connectivityProperties) {
+ this.connectivityProperties = connectivityProperties;
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcSettingsPatchProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcSettingsPatchProperties.java
new file mode 100644
index 000000000000..ea8247835231
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ArcSettingsPatchProperties.java
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** ArcSettings properties. */
+@Fluent
+public final class ArcSettingsPatchProperties {
+ /*
+ * contains connectivity related configuration for ARC resources
+ */
+ @JsonProperty(value = "connectivityProperties")
+ private Object connectivityProperties;
+
+ /**
+ * Get the connectivityProperties property: contains connectivity related configuration for ARC resources.
+ *
+ * @return the connectivityProperties value.
+ */
+ public Object connectivityProperties() {
+ return this.connectivityProperties;
+ }
+
+ /**
+ * Set the connectivityProperties property: contains connectivity related configuration for ARC resources.
+ *
+ * @param connectivityProperties the connectivityProperties value to set.
+ * @return the ArcSettingsPatchProperties object itself.
+ */
+ public ArcSettingsPatchProperties withConnectivityProperties(Object connectivityProperties) {
+ this.connectivityProperties = connectivityProperties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterIdentityResponseInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterIdentityResponseInner.java
new file mode 100644
index 000000000000..be934a9d5d35
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterIdentityResponseInner.java
@@ -0,0 +1,130 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Cluster Identity details. */
+@Immutable
+public final class ClusterIdentityResponseInner {
+ /*
+ * Cluster identity properties.
+ */
+ @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
+ private ClusterIdentityResponseProperties innerProperties;
+
+ /**
+ * Get the innerProperties property: Cluster identity properties.
+ *
+ * @return the innerProperties value.
+ */
+ private ClusterIdentityResponseProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the aadClientId property: The aadClientId property.
+ *
+ * @return the aadClientId value.
+ */
+ public String aadClientId() {
+ return this.innerProperties() == null ? null : this.innerProperties().aadClientId();
+ }
+
+ /**
+ * Set the aadClientId property: The aadClientId property.
+ *
+ * @param aadClientId the aadClientId value to set.
+ * @return the ClusterIdentityResponseInner object itself.
+ */
+ public ClusterIdentityResponseInner withAadClientId(String aadClientId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ClusterIdentityResponseProperties();
+ }
+ this.innerProperties().withAadClientId(aadClientId);
+ return this;
+ }
+
+ /**
+ * Get the aadTenantId property: The aadTenantId property.
+ *
+ * @return the aadTenantId value.
+ */
+ public String aadTenantId() {
+ return this.innerProperties() == null ? null : this.innerProperties().aadTenantId();
+ }
+
+ /**
+ * Set the aadTenantId property: The aadTenantId property.
+ *
+ * @param aadTenantId the aadTenantId value to set.
+ * @return the ClusterIdentityResponseInner object itself.
+ */
+ public ClusterIdentityResponseInner withAadTenantId(String aadTenantId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ClusterIdentityResponseProperties();
+ }
+ this.innerProperties().withAadTenantId(aadTenantId);
+ return this;
+ }
+
+ /**
+ * Get the aadServicePrincipalObjectId property: The aadServicePrincipalObjectId property.
+ *
+ * @return the aadServicePrincipalObjectId value.
+ */
+ public String aadServicePrincipalObjectId() {
+ return this.innerProperties() == null ? null : this.innerProperties().aadServicePrincipalObjectId();
+ }
+
+ /**
+ * Set the aadServicePrincipalObjectId property: The aadServicePrincipalObjectId property.
+ *
+ * @param aadServicePrincipalObjectId the aadServicePrincipalObjectId value to set.
+ * @return the ClusterIdentityResponseInner object itself.
+ */
+ public ClusterIdentityResponseInner withAadServicePrincipalObjectId(String aadServicePrincipalObjectId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ClusterIdentityResponseProperties();
+ }
+ this.innerProperties().withAadServicePrincipalObjectId(aadServicePrincipalObjectId);
+ return this;
+ }
+
+ /**
+ * Get the aadApplicationObjectId property: The aadApplicationObjectId property.
+ *
+ * @return the aadApplicationObjectId value.
+ */
+ public String aadApplicationObjectId() {
+ return this.innerProperties() == null ? null : this.innerProperties().aadApplicationObjectId();
+ }
+
+ /**
+ * Set the aadApplicationObjectId property: The aadApplicationObjectId property.
+ *
+ * @param aadApplicationObjectId the aadApplicationObjectId value to set.
+ * @return the ClusterIdentityResponseInner object itself.
+ */
+ public ClusterIdentityResponseInner withAadApplicationObjectId(String aadApplicationObjectId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ClusterIdentityResponseProperties();
+ }
+ this.innerProperties().withAadApplicationObjectId(aadApplicationObjectId);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterIdentityResponseProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterIdentityResponseProperties.java
new file mode 100644
index 000000000000..745b333748ae
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterIdentityResponseProperties.java
@@ -0,0 +1,124 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The ClusterIdentityResponseProperties model. */
+@Fluent
+public final class ClusterIdentityResponseProperties {
+ /*
+ * The aadClientId property.
+ */
+ @JsonProperty(value = "aadClientId")
+ private String aadClientId;
+
+ /*
+ * The aadTenantId property.
+ */
+ @JsonProperty(value = "aadTenantId")
+ private String aadTenantId;
+
+ /*
+ * The aadServicePrincipalObjectId property.
+ */
+ @JsonProperty(value = "aadServicePrincipalObjectId")
+ private String aadServicePrincipalObjectId;
+
+ /*
+ * The aadApplicationObjectId property.
+ */
+ @JsonProperty(value = "aadApplicationObjectId")
+ private String aadApplicationObjectId;
+
+ /**
+ * Get the aadClientId property: The aadClientId property.
+ *
+ * @return the aadClientId value.
+ */
+ public String aadClientId() {
+ return this.aadClientId;
+ }
+
+ /**
+ * Set the aadClientId property: The aadClientId property.
+ *
+ * @param aadClientId the aadClientId value to set.
+ * @return the ClusterIdentityResponseProperties object itself.
+ */
+ public ClusterIdentityResponseProperties withAadClientId(String aadClientId) {
+ this.aadClientId = aadClientId;
+ return this;
+ }
+
+ /**
+ * Get the aadTenantId property: The aadTenantId property.
+ *
+ * @return the aadTenantId value.
+ */
+ public String aadTenantId() {
+ return this.aadTenantId;
+ }
+
+ /**
+ * Set the aadTenantId property: The aadTenantId property.
+ *
+ * @param aadTenantId the aadTenantId value to set.
+ * @return the ClusterIdentityResponseProperties object itself.
+ */
+ public ClusterIdentityResponseProperties withAadTenantId(String aadTenantId) {
+ this.aadTenantId = aadTenantId;
+ return this;
+ }
+
+ /**
+ * Get the aadServicePrincipalObjectId property: The aadServicePrincipalObjectId property.
+ *
+ * @return the aadServicePrincipalObjectId value.
+ */
+ public String aadServicePrincipalObjectId() {
+ return this.aadServicePrincipalObjectId;
+ }
+
+ /**
+ * Set the aadServicePrincipalObjectId property: The aadServicePrincipalObjectId property.
+ *
+ * @param aadServicePrincipalObjectId the aadServicePrincipalObjectId value to set.
+ * @return the ClusterIdentityResponseProperties object itself.
+ */
+ public ClusterIdentityResponseProperties withAadServicePrincipalObjectId(String aadServicePrincipalObjectId) {
+ this.aadServicePrincipalObjectId = aadServicePrincipalObjectId;
+ return this;
+ }
+
+ /**
+ * Get the aadApplicationObjectId property: The aadApplicationObjectId property.
+ *
+ * @return the aadApplicationObjectId value.
+ */
+ public String aadApplicationObjectId() {
+ return this.aadApplicationObjectId;
+ }
+
+ /**
+ * Set the aadApplicationObjectId property: The aadApplicationObjectId property.
+ *
+ * @param aadApplicationObjectId the aadApplicationObjectId value to set.
+ * @return the ClusterIdentityResponseProperties object itself.
+ */
+ public ClusterIdentityResponseProperties withAadApplicationObjectId(String aadApplicationObjectId) {
+ this.aadApplicationObjectId = aadApplicationObjectId;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterInner.java
index 366e69ed4c3c..90830dc5dd72 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
@@ -158,6 +158,52 @@ public ClusterInner withAadTenantId(String aadTenantId) {
return this;
}
+ /**
+ * Get the aadApplicationObjectId property: Object id of cluster AAD identity.
+ *
+ * @return the aadApplicationObjectId value.
+ */
+ public String aadApplicationObjectId() {
+ return this.innerProperties() == null ? null : this.innerProperties().aadApplicationObjectId();
+ }
+
+ /**
+ * Set the aadApplicationObjectId property: Object id of cluster AAD identity.
+ *
+ * @param aadApplicationObjectId the aadApplicationObjectId value to set.
+ * @return the ClusterInner object itself.
+ */
+ public ClusterInner withAadApplicationObjectId(String aadApplicationObjectId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ClusterProperties();
+ }
+ this.innerProperties().withAadApplicationObjectId(aadApplicationObjectId);
+ return this;
+ }
+
+ /**
+ * Get the aadServicePrincipalObjectId property: Id of cluster identity service principal.
+ *
+ * @return the aadServicePrincipalObjectId value.
+ */
+ public String aadServicePrincipalObjectId() {
+ return this.innerProperties() == null ? null : this.innerProperties().aadServicePrincipalObjectId();
+ }
+
+ /**
+ * Set the aadServicePrincipalObjectId property: Id of cluster identity service principal.
+ *
+ * @param aadServicePrincipalObjectId the aadServicePrincipalObjectId value to set.
+ * @return the ClusterInner object itself.
+ */
+ public ClusterInner withAadServicePrincipalObjectId(String aadServicePrincipalObjectId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ClusterProperties();
+ }
+ this.innerProperties().withAadServicePrincipalObjectId(aadServicePrincipalObjectId);
+ return this;
+ }
+
/**
* Get the desiredProperties property: Desired properties of the cluster.
*
@@ -235,6 +281,15 @@ public OffsetDateTime lastBillingTimestamp() {
return this.innerProperties() == null ? null : this.innerProperties().lastBillingTimestamp();
}
+ /**
+ * Get the serviceEndpoint property: Region specific DataPath Endpoint of the cluster.
+ *
+ * @return the serviceEndpoint value.
+ */
+ public String serviceEndpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().serviceEndpoint();
+ }
+
/**
* Validates the instance.
*
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 e3879a66753a..cb7310c87094 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
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.azurestackhci.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.azurestackhci.models.ClusterDesiredProperties;
import com.azure.resourcemanager.azurestackhci.models.ClusterReportedProperties;
import com.azure.resourcemanager.azurestackhci.models.ProvisioningState;
@@ -43,15 +42,27 @@ public final class ClusterProperties {
/*
* App id of cluster AAD identity.
*/
- @JsonProperty(value = "aadClientId", required = true)
+ @JsonProperty(value = "aadClientId")
private String aadClientId;
/*
* Tenant id of cluster AAD identity.
*/
- @JsonProperty(value = "aadTenantId", required = true)
+ @JsonProperty(value = "aadTenantId")
private String aadTenantId;
+ /*
+ * Object id of cluster AAD identity.
+ */
+ @JsonProperty(value = "aadApplicationObjectId")
+ private String aadApplicationObjectId;
+
+ /*
+ * Id of cluster identity service principal.
+ */
+ @JsonProperty(value = "aadServicePrincipalObjectId")
+ private String aadServicePrincipalObjectId;
+
/*
* Desired properties of the cluster.
*/
@@ -94,6 +105,12 @@ public final class ClusterProperties {
@JsonProperty(value = "lastBillingTimestamp", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime lastBillingTimestamp;
+ /*
+ * Region specific DataPath Endpoint of the cluster.
+ */
+ @JsonProperty(value = "serviceEndpoint", access = JsonProperty.Access.WRITE_ONLY)
+ private String serviceEndpoint;
+
/**
* Get the provisioningState property: Provisioning state.
*
@@ -181,6 +198,46 @@ public ClusterProperties withAadTenantId(String aadTenantId) {
return this;
}
+ /**
+ * Get the aadApplicationObjectId property: Object id of cluster AAD identity.
+ *
+ * @return the aadApplicationObjectId value.
+ */
+ public String aadApplicationObjectId() {
+ return this.aadApplicationObjectId;
+ }
+
+ /**
+ * Set the aadApplicationObjectId property: Object id of cluster AAD identity.
+ *
+ * @param aadApplicationObjectId the aadApplicationObjectId value to set.
+ * @return the ClusterProperties object itself.
+ */
+ public ClusterProperties withAadApplicationObjectId(String aadApplicationObjectId) {
+ this.aadApplicationObjectId = aadApplicationObjectId;
+ return this;
+ }
+
+ /**
+ * Get the aadServicePrincipalObjectId property: Id of cluster identity service principal.
+ *
+ * @return the aadServicePrincipalObjectId value.
+ */
+ public String aadServicePrincipalObjectId() {
+ return this.aadServicePrincipalObjectId;
+ }
+
+ /**
+ * Set the aadServicePrincipalObjectId property: Id of cluster identity service principal.
+ *
+ * @param aadServicePrincipalObjectId the aadServicePrincipalObjectId value to set.
+ * @return the ClusterProperties object itself.
+ */
+ public ClusterProperties withAadServicePrincipalObjectId(String aadServicePrincipalObjectId) {
+ this.aadServicePrincipalObjectId = aadServicePrincipalObjectId;
+ return this;
+ }
+
/**
* Get the desiredProperties property: Desired properties of the cluster.
*
@@ -255,22 +312,21 @@ public OffsetDateTime lastBillingTimestamp() {
return this.lastBillingTimestamp;
}
+ /**
+ * Get the serviceEndpoint property: Region specific DataPath Endpoint of the cluster.
+ *
+ * @return the serviceEndpoint value.
+ */
+ public String serviceEndpoint() {
+ return this.serviceEndpoint;
+ }
+
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (aadClientId() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException("Missing required property aadClientId in model ClusterProperties"));
- }
- if (aadTenantId() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException("Missing required property aadTenantId in model ClusterProperties"));
- }
if (desiredProperties() != null) {
desiredProperties().validate();
}
@@ -278,6 +334,4 @@ public void validate() {
reportedProperties().validate();
}
}
-
- private static final ClientLogger LOGGER = new ClientLogger(ClusterProperties.class);
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/PasswordCredentialInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/PasswordCredentialInner.java
new file mode 100644
index 000000000000..92abc341b739
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/PasswordCredentialInner.java
@@ -0,0 +1,125 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** The PasswordCredential model. */
+@Fluent
+public final class PasswordCredentialInner {
+ /*
+ * The secretText property.
+ */
+ @JsonProperty(value = "secretText")
+ private String secretText;
+
+ /*
+ * The keyId property.
+ */
+ @JsonProperty(value = "keyId")
+ private String keyId;
+
+ /*
+ * The startDateTime property.
+ */
+ @JsonProperty(value = "startDateTime")
+ private OffsetDateTime startDateTime;
+
+ /*
+ * The endDateTime property.
+ */
+ @JsonProperty(value = "endDateTime")
+ private OffsetDateTime endDateTime;
+
+ /**
+ * Get the secretText property: The secretText property.
+ *
+ * @return the secretText value.
+ */
+ public String secretText() {
+ return this.secretText;
+ }
+
+ /**
+ * Set the secretText property: The secretText property.
+ *
+ * @param secretText the secretText value to set.
+ * @return the PasswordCredentialInner object itself.
+ */
+ public PasswordCredentialInner withSecretText(String secretText) {
+ this.secretText = secretText;
+ return this;
+ }
+
+ /**
+ * Get the keyId property: The keyId property.
+ *
+ * @return the keyId value.
+ */
+ public String keyId() {
+ return this.keyId;
+ }
+
+ /**
+ * Set the keyId property: The keyId property.
+ *
+ * @param keyId the keyId value to set.
+ * @return the PasswordCredentialInner object itself.
+ */
+ public PasswordCredentialInner withKeyId(String keyId) {
+ this.keyId = keyId;
+ return this;
+ }
+
+ /**
+ * Get the startDateTime property: The startDateTime property.
+ *
+ * @return the startDateTime value.
+ */
+ public OffsetDateTime startDateTime() {
+ return this.startDateTime;
+ }
+
+ /**
+ * Set the startDateTime property: The startDateTime property.
+ *
+ * @param startDateTime the startDateTime value to set.
+ * @return the PasswordCredentialInner object itself.
+ */
+ public PasswordCredentialInner withStartDateTime(OffsetDateTime startDateTime) {
+ this.startDateTime = startDateTime;
+ return this;
+ }
+
+ /**
+ * Get the endDateTime property: The endDateTime property.
+ *
+ * @return the endDateTime value.
+ */
+ public OffsetDateTime endDateTime() {
+ return this.endDateTime;
+ }
+
+ /**
+ * Set the endDateTime property: The endDateTime property.
+ *
+ * @param endDateTime the endDateTime value to set.
+ * @return the PasswordCredentialInner object itself.
+ */
+ public PasswordCredentialInner withEndDateTime(OffsetDateTime endDateTime) {
+ this.endDateTime = endDateTime;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcIdentityResponseImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcIdentityResponseImpl.java
new file mode 100644
index 000000000000..d0fa03aff9ea
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcIdentityResponseImpl.java
@@ -0,0 +1,45 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.implementation;
+
+import com.azure.resourcemanager.azurestackhci.fluent.models.ArcIdentityResponseInner;
+import com.azure.resourcemanager.azurestackhci.models.ArcIdentityResponse;
+
+public final class ArcIdentityResponseImpl implements ArcIdentityResponse {
+ private ArcIdentityResponseInner innerObject;
+
+ private final com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager;
+
+ ArcIdentityResponseImpl(
+ ArcIdentityResponseInner innerObject,
+ com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String arcApplicationClientId() {
+ return this.innerModel().arcApplicationClientId();
+ }
+
+ public String arcApplicationTenantId() {
+ return this.innerModel().arcApplicationTenantId();
+ }
+
+ public String arcServicePrincipalObjectId() {
+ return this.innerModel().arcServicePrincipalObjectId();
+ }
+
+ public String arcApplicationObjectId() {
+ return this.innerModel().arcApplicationObjectId();
+ }
+
+ public ArcIdentityResponseInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcSettingImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcSettingImpl.java
index e82064bbad73..e7c22ee4ecd1 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcSettingImpl.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcSettingImpl.java
@@ -4,27 +4,26 @@
package com.azure.resourcemanager.azurestackhci.implementation;
+import com.azure.core.http.rest.Response;
import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.azurestackhci.fluent.models.ArcSettingInner;
+import com.azure.resourcemanager.azurestackhci.models.ArcIdentityResponse;
import com.azure.resourcemanager.azurestackhci.models.ArcSetting;
import com.azure.resourcemanager.azurestackhci.models.ArcSettingAggregateState;
+import com.azure.resourcemanager.azurestackhci.models.ArcSettingsPatch;
+import com.azure.resourcemanager.azurestackhci.models.PasswordCredential;
import com.azure.resourcemanager.azurestackhci.models.PerNodeState;
import com.azure.resourcemanager.azurestackhci.models.ProvisioningState;
import java.util.Collections;
import java.util.List;
+import java.util.Map;
-public final class ArcSettingImpl implements ArcSetting, ArcSetting.Definition {
+public final class ArcSettingImpl implements ArcSetting, ArcSetting.Definition, ArcSetting.Update {
private ArcSettingInner innerObject;
private final com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager;
- ArcSettingImpl(
- ArcSettingInner innerObject, com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- }
-
public String id() {
return this.innerModel().id();
}
@@ -49,6 +48,22 @@ public String arcInstanceResourceGroup() {
return this.innerModel().arcInstanceResourceGroup();
}
+ public String arcApplicationClientId() {
+ return this.innerModel().arcApplicationClientId();
+ }
+
+ public String arcApplicationTenantId() {
+ return this.innerModel().arcApplicationTenantId();
+ }
+
+ public String arcServicePrincipalObjectId() {
+ return this.innerModel().arcServicePrincipalObjectId();
+ }
+
+ public String arcApplicationObjectId() {
+ return this.innerModel().arcApplicationObjectId();
+ }
+
public ArcSettingAggregateState aggregateState() {
return this.innerModel().aggregateState();
}
@@ -62,6 +77,14 @@ public List perNodeDetails() {
}
}
+ public Object connectivityProperties() {
+ return this.innerModel().connectivityProperties();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
public ArcSettingInner innerModel() {
return this.innerObject;
}
@@ -76,6 +99,8 @@ private com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager() {
private String arcSettingName;
+ private ArcSettingsPatch updateArcSetting;
+
public ArcSettingImpl withExistingCluster(String resourceGroupName, String clusterName) {
this.resourceGroupName = resourceGroupName;
this.clusterName = clusterName;
@@ -108,6 +133,40 @@ public ArcSetting create(Context context) {
this.arcSettingName = name;
}
+ public ArcSettingImpl update() {
+ this.updateArcSetting = new ArcSettingsPatch();
+ return this;
+ }
+
+ public ArcSetting apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getArcSettings()
+ .updateWithResponse(resourceGroupName, clusterName, arcSettingName, updateArcSetting, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ArcSetting apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getArcSettings()
+ .updateWithResponse(resourceGroupName, clusterName, arcSettingName, updateArcSetting, context)
+ .getValue();
+ return this;
+ }
+
+ ArcSettingImpl(
+ ArcSettingInner innerObject, com.azure.resourcemanager.azurestackhci.AzureStackHciManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.clusterName = Utils.getValueFromIdByName(innerObject.id(), "clusters");
+ this.arcSettingName = Utils.getValueFromIdByName(innerObject.id(), "arcSettings");
+ }
+
public ArcSetting refresh() {
this.innerObject =
serviceManager
@@ -128,8 +187,65 @@ public ArcSetting refresh(Context context) {
return this;
}
+ public PasswordCredential generatePassword() {
+ return serviceManager.arcSettings().generatePassword(resourceGroupName, clusterName, arcSettingName);
+ }
+
+ public Response generatePasswordWithResponse(Context context) {
+ return serviceManager
+ .arcSettings()
+ .generatePasswordWithResponse(resourceGroupName, clusterName, arcSettingName, context);
+ }
+
+ public ArcIdentityResponse createIdentity() {
+ return serviceManager.arcSettings().createIdentity(resourceGroupName, clusterName, arcSettingName);
+ }
+
+ public ArcIdentityResponse createIdentity(Context context) {
+ return serviceManager.arcSettings().createIdentity(resourceGroupName, clusterName, arcSettingName, context);
+ }
+
public ArcSettingImpl withArcInstanceResourceGroup(String arcInstanceResourceGroup) {
this.innerModel().withArcInstanceResourceGroup(arcInstanceResourceGroup);
return this;
}
+
+ public ArcSettingImpl withArcApplicationClientId(String arcApplicationClientId) {
+ this.innerModel().withArcApplicationClientId(arcApplicationClientId);
+ return this;
+ }
+
+ public ArcSettingImpl withArcApplicationTenantId(String arcApplicationTenantId) {
+ this.innerModel().withArcApplicationTenantId(arcApplicationTenantId);
+ return this;
+ }
+
+ public ArcSettingImpl withArcServicePrincipalObjectId(String arcServicePrincipalObjectId) {
+ this.innerModel().withArcServicePrincipalObjectId(arcServicePrincipalObjectId);
+ return this;
+ }
+
+ public ArcSettingImpl withArcApplicationObjectId(String arcApplicationObjectId) {
+ this.innerModel().withArcApplicationObjectId(arcApplicationObjectId);
+ return this;
+ }
+
+ public ArcSettingImpl withConnectivityProperties(Object connectivityProperties) {
+ if (isInCreateMode()) {
+ this.innerModel().withConnectivityProperties(connectivityProperties);
+ return this;
+ } else {
+ this.updateArcSetting.withConnectivityProperties(connectivityProperties);
+ return this;
+ }
+ }
+
+ public ArcSettingImpl withTags(Map tags) {
+ this.updateArcSetting.withTags(tags);
+ return this;
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
+ }
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcSettingsClientImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcSettingsClientImpl.java
index e20bce03155d..0da1463d4857 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
@@ -12,7 +12,9 @@
import com.azure.core.annotation.Headers;
import com.azure.core.annotation.Host;
import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
import com.azure.core.annotation.Put;
import com.azure.core.annotation.QueryParam;
import com.azure.core.annotation.ReturnType;
@@ -32,8 +34,11 @@
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.azurestackhci.fluent.ArcSettingsClient;
+import com.azure.resourcemanager.azurestackhci.fluent.models.ArcIdentityResponseInner;
import com.azure.resourcemanager.azurestackhci.fluent.models.ArcSettingInner;
+import com.azure.resourcemanager.azurestackhci.fluent.models.PasswordCredentialInner;
import com.azure.resourcemanager.azurestackhci.models.ArcSettingList;
+import com.azure.resourcemanager.azurestackhci.models.ArcSettingsPatch;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -112,6 +117,23 @@ Mono> create(
@HeaderParam("Accept") String accept,
Context context);
+ @Headers({"Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI"
+ + "/clusters/{clusterName}/arcSettings/{arcSettingName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> update(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("clusterName") String clusterName,
+ @PathParam("arcSettingName") String arcSettingName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") ArcSettingsPatch arcSetting,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({"Content-Type: application/json"})
@Delete(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI"
@@ -128,6 +150,38 @@ Mono>> delete(
@HeaderParam("Accept") String accept,
Context context);
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI"
+ + "/clusters/{clusterName}/arcSettings/{arcSettingName}/generatePassword")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> generatePassword(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("clusterName") String clusterName,
+ @PathParam("arcSettingName") String arcSettingName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI"
+ + "/clusters/{clusterName}/arcSettings/{arcSettingName}/createArcIdentity")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createIdentity(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("clusterName") String clusterName,
+ @PathParam("arcSettingName") String arcSettingName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({"Content-Type: application/json"})
@Get("{nextLink}")
@ExpectedResponses({200})
@@ -440,14 +494,7 @@ private Mono> getWithResponseAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(String resourceGroupName, String clusterName, String arcSettingName) {
return getWithResponseAsync(resourceGroupName, clusterName, arcSettingName)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
@@ -622,14 +669,7 @@ private Mono> createWithResponseAsync(
private Mono createAsync(
String resourceGroupName, String clusterName, String arcSettingName, ArcSettingInner arcSetting) {
return createWithResponseAsync(resourceGroupName, clusterName, arcSettingName, arcSetting)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
@@ -673,6 +713,188 @@ public Response createWithResponse(
return createWithResponseAsync(resourceGroupName, clusterName, arcSettingName, arcSetting, context).block();
}
+ /**
+ * Update ArcSettings for HCI 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 arcSetting ArcSettings parameters that needs to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return arcSetting details along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(
+ String resourceGroupName, String clusterName, String arcSettingName, ArcSettingsPatch arcSetting) {
+ 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 (arcSettingName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter arcSettingName is required and cannot be null."));
+ }
+ if (arcSetting == null) {
+ return Mono.error(new IllegalArgumentException("Parameter arcSetting is required and cannot be null."));
+ } else {
+ arcSetting.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterName,
+ arcSettingName,
+ this.client.getApiVersion(),
+ arcSetting,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Update ArcSettings for HCI 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 arcSetting ArcSettings parameters that needs to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return arcSetting details along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(
+ String resourceGroupName,
+ String clusterName,
+ String arcSettingName,
+ ArcSettingsPatch arcSetting,
+ 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 (arcSettingName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter arcSettingName is required and cannot be null."));
+ }
+ if (arcSetting == null) {
+ return Mono.error(new IllegalArgumentException("Parameter arcSetting is required and cannot be null."));
+ } else {
+ arcSetting.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterName,
+ arcSettingName,
+ this.client.getApiVersion(),
+ arcSetting,
+ accept,
+ context);
+ }
+
+ /**
+ * Update ArcSettings for HCI 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 arcSetting ArcSettings parameters that needs to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return arcSetting details on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String resourceGroupName, String clusterName, String arcSettingName, ArcSettingsPatch arcSetting) {
+ return updateWithResponseAsync(resourceGroupName, clusterName, arcSettingName, arcSetting)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Update ArcSettings for HCI 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 arcSetting ArcSettings parameters that needs to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return arcSetting details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ArcSettingInner update(
+ String resourceGroupName, String clusterName, String arcSettingName, ArcSettingsPatch arcSetting) {
+ return updateAsync(resourceGroupName, clusterName, arcSettingName, arcSetting).block();
+ }
+
+ /**
+ * Update ArcSettings for HCI 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 arcSetting ArcSettings parameters that needs to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return arcSetting details along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response updateWithResponse(
+ String resourceGroupName,
+ String clusterName,
+ String arcSettingName,
+ ArcSettingsPatch arcSetting,
+ Context context) {
+ return updateWithResponseAsync(resourceGroupName, clusterName, arcSettingName, arcSetting, context).block();
+ }
+
/**
* Delete ArcSetting resource details of HCI Cluster.
*
@@ -925,6 +1147,430 @@ public void delete(String resourceGroupName, String clusterName, String arcSetti
deleteAsync(resourceGroupName, clusterName, arcSettingName, context).block();
}
+ /**
+ * Generate password for arc settings.
+ *
+ * @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.
+ * @return the response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> generatePasswordWithResponseAsync(
+ String resourceGroupName, String clusterName, String arcSettingName) {
+ 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 (arcSettingName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter arcSettingName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .generatePassword(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterName,
+ arcSettingName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Generate password for arc settings.
+ *
+ * @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.
+ * @return the response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> generatePasswordWithResponseAsync(
+ String resourceGroupName, String clusterName, String arcSettingName, 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 (arcSettingName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter arcSettingName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .generatePassword(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterName,
+ arcSettingName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Generate password for arc settings.
+ *
+ * @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.
+ * @return the response body on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono generatePasswordAsync(
+ String resourceGroupName, String clusterName, String arcSettingName) {
+ return generatePasswordWithResponseAsync(resourceGroupName, clusterName, arcSettingName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Generate password for arc settings.
+ *
+ * @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.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PasswordCredentialInner generatePassword(
+ String resourceGroupName, String clusterName, String arcSettingName) {
+ return generatePasswordAsync(resourceGroupName, clusterName, arcSettingName).block();
+ }
+
+ /**
+ * Generate password for arc settings.
+ *
+ * @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.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response generatePasswordWithResponse(
+ String resourceGroupName, String clusterName, String arcSettingName, Context context) {
+ return generatePasswordWithResponseAsync(resourceGroupName, clusterName, arcSettingName, context).block();
+ }
+
+ /**
+ * Create Aad identity for arc settings.
+ *
+ * @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.
+ * @return arcIdentity details along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createIdentityWithResponseAsync(
+ String resourceGroupName, String clusterName, String arcSettingName) {
+ 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 (arcSettingName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter arcSettingName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createIdentity(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterName,
+ arcSettingName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create Aad identity for arc settings.
+ *
+ * @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.
+ * @return arcIdentity details along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createIdentityWithResponseAsync(
+ String resourceGroupName, String clusterName, String arcSettingName, 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 (arcSettingName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter arcSettingName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createIdentity(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ clusterName,
+ arcSettingName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Create Aad identity for arc settings.
+ *
+ * @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.
+ * @return the {@link PollerFlux} for polling of arcIdentity details.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ArcIdentityResponseInner> beginCreateIdentityAsync(
+ String resourceGroupName, String clusterName, String arcSettingName) {
+ Mono>> mono =
+ createIdentityWithResponseAsync(resourceGroupName, clusterName, arcSettingName);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ ArcIdentityResponseInner.class,
+ ArcIdentityResponseInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Create Aad identity for arc settings.
+ *
+ * @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.
+ * @return the {@link PollerFlux} for polling of arcIdentity details.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ArcIdentityResponseInner> beginCreateIdentityAsync(
+ String resourceGroupName, String clusterName, String arcSettingName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ createIdentityWithResponseAsync(resourceGroupName, clusterName, arcSettingName, context);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ ArcIdentityResponseInner.class,
+ ArcIdentityResponseInner.class,
+ context);
+ }
+
+ /**
+ * Create Aad identity for arc settings.
+ *
+ * @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.
+ * @return the {@link SyncPoller} for polling of arcIdentity details.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ArcIdentityResponseInner> beginCreateIdentity(
+ String resourceGroupName, String clusterName, String arcSettingName) {
+ return beginCreateIdentityAsync(resourceGroupName, clusterName, arcSettingName).getSyncPoller();
+ }
+
+ /**
+ * Create Aad identity for arc settings.
+ *
+ * @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.
+ * @return the {@link SyncPoller} for polling of arcIdentity details.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ArcIdentityResponseInner> beginCreateIdentity(
+ String resourceGroupName, String clusterName, String arcSettingName, Context context) {
+ return beginCreateIdentityAsync(resourceGroupName, clusterName, arcSettingName, context).getSyncPoller();
+ }
+
+ /**
+ * Create Aad identity for arc settings.
+ *
+ * @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.
+ * @return arcIdentity details on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createIdentityAsync(
+ String resourceGroupName, String clusterName, String arcSettingName) {
+ return beginCreateIdentityAsync(resourceGroupName, clusterName, arcSettingName)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create Aad identity for arc settings.
+ *
+ * @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.
+ * @return arcIdentity details on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createIdentityAsync(
+ String resourceGroupName, String clusterName, String arcSettingName, Context context) {
+ return beginCreateIdentityAsync(resourceGroupName, clusterName, arcSettingName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create Aad identity for arc settings.
+ *
+ * @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.
+ * @return arcIdentity details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ArcIdentityResponseInner createIdentity(
+ String resourceGroupName, String clusterName, String arcSettingName) {
+ return createIdentityAsync(resourceGroupName, clusterName, arcSettingName).block();
+ }
+
+ /**
+ * Create Aad identity for arc settings.
+ *
+ * @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.
+ * @return arcIdentity details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ArcIdentityResponseInner createIdentity(
+ String resourceGroupName, String clusterName, String arcSettingName, Context context) {
+ return createIdentityAsync(resourceGroupName, clusterName, arcSettingName, context).block();
+ }
+
/**
* Get the next page of items.
*
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 552592e3f23f..e7fc8d055b32 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
@@ -10,9 +10,13 @@
import com.azure.core.util.Context;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.azurestackhci.fluent.ArcSettingsClient;
+import com.azure.resourcemanager.azurestackhci.fluent.models.ArcIdentityResponseInner;
import com.azure.resourcemanager.azurestackhci.fluent.models.ArcSettingInner;
+import com.azure.resourcemanager.azurestackhci.fluent.models.PasswordCredentialInner;
+import com.azure.resourcemanager.azurestackhci.models.ArcIdentityResponse;
import com.azure.resourcemanager.azurestackhci.models.ArcSetting;
import com.azure.resourcemanager.azurestackhci.models.ArcSettings;
+import com.azure.resourcemanager.azurestackhci.models.PasswordCredential;
public final class ArcSettingsImpl implements ArcSettings {
private static final ClientLogger LOGGER = new ClientLogger(ArcSettingsImpl.class);
@@ -70,6 +74,52 @@ 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 =
+ this.serviceClient().generatePasswordWithResponse(resourceGroupName, clusterName, arcSettingName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new PasswordCredentialImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public ArcIdentityResponse createIdentity(String resourceGroupName, String clusterName, String arcSettingName) {
+ ArcIdentityResponseInner inner =
+ this.serviceClient().createIdentity(resourceGroupName, clusterName, arcSettingName);
+ if (inner != null) {
+ return new ArcIdentityResponseImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public ArcIdentityResponse createIdentity(
+ String resourceGroupName, String clusterName, String arcSettingName, Context context) {
+ ArcIdentityResponseInner inner =
+ this.serviceClient().createIdentity(resourceGroupName, clusterName, arcSettingName, context);
+ if (inner != null) {
+ return new ArcIdentityResponseImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public ArcSetting getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
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 deb531de19bc..31e4c5141f02 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,9 +119,6 @@ public AzureStackHciClientBuilder serializerAdapter(SerializerAdapter serializer
* @return an instance of AzureStackHciClientImpl.
*/
public AzureStackHciClientImpl buildClient() {
- if (pipeline == null) {
- this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
- }
if (endpoint == null) {
this.endpoint = "https://management.azure.com";
}
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 f2a2de92f00e..773a2426d48d 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
@@ -15,6 +15,7 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.management.polling.PollerFactory;
import com.azure.core.util.Context;
+import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.AsyncPollResponse;
import com.azure.core.util.polling.LongRunningOperationStatus;
@@ -32,7 +33,6 @@
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.time.Duration;
-import java.util.Map;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -181,7 +181,7 @@ public OperationsClient getOperations() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2022-01-01";
+ this.apiVersion = "2022-05-01";
this.arcSettings = new ArcSettingsClientImpl(this);
this.clusters = new ClustersClientImpl(this);
this.extensions = new ExtensionsClientImpl(this);
@@ -204,10 +204,7 @@ public Context getContext() {
* @return the merged context.
*/
public Context mergeContext(Context context) {
- for (Map.Entry