diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index e1790914a4e0..8c702f8158d6 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -339,7 +339,7 @@ com.azure.resourcemanager:azure-resourcemanager-advisor;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-appconfiguration;1.1.0;1.2.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-attestation;1.0.0-beta.3;1.0.0-beta.4
com.azure.resourcemanager:azure-resourcemanager-azurestack;1.0.0;1.1.0-beta.1
-com.azure.resourcemanager:azure-resourcemanager-azurestackhci;1.0.0-beta.5;1.0.0-beta.6
+com.azure.resourcemanager:azure-resourcemanager-azurestackhci;1.0.0-beta.5;1.0.0
com.azure.resourcemanager:azure-resourcemanager-avs;1.4.0;1.5.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-consumption;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-commerce;1.0.0-beta.2;1.0.0-beta.3
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/CHANGELOG.md b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/CHANGELOG.md
index cbb537d7d6e6..7a8975fd6924 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/CHANGELOG.md
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/CHANGELOG.md
@@ -1,14 +1,707 @@
# Release History
-## 1.0.0-beta.6 (Unreleased)
+## 1.0.0 (2026-02-04)
-### Features Added
+- Azure Resource Manager Azure Stack Hci client library for Java. This package contains Microsoft Azure SDK for Azure Stack Hci Management SDK. Azure Stack HCI service. Package api-version 2026-02-01. 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.SkuList` was removed
+
+#### `models.EdgeDeviceListResult` was removed
+
+#### `models.UpdateRunList` was removed
+
+#### `models.OperationListResult` was removed
+
+#### `models.ClusterList` was removed
+
+#### `models.UpdateSummariesList` was removed
+
+#### `models.ArcSettingList` was removed
+
+#### `models.SecuritySettingListResult` was removed
+
+#### `models.UpdateList` was removed
+
+#### `models.PublisherList` was removed
+
+#### `models.OfferList` was removed
+
+#### `models.ExtensionList` was removed
+
+#### `models.DeploymentSettingListResult` was removed
+
+#### `models.Publisher` was removed
+
+#### `models.Publishers` was removed
+
+#### `models.SoftwareAssuranceChangeRequestProperties` was modified
+
+* `validate()` was removed
+
+#### `models.IsolatedVmAttestationConfiguration` was modified
+
+* `IsolatedVmAttestationConfiguration()` was changed to private access
+* `validate()` was removed
+
+#### `models.HciOsProfile` was modified
+
+* `HciOsProfile()` was changed to private access
+* `validate()` was removed
+
+#### `models.SoftwareAssuranceChangeRequest` was modified
+
+* `validate()` was removed
+
+#### `models.ClusterNode` was modified
+
+* `ClusterNode()` was changed to private access
+* `java.lang.Float memoryInGiB()` -> `java.lang.Double memoryInGiB()`
+* `java.lang.Float coreCount()` -> `java.lang.Double coreCount()`
+* `java.lang.Float id()` -> `java.lang.Double id()`
+* `validate()` was removed
+
+#### `models.SwitchDetail` was modified
+
+* `SwitchDetail()` was changed to private access
+* `validate()` was removed
+
+#### `models.PrecheckResultTags` was modified
+
+* `validate()` was removed
+
+#### `models.HciEdgeDevice` was modified
+
+* `validate()` was removed
+
+#### `models.DeploymentData` was modified
+
+* `validate()` was removed
+
+#### `models.HciReportedProperties` was modified
+
+* `HciReportedProperties()` was changed to private access
+* `validate()` was removed
+
+#### `models.LogCollectionRequestProperties` was modified
+
+* `validate()` was removed
+
+#### `models.HciEdgeDeviceProperties` was modified
+
+* `validate()` was removed
+
+#### `models.SoftwareAssuranceProperties` was modified
+
+* `validate()` was removed
+
+#### `models.Operation` was modified
+
+* `Operation()` was removed
+* `models.OperationDisplay display()` -> `models.OperationDisplay display()`
+* `withDisplay(models.OperationDisplay)` was removed
+* `models.ActionType actionType()` -> `models.ActionType actionType()`
+* `java.lang.Boolean isDataAction()` -> `java.lang.Boolean isDataAction()`
+* `models.Origin origin()` -> `models.Origin origin()`
+* `toJson(com.azure.json.JsonWriter)` was removed
+* `validate()` was removed
+* `fromJson(com.azure.json.JsonReader)` was removed
+* `java.lang.String name()` -> `java.lang.String name()`
+
+#### `models.ClusterDesiredProperties` was modified
+
+* `validate()` was removed
+
+#### `models.HciValidationFailureDetail` was modified
+
+* `HciValidationFailureDetail()` was changed to private access
+* `validate()` was removed
+
+#### `models.SecuritySetting$Update` was modified
+
+* `withProvisioningState(models.ProvisioningState)` was removed
+
+#### `models.ArcSetting$Definition` was modified
+
+* `withConnectivityProperties(java.lang.Object)` was removed
+
+#### `models.ClusterReportedProperties` was modified
+
+* `ClusterReportedProperties()` was changed to private access
+* `validate()` was removed
+* `withDiagnosticLevel(models.DiagnosticLevel)` was removed
+
+#### `models.PhysicalNodes` was modified
+
+* `validate()` was removed
+
+#### `models.Storage` was modified
+
+* `validate()` was removed
+
+#### `models.EceDeploymentSecrets` was modified
+
+* `validate()` was removed
+
+#### `models.DeviceConfiguration` was modified
+
+* `validate()` was removed
+
+#### `models.ExtensionUpgradeParameters` was modified
+
+* `validate()` was removed
+
+#### `models.DeploymentCluster` was modified
+
+* `validate()` was removed
+
+#### `models.ExtensionPatchParameters` was modified
+
+* `validate()` was removed
+
+#### `models.DeploymentSettingHostNetwork` was modified
+
+* `validate()` was removed
+
+#### `models.DeploymentStep` was modified
+
+* `DeploymentStep()` was changed to private access
+* `validate()` was removed
+
+#### `models.EceActionStatus` was modified
+
+* `EceActionStatus()` was changed to private access
+* `validate()` was removed
+
+#### `models.Cluster` was modified
+
+* `java.util.UUID tenantId()` -> `java.lang.String tenantId()`
+* `java.util.UUID principalId()` -> `java.lang.String principalId()`
+* `java.lang.Float trialDaysRemaining()` -> `java.lang.Double trialDaysRemaining()`
+
+#### `models.UploadCertificateRequest` was modified
+
+* `validate()` was removed
+
+#### `models.LogCollectionRequest` was modified
+
+* `validate()` was removed
+
+#### `models.PerNodeState` was modified
+
+* `PerNodeState()` was changed to private access
+* `validate()` was removed
+
+#### `models.ScaleUnits` was modified
+
+* `validate()` was removed
+
+#### `models.ExtensionPatch` was modified
+
+* `validate()` was removed
+
+#### `models.OptionalServices` was modified
+
+* `validate()` was removed
+
+#### `models.HciEdgeDeviceAdapterPropertyOverrides` was modified
+
+* `HciEdgeDeviceAdapterPropertyOverrides()` was changed to private access
+* `validate()` was removed
+
+#### `models.DeploymentSettingStorageAdapterIpInfo` was modified
+
+* `validate()` was removed
+
+#### `models.SkuMappings` was modified
+
+* `SkuMappings()` was changed to private access
+* `withCatalogPlanId(java.lang.String)` was removed
+* `validate()` was removed
+* `withMarketplaceSkuVersions(java.util.List)` was removed
+* `withMarketplaceSkuId(java.lang.String)` was removed
+
+#### `models.ValidateRequest` was modified
+
+* `validate()` was removed
+
+#### `models.SdnIntegration` was modified
+
+* `validate()` was removed
+
+#### `models.HciNetworkProfile` was modified
+
+* `HciNetworkProfile()` was changed to private access
+* `validate()` was removed
+
+#### `models.LogCollectionProperties` was modified
+
+* `validate()` was removed
+
+#### `models.OperationDisplay` was modified
+
+* `OperationDisplay()` was changed to private access
+* `validate()` was removed
+
+#### `models.InfrastructureNetwork` was modified
+
+* `validate()` was removed
+
+#### `models.HciEdgeDeviceArcExtension` was modified
+
+* `HciEdgeDeviceArcExtension()` was changed to private access
+* `validate()` was removed
+
+#### `models.ExtensionInstanceViewStatus` was modified
+
+* `ExtensionInstanceViewStatus()` was changed to private access
+* `validate()` was removed
+* `withCode(java.lang.String)` was removed
+* `withDisplayStatus(java.lang.String)` was removed
+* `withMessage(java.lang.String)` was removed
+* `withLevel(models.StatusLevelTypes)` was removed
+* `withTime(java.time.OffsetDateTime)` was removed
+
+#### `models.NetworkController` was modified
+
+* `validate()` was removed
+
+#### `models.HciEdgeDeviceIntents` was modified
+
+* `HciEdgeDeviceIntents()` was changed to private access
+* `validate()` was removed
+
+#### `models.LogCollectionSession` was modified
+
+* `LogCollectionSession()` was changed to private access
+* `validate()` was removed
+
+#### `models.SwitchExtension` was modified
+
+* `SwitchExtension()` was changed to private access
+* `validate()` was removed
+
+#### `models.PerNodeRemoteSupportSession` was modified
+
+* `PerNodeRemoteSupportSession()` was changed to private access
+* `validate()` was removed
+
+#### `models.SbeDeploymentPackageInfo` was modified
+
+* `SbeDeploymentPackageInfo()` was changed to private access
+* `validate()` was removed
+
+#### `models.SecurityComplianceStatus` was modified
+
+* `SecurityComplianceStatus()` was changed to private access
+* `validate()` was removed
+
+#### `models.IpPools` was modified
+
+* `validate()` was removed
+
+#### `models.ReportedProperties` was modified
+
+* `validate()` was removed
+
+#### `models.RemoteSupportProperties` was modified
+
+* `validate()` was removed
+
+#### `models.QosPolicyOverrides` was modified
+
+* `validate()` was removed
+
+#### `models.DeploymentSettingVirtualSwitchConfigurationOverrides` was modified
+
+* `validate()` was removed
+
+#### `models.SbePartnerProperties` was modified
+
+* `validate()` was removed
+
+#### `models.NicDetail` was modified
+
+* `validate()` was removed
+
+#### `models.RawCertificateData` was modified
+
+* `validate()` was removed
+
+#### `models.HciNicDetail` was modified
+
+* `HciNicDetail()` was changed to private access
+* `validate()` was removed
+
+#### `models.EdgeDeviceProperties` was modified
+
+* `validate()` was removed
+
+#### `models.UpdatePrerequisite` was modified
+
+* `validate()` was removed
+
+#### `models.EceReportedProperties` was modified
+
+* `EceReportedProperties()` was changed to private access
+* `validate()` was removed
+
+#### `models.HciEdgeDeviceStorageNetworks` was modified
+
+* `HciEdgeDeviceStorageNetworks()` was changed to private access
+* `validate()` was removed
+
+#### `models.HciUpdate$Update` was modified
+
+* `withProgressPercentage(java.lang.Float)` was removed
+* `withPackageSizeInMb(java.lang.Float)` was removed
+
+#### `models.ArcSetting` was modified
+
+* `java.lang.Object connectivityProperties()` -> `models.ArcConnectivityProperties connectivityProperties()`
+
+#### `models.DeploymentSettingAdapterPropertyOverrides` was modified
+
+* `validate()` was removed
+
+#### `models.SbePartnerInfo` was modified
+
+* `validate()` was removed
+
+#### `models.DeploymentSettingIntents` was modified
+
+* `validate()` was removed
+
+#### `models.DefaultExtensionDetails` was modified
+
+* `DefaultExtensionDetails()` was changed to private access
+* `validate()` was removed
+
+#### `models.DeploymentSecuritySettings` was modified
+
+* `validate()` was removed
+
+#### `models.RemoteSupportRequest` was modified
+
+* `validate()` was removed
+
+#### `models.SecuritySetting$Definition` was modified
+
+* `withProvisioningState(models.ProvisioningState)` was removed
+
+#### `models.SbeCredentials` was modified
+
+* `validate()` was removed
+
+#### `models.ClusterPatch` was modified
+
+* `java.util.UUID tenantId()` -> `java.lang.String tenantId()`
+* `java.util.UUID principalId()` -> `java.lang.String principalId()`
+* `validate()` was removed
+
+#### `models.HciUpdate$Definition` was modified
+
+* `withProgressPercentage(java.lang.Float)` was removed
+* `withPackageSizeInMb(java.lang.Float)` was removed
+
+#### `models.HciUpdate` was modified
+
+* `java.lang.Float packageSizeInMb()` -> `java.lang.Double packageSizeInMb()`
+* `java.lang.Float progressPercentage()` -> `java.lang.Double progressPercentage()`
+
+#### `models.ArcSetting$Update` was modified
+
+* `withConnectivityProperties(java.lang.Object)` was removed
+
+#### `models.UserAssignedIdentity` was modified
+
+* `validate()` was removed
+* `java.util.UUID clientId()` -> `java.lang.String clientId()`
+* `java.util.UUID principalId()` -> `java.lang.String principalId()`
+
+#### `models.Operations` was modified
+
+* `listWithResponse(com.azure.core.util.Context)` was removed
+* `models.OperationListResult list()` -> `com.azure.core.http.rest.PagedIterable list()`
+
+#### `models.ExtensionProfile` was modified
+
+* `ExtensionProfile()` was changed to private access
+* `validate()` was removed
+
+#### `models.HciEdgeDeviceHostNetwork` was modified
+
+* `HciEdgeDeviceHostNetwork()` was changed to private access
+* `validate()` was removed
+
+#### `models.HciEdgeDeviceStorageAdapterIpInfo` was modified
+
+* `HciEdgeDeviceStorageAdapterIpInfo()` was changed to private access
+* `validate()` was removed
+
+#### `models.SbeDeploymentInfo` was modified
+
+* `validate()` was removed
+
+#### `models.RemoteSupportNodeSettings` was modified
+
+* `RemoteSupportNodeSettings()` was changed to private access
+* `validate()` was removed
+
+#### `models.PrecheckResult` was modified
+
+* `validate()` was removed
+
+#### `AzureStackHciManager` was modified
+
+* `publishers()` was removed
+* `fluent.AzureStackHciClient serviceClient()` -> `fluent.AzureStackHciManagementClient serviceClient()`
+
+#### `models.DeploymentConfiguration` was modified
+
+* `validate()` was removed
+
+#### `models.HciEdgeDeviceVirtualSwitchConfigurationOverrides` was modified
+
+* `HciEdgeDeviceVirtualSwitchConfigurationOverrides()` was changed to private access
+* `validate()` was removed
+
+#### `models.RemoteSupportRequestProperties` was modified
+
+* `validate()` was removed
+
+#### `models.LogCollectionError` was modified
+
+* `LogCollectionError()` was changed to private access
+* `validate()` was removed
+
+#### `models.ArcSettingsPatch` was modified
+
+* `java.lang.Object connectivityProperties()` -> `models.ArcConnectivityProperties connectivityProperties()`
+* `validate()` was removed
+* `withConnectivityProperties(java.lang.Object)` was removed
+
+#### `models.PerNodeExtensionState` was modified
+
+* `PerNodeExtensionState()` was changed to private access
+* `validate()` was removed
+
+#### `models.ExtensionInstanceView` was modified
+
+* `ExtensionInstanceView()` was changed to private access
+* `withTypeHandlerVersion(java.lang.String)` was removed
+* `validate()` was removed
+* `withStatus(models.ExtensionInstanceViewStatus)` was removed
+* `withType(java.lang.String)` was removed
+* `withName(java.lang.String)` was removed
+
+#### `models.PackageVersionInfo` was modified
+
+* `validate()` was removed
+
+#### `models.DeploymentSettingStorageNetworks` was modified
+
+* `validate()` was removed
+
+#### `models.Observability` was modified
+
+* `validate()` was removed
+
+### Features Added
+
+* `models.RemoteSupportSession` was added
+
+* `models.JobStatus` was added
+
+* `models.DnsServerConfig` was added
+
+* `models.HciEdgeDeviceJobProperties` was added
+
+* `models.HciHardwareProfile` was added
+
+* `models.ValidatedSolutionRecipes` was added
+
+* `models.HciEdgeDeviceJobType` was added
+
+* `models.ValidatedSolutionRecipeComponent` was added
+
+* `models.ReconcileArcSettingsRequest` was added
+
+* `models.ReconcileArcSettingsRequestProperties` was added
+
+* `models.LocalAvailabilityZones` was added
+
+* `models.EdgeDeviceJobs` was added
+
+* `models.ValidatedSolutionRecipeComponentMetadata` was added
+
+* `models.DnsZones` was added
+
+* `models.HciStorageProfile` was added
+
+* `models.ValidatedSolutionRecipeComponentPayload` was added
+
+* `models.ClusterPattern` was added
+
+* `models.ValidatedSolutionRecipeInfo` was added
+
+* `models.AssemblyInfo` was added
+
+* `models.SecretsLocationsChangeRequest` was added
+
+* `models.RemoteSupportAccessLevel` was added
+
+* `models.LogCollectionJobSession` was added
+
+* `models.ValidatedSolutionRecipeCapabilities` was added
+
+* `models.SecretsType` was added
+
+* `models.AssemblyInfoPayload` was added
+
+* `models.RemoteSupportJobReportedProperties` was added
+
+* `models.RemoteSupportJobNodeSettings` was added
+
+* `models.RdmaCapability` was added
+
+* `models.DeviceLogCollectionStatus` was added
+
+* `models.ValidatedSolutionRecipeContent` was added
+
+* `models.ServiceConfiguration` was added
+
+* `models.SecretsLocationDetails` was added
+
+* `models.ArcConnectivityProperties` was added
+
+* `models.HciRemoteSupportJobProperties` was added
+
+* `models.IdentityProvider` was added
+
+* `models.HardwareClass` was added
+
+* `models.ValidatedSolutionRecipeCapability` was added
+
+* `models.ServiceName` was added
+
+* `models.EdgeDeviceJob` was added
+
+* `models.LogCollectionReportedProperties` was added
+
+* `models.EdgeDeviceKind` was added
+
+* `models.ValidatedSolutionRecipeProperties` was added
+
+* `models.HciEdgeDeviceJob` was added
+
+* `models.ValidatedSolutionRecipe` was added
+
+* `models.HciCollectLogJobProperties` was added
+
+#### `models.DeploymentData` was modified
+
+* `withAssemblyInfo(models.AssemblyInfo)` was added
+* `identityProvider()` was added
+* `withLocalAvailabilityZones(java.util.List)` was added
+* `localAvailabilityZones()` was added
+* `isManagementCluster()` was added
+* `withIsManagementCluster(java.lang.Boolean)` was added
+* `withIdentityProvider(models.IdentityProvider)` was added
+* `assemblyInfo()` was added
+
+#### `models.HciReportedProperties` was modified
+
+* `storageProfile()` was added
+* `hardwareProfile()` was added
+
+#### `models.Operation` was modified
+
+* `innerModel()` was added
+
+#### `models.ArcSetting$Definition` was modified
+
+* `withConnectivityProperties(models.ArcConnectivityProperties)` was added
+
+#### `models.Clusters` was modified
+
+* `updateSecretsLocations(java.lang.String,java.lang.String,models.SecretsLocationsChangeRequest,com.azure.core.util.Context)` was added
+* `updateSecretsLocations(java.lang.String,java.lang.String,models.SecretsLocationsChangeRequest)` was added
+
+#### `models.ClusterReportedProperties` was modified
+
+* `msiExpirationTimeStamp()` was added
+* `hardwareClass()` was added
+
+#### `models.DeploymentCluster` was modified
+
+* `clusterPattern()` was added
+* `hardwareClass()` was added
+* `withClusterPattern(models.ClusterPattern)` was added
+
+#### `models.Cluster` was modified
+
+* `updateSecretsLocations(models.SecretsLocationsChangeRequest,com.azure.core.util.Context)` was added
+* `isManagementCluster()` was added
+* `identityProvider()` was added
+* `clusterPattern()` was added
+* `localAvailabilityZones()` was added
+* `updateSecretsLocations(models.SecretsLocationsChangeRequest)` was added
+* `secretsLocations()` was added
+
+#### `models.InfrastructureNetwork` was modified
+
+* `dnsZones()` was added
+* `withDnsZones(java.util.List)` was added
+* `dnsServerConfig()` was added
+* `withDnsServerConfig(models.DnsServerConfig)` was added
+
+#### `models.ArcSettings` was modified
+
+* `reconcile(java.lang.String,java.lang.String,java.lang.String,models.ReconcileArcSettingsRequest,com.azure.core.util.Context)` was added
+* `reconcile(java.lang.String,java.lang.String,java.lang.String,models.ReconcileArcSettingsRequest)` was added
+
+#### `models.HciNicDetail` was modified
+
+* `rdmaCapability()` was added
+
+#### `models.HciUpdate$Update` was modified
+
+* `withPackageSizeInMb(java.lang.Double)` was added
+* `withProgressPercentage(java.lang.Double)` was added
+
+#### `models.ArcSetting` was modified
+
+* `reconcile(models.ReconcileArcSettingsRequest)` was added
+* `reconcile(models.ReconcileArcSettingsRequest,com.azure.core.util.Context)` was added
+
+#### `models.HciUpdate$Definition` was modified
+
+* `withProgressPercentage(java.lang.Double)` was added
+* `withPackageSizeInMb(java.lang.Double)` was added
+
+#### `models.ArcSetting$Update` was modified
+
+* `withConnectivityProperties(models.ArcConnectivityProperties)` was added
+
+#### `models.Operations` was modified
+
+* `list(com.azure.core.util.Context)` was added
+
+#### `models.Cluster$Definition` was modified
+
+* `withSecretsLocations(java.util.List)` was added
+* `withLocalAvailabilityZones(java.util.List)` was added
+
+#### `AzureStackHciManager` was modified
+
+* `edgeDeviceJobs()` was added
+* `validatedSolutionRecipes()` was added
+
+#### `models.ArcSettingsPatch` was modified
-### Other Changes
+* `withConnectivityProperties(models.ArcConnectivityProperties)` was added
## 1.0.0-beta.5 (2024-08-26)
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/README.md b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/README.md
index 7db00378283c..ed1e8af466cb 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/README.md
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/README.md
@@ -1,8 +1,8 @@
-# Azure Resource Manager AzureStackHci client library for Java
+# Azure Resource Manager Azure Stack Hci client library for Java
-Azure Resource Manager AzureStackHci client library for Java.
+Azure Resource Manager Azure Stack Hci client library for Java.
-This package contains Microsoft Azure SDK for AzureStackHci Management SDK. Azure Stack HCI management service. Package tag package-2024-04. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for Azure Stack Hci Management SDK. Azure Stack HCI service. Package api-version 2026-02-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-azurestackhci
- 1.0.0-beta.6
+ 1.0.0
```
[//]: # ({x-version-update-end})
@@ -52,7 +52,7 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
```java
-AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
TokenCredential credential = new DefaultAzureCredentialBuilder()
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
.build();
@@ -60,7 +60,7 @@ AzureStackHciManager manager = AzureStackHciManager
.authenticate(credential, profile);
```
-The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise.
See [Authentication][authenticate] for more options.
@@ -100,5 +100,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
-
-
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/SAMPLE.md b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/SAMPLE.md
index 7554e89c4185..5874163ba157 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/SAMPLE.md
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/SAMPLE.md
@@ -11,6 +11,7 @@
- [Get](#arcsettings_get)
- [InitializeDisableProcess](#arcsettings_initializedisableprocess)
- [ListByCluster](#arcsettings_listbycluster)
+- [Reconcile](#arcsettings_reconcile)
- [Update](#arcsettings_update)
## Clusters
@@ -25,6 +26,7 @@
- [ListByResourceGroup](#clusters_listbyresourcegroup)
- [TriggerLogCollection](#clusters_triggerlogcollection)
- [Update](#clusters_update)
+- [UpdateSecretsLocations](#clusters_updatesecretslocations)
- [UploadCertificate](#clusters_uploadcertificate)
## DeploymentSettings
@@ -34,6 +36,13 @@
- [Get](#deploymentsettings_get)
- [ListByClusters](#deploymentsettings_listbyclusters)
+## EdgeDeviceJobs
+
+- [CreateOrUpdate](#edgedevicejobs_createorupdate)
+- [Delete](#edgedevicejobs_delete)
+- [Get](#edgedevicejobs_get)
+- [ListByEdgeDevice](#edgedevicejobs_listbyedgedevice)
+
## EdgeDevices
- [CreateOrUpdate](#edgedevices_createorupdate)
@@ -61,11 +70,6 @@
- [List](#operations_list)
-## Publishers
-
-- [Get](#publishers_get)
-- [ListByCluster](#publishers_listbycluster)
-
## SecuritySettings
- [CreateOrUpdate](#securitysettings_createorupdate)
@@ -99,6 +103,11 @@
- [List](#updates_list)
- [Post](#updates_post)
- [Put](#updates_put)
+
+## ValidatedSolutionRecipes
+
+- [Get](#validatedsolutionrecipes_get)
+- [ListBySubscriptionLocationResource](#validatedsolutionrecipes_listbysubscriptionlocationresource)
### ArcSettings_ConsentAndInstallDefaultExtensions
```java
@@ -107,9 +116,7 @@
*/
public final class ArcSettingsConsentAndInstallDefaultExtensionsSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ConsentAndInstallDefaultExtensions.json
+ * x-ms-original-file: 2026-02-01/ConsentAndInstallDefaultExtensions.json
*/
/**
* Sample code: Consent And Install Default Extensions.
@@ -133,9 +140,7 @@ public final class ArcSettingsConsentAndInstallDefaultExtensionsSamples {
*/
public final class ArcSettingsCreateSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * PutArcSetting.json
+ * x-ms-original-file: 2026-02-01/PutArcSetting.json
*/
/**
* Sample code: Create ArcSetting.
@@ -156,9 +161,7 @@ public final class ArcSettingsCreateSamples {
*/
public final class ArcSettingsCreateIdentitySamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * CreateArcIdentity.json
+ * x-ms-original-file: 2026-02-01/CreateArcIdentity.json
*/
/**
* Sample code: Create Arc Identity.
@@ -179,9 +182,7 @@ public final class ArcSettingsCreateIdentitySamples {
*/
public final class ArcSettingsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * DeleteArcSetting.json
+ * x-ms-original-file: 2026-02-01/DeleteArcSetting.json
*/
/**
* Sample code: Delete ArcSetting.
@@ -202,9 +203,7 @@ public final class ArcSettingsDeleteSamples {
*/
public final class ArcSettingsGeneratePasswordSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * GeneratePassword.json
+ * x-ms-original-file: 2026-02-01/GeneratePassword.json
*/
/**
* Sample code: Generate Password.
@@ -226,9 +225,7 @@ public final class ArcSettingsGeneratePasswordSamples {
*/
public final class ArcSettingsGetSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * GetArcSetting.json
+ * x-ms-original-file: 2026-02-01/GetArcSetting.json
*/
/**
* Sample code: Get ArcSetting.
@@ -249,9 +246,7 @@ public final class ArcSettingsGetSamples {
*/
public final class ArcSettingsInitializeDisableProcessSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * InitializeDisableProcess.json
+ * x-ms-original-file: 2026-02-01/InitializeDisableProcess.json
*/
/**
* Sample code: Trigger ARC Disable.
@@ -273,9 +268,7 @@ public final class ArcSettingsInitializeDisableProcessSamples {
*/
public final class ArcSettingsListByClusterSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ListArcSettingsByCluster.json
+ * x-ms-original-file: 2026-02-01/ListArcSettingsByCluster.json
*/
/**
* Sample code: List ArcSetting resources by HCI Cluster.
@@ -289,37 +282,66 @@ public final class ArcSettingsListByClusterSamples {
}
```
+### ArcSettings_Reconcile
+
+```java
+import com.azure.resourcemanager.azurestackhci.models.ReconcileArcSettingsRequest;
+import com.azure.resourcemanager.azurestackhci.models.ReconcileArcSettingsRequestProperties;
+import java.util.Arrays;
+
+/**
+ * Samples for ArcSettings Reconcile.
+ */
+public final class ArcSettingsReconcileSamples {
+ /*
+ * x-ms-original-file: 2026-02-01/reconcileArcSettings.json
+ */
+ /**
+ * Sample code: Reconcile Arc Settings.
+ *
+ * @param manager Entry point to AzureStackHciManager.
+ */
+ public static void reconcileArcSettings(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ manager.arcSettings()
+ .reconcile("test-rg", "myCluster", "default",
+ new ReconcileArcSettingsRequest()
+ .withProperties(new ReconcileArcSettingsRequestProperties().withClusterNodes(Arrays.asList(
+ "/subscriptions/sub1/resourceGroup/res1/providers/Microsoft.HybridCompute/machines/m1",
+ "/subscriptions/sub1/resourceGroup/res1/providers/Microsoft.HybridCompute/machines/m2"))),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### ArcSettings_Update
```java
-import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.azurestackhci.models.ArcConnectivityProperties;
import com.azure.resourcemanager.azurestackhci.models.ArcSetting;
-import java.io.IOException;
+import com.azure.resourcemanager.azurestackhci.models.ServiceConfiguration;
+import com.azure.resourcemanager.azurestackhci.models.ServiceName;
+import java.util.Arrays;
/**
* Samples for ArcSettings Update.
*/
public final class ArcSettingsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * PatchArcSetting.json
+ * x-ms-original-file: 2026-02-01/PatchArcSetting.json
*/
/**
* Sample code: Patch ArcSetting.
*
* @param manager Entry point to AzureStackHciManager.
*/
- public static void patchArcSetting(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager)
- throws IOException {
+ public static void patchArcSetting(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
ArcSetting resource = manager.arcSettings()
.getWithResponse("test-rg", "myCluster", "default", com.azure.core.util.Context.NONE)
.getValue();
resource.update()
- .withConnectivityProperties(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("{\"enabled\":true,\"serviceConfigurations\":[{\"port\":6516,\"serviceName\":\"WAC\"}]}",
- Object.class, SerializerEncoding.JSON))
+ .withConnectivityProperties(new ArcConnectivityProperties().withEnabled(true)
+ .withServiceConfigurations(
+ Arrays.asList(new ServiceConfiguration().withServiceName(ServiceName.WAC).withPort(6516L))))
.apply();
}
}
@@ -338,9 +360,7 @@ import java.time.OffsetDateTime;
*/
public final class ClustersConfigureRemoteSupportSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ConfigureRemoteSupport.json
+ * x-ms-original-file: 2026-02-01/ConfigureRemoteSupport.json
*/
/**
* Sample code: Configure Remote Support.
@@ -368,9 +388,7 @@ import com.azure.resourcemanager.azurestackhci.models.ManagedServiceIdentityType
*/
public final class ClustersCreateSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * CreateCluster.json
+ * x-ms-original-file: 2026-02-01/CreateCluster.json
*/
/**
* Sample code: Create cluster.
@@ -382,10 +400,10 @@ public final class ClustersCreateSamples {
.define("myCluster")
.withRegion("East US")
.withExistingResourceGroup("test-rg")
- .withTypeIdentityType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
.withCloudManagementEndpoint("https://98294836-31be-4668-aeae-698667faf99b.waconazure.com")
.withAadClientId("24a6e53d-04e5-44d2-b7cc-1b732a847dfc")
.withAadTenantId("7e589cc1-a8b6-4dff-91bd-5ec0fa18db94")
+ .withTypeIdentityType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
.create();
}
}
@@ -399,9 +417,7 @@ public final class ClustersCreateSamples {
*/
public final class ClustersCreateIdentitySamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * CreateClusterIdentity.json
+ * x-ms-original-file: 2026-02-01/CreateClusterIdentity.json
*/
/**
* Sample code: Create cluster Identity.
@@ -422,9 +438,7 @@ public final class ClustersCreateIdentitySamples {
*/
public final class ClustersDeleteSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * DeleteCluster.json
+ * x-ms-original-file: 2026-02-01/DeleteCluster.json
*/
/**
* Sample code: Delete cluster.
@@ -449,9 +463,7 @@ import com.azure.resourcemanager.azurestackhci.models.SoftwareAssuranceIntent;
*/
public final class ClustersExtendSoftwareAssuranceBenefitSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ExtendSoftwareAssuranceBenefit.json
+ * x-ms-original-file: 2026-02-01/ExtendSoftwareAssuranceBenefit.json
*/
/**
* Sample code: Create cluster Identity.
@@ -476,9 +488,7 @@ public final class ClustersExtendSoftwareAssuranceBenefitSamples {
*/
public final class ClustersGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * GetCluster.json
+ * x-ms-original-file: 2026-02-01/GetCluster.json
*/
/**
* Sample code: Get cluster.
@@ -499,9 +509,7 @@ public final class ClustersGetByResourceGroupSamples {
*/
public final class ClustersListSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ListClustersBySubscription.json
+ * x-ms-original-file: 2026-02-01/ListClustersBySubscription.json
*/
/**
* Sample code: List clusters in a given subscription.
@@ -523,9 +531,7 @@ public final class ClustersListSamples {
*/
public final class ClustersListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ListClustersByResourceGroup.json
+ * x-ms-original-file: 2026-02-01/ListClustersByResourceGroup.json
*/
/**
* Sample code: List clusters in a given resource group.
@@ -551,9 +557,7 @@ import java.time.OffsetDateTime;
*/
public final class ClustersTriggerLogCollectionSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * TriggerLogCollection.json
+ * x-ms-original-file: 2026-02-01/TriggerLogCollection.json
*/
/**
* Sample code: Trigger Log Collection.
@@ -587,9 +591,7 @@ import java.util.Map;
*/
public final class ClustersUpdateSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * UpdateCluster.json
+ * x-ms-original-file: 2026-02-01/UpdateCluster.json
*/
/**
* Sample code: Update cluster.
@@ -624,6 +626,38 @@ public final class ClustersUpdateSamples {
}
```
+### Clusters_UpdateSecretsLocations
+
+```java
+import com.azure.resourcemanager.azurestackhci.models.SecretsLocationDetails;
+import com.azure.resourcemanager.azurestackhci.models.SecretsLocationsChangeRequest;
+import com.azure.resourcemanager.azurestackhci.models.SecretsType;
+import java.util.Arrays;
+
+/**
+ * Samples for Clusters UpdateSecretsLocations.
+ */
+public final class ClustersUpdateSecretsLocationsSamples {
+ /*
+ * x-ms-original-file: 2026-02-01/Clusters_UpdateSecretsLocations.json
+ */
+ /**
+ * Sample code: Update secrets locations for a Cluster.
+ *
+ * @param manager Entry point to AzureStackHciManager.
+ */
+ public static void
+ updateSecretsLocationsForACluster(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ manager.clusters()
+ .updateSecretsLocations("test-rg", "myCluster",
+ new SecretsLocationsChangeRequest().withProperties(
+ Arrays.asList(new SecretsLocationDetails().withSecretsType(SecretsType.BACKUP_SECRETS)
+ .withSecretsLocation("fakeTokenPlaceholder"))),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Clusters_UploadCertificate
```java
@@ -636,9 +670,7 @@ import java.util.Arrays;
*/
public final class ClustersUploadCertificateSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * UploadCertificate.json
+ * x-ms-original-file: 2026-02-01/UploadCertificate.json
*/
/**
* Sample code: Upload certificate.
@@ -669,8 +701,11 @@ import com.azure.resourcemanager.azurestackhci.models.DeploymentSettingIntents;
import com.azure.resourcemanager.azurestackhci.models.DeploymentSettingStorageAdapterIpInfo;
import com.azure.resourcemanager.azurestackhci.models.DeploymentSettingStorageNetworks;
import com.azure.resourcemanager.azurestackhci.models.DeploymentSettingVirtualSwitchConfigurationOverrides;
+import com.azure.resourcemanager.azurestackhci.models.DnsServerConfig;
+import com.azure.resourcemanager.azurestackhci.models.DnsZones;
import com.azure.resourcemanager.azurestackhci.models.EceDeploymentSecrets;
import com.azure.resourcemanager.azurestackhci.models.EceSecrets;
+import com.azure.resourcemanager.azurestackhci.models.IdentityProvider;
import com.azure.resourcemanager.azurestackhci.models.InfrastructureNetwork;
import com.azure.resourcemanager.azurestackhci.models.IpPools;
import com.azure.resourcemanager.azurestackhci.models.NetworkController;
@@ -694,9 +729,120 @@ import java.util.Arrays;
*/
public final class DeploymentSettingsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * PutDeploymentSettings.json
+ * x-ms-original-file: 2026-02-01/PutDeploymentSettingsWithADLess.json
+ */
+ /**
+ * Sample code: Create Deployment Settings Without Active Directory Integration.
+ *
+ * @param manager Entry point to AzureStackHciManager.
+ */
+ public static void createDeploymentSettingsWithoutActiveDirectoryIntegration(
+ com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ manager.deploymentSettings()
+ .define("default")
+ .withExistingCluster("test-rg", "myCluster")
+ .withArcNodeResourceIds(Arrays.asList(
+ "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1",
+ "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2"))
+ .withDeploymentMode(DeploymentMode.DEPLOY)
+ .withOperationType(OperationType.CLUSTER_PROVISIONING)
+ .withDeploymentConfiguration(
+ new DeploymentConfiguration().withVersion("string")
+ .withScaleUnits(Arrays.asList(new ScaleUnits()
+ .withDeploymentData(new DeploymentData()
+ .withSecuritySettings(new DeploymentSecuritySettings().withHvciProtection(true)
+ .withDrtmProtection(true)
+ .withDriftControlEnforced(true)
+ .withCredentialGuardEnforced(false)
+ .withSmbSigningEnforced(true)
+ .withSmbClusterEncryption(false)
+ .withSideChannelMitigationEnforced(true)
+ .withBitlockerBootVolume(true)
+ .withBitlockerDataVolumes(true)
+ .withWdacEnforced(true))
+ .withObservability(new Observability().withStreamingDataClient(true)
+ .withEuLocation(false)
+ .withEpisodicDataUpload(true))
+ .withCluster(new DeploymentCluster().withName("testHCICluster")
+ .withWitnessType("Cloud")
+ .withWitnessPath("Cloud")
+ .withCloudAccountName("myasestoragacct")
+ .withAzureServiceEndpoint("core.windows.net"))
+ .withIdentityProvider(IdentityProvider.LOCAL_IDENTITY)
+ .withStorage(new Storage().withConfigurationMode("Express"))
+ .withNamingPrefix("ms169")
+ .withDomainFqdn("ASZ1PLab8.nttest.microsoft.com")
+ .withInfrastructureNetwork(Arrays.asList(new InfrastructureNetwork()
+ .withSubnetMask("255.255.248.0")
+ .withGateway("255.255.248.0")
+ .withIpPools(Arrays.asList(
+ new IpPools().withStartingAddress("10.57.48.60").withEndingAddress("10.57.48.66")))
+ .withDnsZones(Arrays.asList(new DnsZones().withDnsZoneName("contoso.com")
+ .withDnsForwarder(Arrays.asList("192.168.1.1"))))))
+ .withPhysicalNodes(Arrays.asList(
+ new PhysicalNodes().withName("ms169host").withIpv4Address("10.57.51.224"),
+ new PhysicalNodes().withName("ms154host").withIpv4Address("10.57.53.236")))
+ .withHostNetwork(new DeploymentSettingHostNetwork()
+ .withIntents(Arrays.asList(new DeploymentSettingIntents().withName("Compute_Management")
+ .withTrafficType(Arrays.asList("Compute", "Management"))
+ .withAdapter(Arrays.asList("Port2"))
+ .withOverrideVirtualSwitchConfiguration(false)
+ .withVirtualSwitchConfigurationOverrides(
+ new DeploymentSettingVirtualSwitchConfigurationOverrides().withEnableIov("True")
+ .withLoadBalancingAlgorithm("HyperVPort"))
+ .withOverrideQosPolicy(false)
+ .withQosPolicyOverrides(
+ new QosPolicyOverrides().withPriorityValue8021ActionCluster("7")
+ .withPriorityValue8021ActionSmb("3")
+ .withBandwidthPercentageSmb("50"))
+ .withOverrideAdapterProperty(false)
+ .withAdapterPropertyOverrides(
+ new DeploymentSettingAdapterPropertyOverrides().withJumboPacket("1514")
+ .withNetworkDirect("Enabled")
+ .withNetworkDirectTechnology("iWARP"))))
+ .withStorageNetworks(
+ Arrays.asList(new DeploymentSettingStorageNetworks().withName("Storage1Network")
+ .withNetworkAdapterName("Port3")
+ .withVlanId("5")
+ .withStorageAdapterIpInfo(Arrays.asList(
+ new DeploymentSettingStorageAdapterIpInfo().withPhysicalNode("string")
+ .withIpv4Address("10.57.48.60")
+ .withSubnetMask("255.255.248.0")))))
+ .withStorageConnectivitySwitchless(true)
+ .withEnableStorageAutoIp(false))
+ .withSdnIntegration(new SdnIntegration().withNetworkController(
+ new NetworkController().withMacAddressPoolStart("00-0D-3A-1B-C7-21")
+ .withMacAddressPoolStop("00-0D-3A-1B-C7-29")
+ .withNetworkVirtualizationEnabled(true)))
+ .withAdouPath("OU=ms169,DC=ASZ1PLab8,DC=nttest,DC=microsoft,DC=com")
+ .withSecretsLocation("fakeTokenPlaceholder")
+ .withSecrets(Arrays.asList(
+ new EceDeploymentSecrets().withSecretName("fakeTokenPlaceholder")
+ .withEceSecretName(EceSecrets.fromString("BMCAdminUserCred"))
+ .withSecretLocation("fakeTokenPlaceholder"),
+ new EceDeploymentSecrets().withSecretName("fakeTokenPlaceholder")
+ .withEceSecretName(EceSecrets.AZURE_STACK_LCMUSER_CREDENTIAL)
+ .withSecretLocation("fakeTokenPlaceholder")))
+ .withOptionalServices(new OptionalServices().withCustomLocation("customLocationName")))
+ .withSbePartnerInfo(new SbePartnerInfo()
+ .withSbeDeploymentInfo(new SbeDeploymentInfo().withVersion("4.0.2309.13")
+ .withFamily("Gen5")
+ .withPublisher("Contoso")
+ .withSbeManifestSource("default")
+ .withSbeManifestCreationDate(OffsetDateTime.parse("2023-07-25T02:40:33Z")))
+ .withPartnerProperties(
+ Arrays.asList(new SbePartnerProperties().withName("EnableBMCIpV6").withValue("false"),
+ new SbePartnerProperties().withName("PhoneHomePort").withValue("1653"),
+ new SbePartnerProperties().withName("BMCSecurityState").withValue("HighSecurity")))
+ .withCredentialList(
+ Arrays.asList(new SbeCredentials().withSecretName("fakeTokenPlaceholder")
+ .withEceSecretName("fakeTokenPlaceholder")
+ .withSecretLocation("fakeTokenPlaceholder")))))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: 2026-02-01/PutDeploymentSettings.json
*/
/**
* Sample code: Create Deployment Settings.
@@ -742,6 +888,7 @@ public final class DeploymentSettingsCreateOrUpdateSamples {
.withGateway("255.255.248.0")
.withIpPools(Arrays.asList(
new IpPools().withStartingAddress("10.57.48.60").withEndingAddress("10.57.48.66")))
+ .withDnsServerConfig(DnsServerConfig.USE_DNS_SERVER)
.withDnsServers(Arrays.asList("10.57.50.90"))))
.withPhysicalNodes(Arrays.asList(
new PhysicalNodes().withName("ms169host").withIpv4Address("10.57.51.224"),
@@ -778,6 +925,7 @@ public final class DeploymentSettingsCreateOrUpdateSamples {
new NetworkController().withMacAddressPoolStart("00-0D-3A-1B-C7-21")
.withMacAddressPoolStop("00-0D-3A-1B-C7-29")
.withNetworkVirtualizationEnabled(true)))
+ .withIsManagementCluster(true)
.withAdouPath("OU=ms169,DC=ASZ1PLab8,DC=nttest,DC=microsoft,DC=com")
.withSecretsLocation("fakeTokenPlaceholder")
.withSecrets(Arrays.asList(
@@ -815,9 +963,7 @@ public final class DeploymentSettingsCreateOrUpdateSamples {
*/
public final class DeploymentSettingsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * DeleteDeploymentSettings.json
+ * x-ms-original-file: 2026-02-01/DeleteDeploymentSettings.json
*/
/**
* Sample code: Delete Deployment Settings.
@@ -838,9 +984,7 @@ public final class DeploymentSettingsDeleteSamples {
*/
public final class DeploymentSettingsGetSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * GetDeploymentSettings.json
+ * x-ms-original-file: 2026-02-01/GetDeploymentSettings.json
*/
/**
* Sample code: Get Deployment Settings.
@@ -862,9 +1006,7 @@ public final class DeploymentSettingsGetSamples {
*/
public final class DeploymentSettingsListByClustersSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ListDeploymentSettingsByCluster.json
+ * x-ms-original-file: 2026-02-01/ListDeploymentSettingsByCluster.json
*/
/**
* Sample code: List Deployment Settings.
@@ -877,6 +1019,137 @@ public final class DeploymentSettingsListByClustersSamples {
}
```
+### EdgeDeviceJobs_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.azurestackhci.models.HciCollectLogJobProperties;
+import com.azure.resourcemanager.azurestackhci.models.HciEdgeDeviceJob;
+import com.azure.resourcemanager.azurestackhci.models.HciRemoteSupportJobProperties;
+import com.azure.resourcemanager.azurestackhci.models.RemoteSupportAccessLevel;
+import com.azure.resourcemanager.azurestackhci.models.RemoteSupportType;
+import java.time.OffsetDateTime;
+
+/**
+ * Samples for EdgeDeviceJobs CreateOrUpdate.
+ */
+public final class EdgeDeviceJobsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-02-01/EdgeDeviceJobs_CreateOrUpdate_RemoteSupport.json
+ */
+ /**
+ * Sample code: EdgeDeviceJobs_CreateOrUpdate_RemoteSupport.
+ *
+ * @param manager Entry point to AzureStackHciManager.
+ */
+ public static void edgeDeviceJobsCreateOrUpdateRemoteSupport(
+ com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ manager.edgeDeviceJobs()
+ .createOrUpdate(
+ "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1",
+ "default", "collectLog",
+ new HciEdgeDeviceJob().withProperties(
+ new HciRemoteSupportJobProperties().withAccessLevel(RemoteSupportAccessLevel.DIAGNOSTICS)
+ .withExpirationTimestamp(OffsetDateTime.parse("2024-01-29T10:43:27.9471574Z"))
+ .withType(RemoteSupportType.ENABLE)),
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: 2026-02-01/EdgeDeviceJobs_CreateOrUpdate_CollectLog.json
+ */
+ /**
+ * Sample code: EdgeDeviceJobs_CreateOrUpdate_CollectLog.
+ *
+ * @param manager Entry point to AzureStackHciManager.
+ */
+ public static void
+ edgeDeviceJobsCreateOrUpdateCollectLog(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ manager.edgeDeviceJobs()
+ .createOrUpdate(
+ "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1",
+ "default", "collectLog",
+ new HciEdgeDeviceJob().withProperties(
+ new HciCollectLogJobProperties().withFromDate(OffsetDateTime.parse("2024-01-29T10:43:27.9471574Z"))
+ .withToDate(OffsetDateTime.parse("2024-01-29T10:43:27.9471574Z"))),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EdgeDeviceJobs_Delete
+
+```java
+/**
+ * Samples for EdgeDeviceJobs Delete.
+ */
+public final class EdgeDeviceJobsDeleteSamples {
+ /*
+ * x-ms-original-file: 2026-02-01/EdgeDeviceJobs_Delete.json
+ */
+ /**
+ * Sample code: EdgeDeviceJobs_Delete.
+ *
+ * @param manager Entry point to AzureStackHciManager.
+ */
+ public static void edgeDeviceJobsDelete(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ manager.edgeDeviceJobs()
+ .delete(
+ "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1",
+ "lAq", "Ihlm3R-bZ4vTC4ABA456", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EdgeDeviceJobs_Get
+
+```java
+/**
+ * Samples for EdgeDeviceJobs Get.
+ */
+public final class EdgeDeviceJobsGetSamples {
+ /*
+ * x-ms-original-file: 2026-02-01/EdgeDeviceJobs_Get_RemoteSupport.json
+ */
+ /**
+ * Sample code: EdgeDeviceJobs_Get_RemoteSupport.
+ *
+ * @param manager Entry point to AzureStackHciManager.
+ */
+ public static void
+ edgeDeviceJobsGetRemoteSupport(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ manager.edgeDeviceJobs()
+ .getWithResponse(
+ "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1",
+ "-5M1G7G10OZ-o5b-HS3-c72", "-oUxs", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EdgeDeviceJobs_ListByEdgeDevice
+
+```java
+/**
+ * Samples for EdgeDeviceJobs ListByEdgeDevice.
+ */
+public final class EdgeDeviceJobsListByEdgeDeviceSamples {
+ /*
+ * x-ms-original-file: 2026-02-01/EdgeDeviceJobs_ListByEdgeDevice.json
+ */
+ /**
+ * Sample code: EdgeDeviceJobs_ListByEdgeDevice.
+ *
+ * @param manager Entry point to AzureStackHciManager.
+ */
+ public static void
+ edgeDeviceJobsListByEdgeDevice(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ manager.edgeDeviceJobs()
+ .listByEdgeDevice(
+ "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1",
+ "YE-855IEIN585-", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### EdgeDevices_CreateOrUpdate
```java
@@ -891,9 +1164,7 @@ import java.util.Arrays;
*/
public final class EdgeDevicesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * CreateHciEdgeDevice.json
+ * x-ms-original-file: 2026-02-01/CreateHciEdgeDevice.json
*/
/**
* Sample code: Create HCI Edge Device.
@@ -928,9 +1199,7 @@ public final class EdgeDevicesCreateOrUpdateSamples {
*/
public final class EdgeDevicesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * DeleteEdgeDevices.json
+ * x-ms-original-file: 2026-02-01/DeleteEdgeDevices.json
*/
/**
* Sample code: Delete Edge Devices.
@@ -954,9 +1223,7 @@ public final class EdgeDevicesDeleteSamples {
*/
public final class EdgeDevicesGetSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * GetEdgeDevices.json
+ * x-ms-original-file: 2026-02-01/GetEdgeDevices.json
*/
/**
* Sample code: Get Edge Device.
@@ -980,9 +1247,7 @@ public final class EdgeDevicesGetSamples {
*/
public final class EdgeDevicesListSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ListEdgeDevices.json
+ * x-ms-original-file: 2026-02-01/ListEdgeDevices.json
*/
/**
* Sample code: List Edge Devices.
@@ -1009,9 +1274,7 @@ import java.util.Arrays;
*/
public final class EdgeDevicesValidateSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ValidateEdgeDevices.json
+ * x-ms-original-file: 2026-02-01/ValidateEdgeDevices.json
*/
/**
* Sample code: Validate Edge Devices.
@@ -1044,9 +1307,7 @@ import java.io.IOException;
*/
public final class ExtensionsCreateSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * PutExtension.json
+ * x-ms-original-file: 2026-02-01/PutExtension.json
*/
/**
* Sample code: Create Arc Extension.
@@ -1079,9 +1340,7 @@ public final class ExtensionsCreateSamples {
*/
public final class ExtensionsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * DeleteExtension.json
+ * x-ms-original-file: 2026-02-01/DeleteExtension.json
*/
/**
* Sample code: Delete Arc Extension.
@@ -1103,9 +1362,7 @@ public final class ExtensionsDeleteSamples {
*/
public final class ExtensionsGetSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * GetExtension.json
+ * x-ms-original-file: 2026-02-01/GetExtension.json
*/
/**
* Sample code: Get ArcSettings Extension.
@@ -1128,9 +1385,7 @@ public final class ExtensionsGetSamples {
*/
public final class ExtensionsListByArcSettingSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ListExtensionsByArcSetting.json
+ * x-ms-original-file: 2026-02-01/ListExtensionsByArcSetting.json
*/
/**
* Sample code: List Extensions under ArcSetting resource.
@@ -1158,9 +1413,7 @@ import java.io.IOException;
*/
public final class ExtensionsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * PatchExtension.json
+ * x-ms-original-file: 2026-02-01/PatchExtension.json
*/
/**
* Sample code: Update Arc Extension.
@@ -1195,9 +1448,7 @@ import com.azure.resourcemanager.azurestackhci.models.ExtensionUpgradeParameters
*/
public final class ExtensionsUpgradeSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * Extensions_Upgrade.json
+ * x-ms-original-file: 2026-02-01/Extensions_Upgrade.json
*/
/**
* Sample code: Upgrade Machine Extensions.
@@ -1220,9 +1471,7 @@ public final class ExtensionsUpgradeSamples {
*/
public final class OffersGetSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/GetOffer
- * .json
+ * x-ms-original-file: 2026-02-01/GetOffer.json
*/
/**
* Sample code: Get Offer.
@@ -1244,9 +1493,7 @@ public final class OffersGetSamples {
*/
public final class OffersListByClusterSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ListOffersByCluster.json
+ * x-ms-original-file: 2026-02-01/ListOffersByCluster.json
*/
/**
* Sample code: List Offer resources by HCI Cluster.
@@ -1268,9 +1515,7 @@ public final class OffersListByClusterSamples {
*/
public final class OffersListByPublisherSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ListOffersByPublisher.json
+ * x-ms-original-file: 2026-02-01/ListOffersByPublisher.json
*/
/**
* Sample code: List Offer resources by publisher for the HCI Cluster.
@@ -1292,64 +1537,16 @@ public final class OffersListByPublisherSamples {
*/
public final class OperationsListSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/operations/stable/2024-04-01/examples/
- * ListOperations.json
- */
- /**
- * Sample code: Create cluster.
- *
- * @param manager Entry point to AzureStackHciManager.
- */
- public static void createCluster(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.operations().listWithResponse(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Publishers_Get
-
-```java
-/**
- * Samples for Publishers Get.
- */
-public final class PublishersGetSamples {
- /*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * GetPublisher.json
- */
- /**
- * Sample code: Get Publisher.
- *
- * @param manager Entry point to AzureStackHciManager.
- */
- public static void getPublisher(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.publishers().getWithResponse("test-rg", "myCluster", "publisher1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Publishers_ListByCluster
-
-```java
-/**
- * Samples for Publishers ListByCluster.
- */
-public final class PublishersListByClusterSamples {
- /*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ListPublishersByCluster.json
+ * x-ms-original-file: 2026-02-01/Operations_List.json
*/
/**
- * Sample code: List Publisher resources by HCI Cluster.
+ * Sample code: List the operations for the provider.
*
* @param manager Entry point to AzureStackHciManager.
*/
public static void
- listPublisherResourcesByHCICluster(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
- manager.publishers().listByCluster("test-rg", "myCluster", com.azure.core.util.Context.NONE);
+ listTheOperationsForTheProvider(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ manager.operations().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -1364,9 +1561,7 @@ import com.azure.resourcemanager.azurestackhci.models.ComplianceAssignmentType;
*/
public final class SecuritySettingsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * PutSecuritySettings.json
+ * x-ms-original-file: 2026-02-01/PutSecuritySettings.json
*/
/**
* Sample code: Create Security Settings.
@@ -1393,9 +1588,7 @@ public final class SecuritySettingsCreateOrUpdateSamples {
*/
public final class SecuritySettingsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * DeleteSecuritySettings.json
+ * x-ms-original-file: 2026-02-01/DeleteSecuritySettings.json
*/
/**
* Sample code: Delete Security Settings.
@@ -1416,9 +1609,7 @@ public final class SecuritySettingsDeleteSamples {
*/
public final class SecuritySettingsGetSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * GetSecuritySettings.json
+ * x-ms-original-file: 2026-02-01/GetSecuritySettings.json
*/
/**
* Sample code: Get Security Settings.
@@ -1439,9 +1630,7 @@ public final class SecuritySettingsGetSamples {
*/
public final class SecuritySettingsListByClustersSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ListSecuritySettingsByCluster.json
+ * x-ms-original-file: 2026-02-01/ListSecuritySettingsByCluster.json
*/
/**
* Sample code: List Security Settings.
@@ -1462,9 +1651,7 @@ public final class SecuritySettingsListByClustersSamples {
*/
public final class SkusGetSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/GetSku.
- * json
+ * x-ms-original-file: 2026-02-01/GetSku.json
*/
/**
* Sample code: Get Sku.
@@ -1487,9 +1674,7 @@ public final class SkusGetSamples {
*/
public final class SkusListByOfferSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ListSkusByOffer.json
+ * x-ms-original-file: 2026-02-01/ListSkusByOffer.json
*/
/**
* Sample code: List SKU resources by offer for the HCI Cluster.
@@ -1512,9 +1697,7 @@ public final class SkusListByOfferSamples {
*/
public final class UpdateRunsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * DeleteUpdateRuns.json
+ * x-ms-original-file: 2026-02-01/DeleteUpdateRuns.json
*/
/**
* Sample code: Delete an Update.
@@ -1537,9 +1720,7 @@ public final class UpdateRunsDeleteSamples {
*/
public final class UpdateRunsGetSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * GetUpdateRuns.json
+ * x-ms-original-file: 2026-02-01/GetUpdateRuns.json
*/
/**
* Sample code: Get Update runs under cluster resource.
@@ -1563,9 +1744,7 @@ public final class UpdateRunsGetSamples {
*/
public final class UpdateRunsListSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ListUpdateRuns.json
+ * x-ms-original-file: 2026-02-01/ListUpdateRuns.json
*/
/**
* Sample code: List Update runs under cluster resource.
@@ -1592,9 +1771,7 @@ import java.util.Arrays;
*/
public final class UpdateRunsPutSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * PutUpdateRuns.json
+ * x-ms-original-file: 2026-02-01/PutUpdateRuns.json
*/
/**
* Sample code: Get Update runs under cluster resource.
@@ -1636,9 +1813,7 @@ public final class UpdateRunsPutSamples {
*/
public final class UpdateSummariesOperationDeleteSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * DeleteUpdateSummaries.json
+ * x-ms-original-file: 2026-02-01/DeleteUpdateSummaries.json
*/
/**
* Sample code: Delete an Update.
@@ -1659,9 +1834,7 @@ public final class UpdateSummariesOperationDeleteSamples {
*/
public final class UpdateSummariesOperationGetSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * GetUpdateSummaries.json
+ * x-ms-original-file: 2026-02-01/GetUpdateSummaries.json
*/
/**
* Sample code: Get Update summaries under cluster resource.
@@ -1683,9 +1856,7 @@ public final class UpdateSummariesOperationGetSamples {
*/
public final class UpdateSummariesOperationListSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ListUpdateSummaries.json
+ * x-ms-original-file: 2026-02-01/ListUpdateSummaries.json
*/
/**
* Sample code: Get Update summaries under cluster resource.
@@ -1711,9 +1882,7 @@ import java.time.OffsetDateTime;
*/
public final class UpdateSummariesOperationPutSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * PutUpdateSummaries.json
+ * x-ms-original-file: 2026-02-01/PutUpdateSummaries.json
*/
/**
* Sample code: Put Update summaries under cluster resource.
@@ -1743,9 +1912,7 @@ public final class UpdateSummariesOperationPutSamples {
*/
public final class UpdatesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * DeleteUpdates.json
+ * x-ms-original-file: 2026-02-01/DeleteUpdates.json
*/
/**
* Sample code: Delete an Update.
@@ -1766,9 +1933,7 @@ public final class UpdatesDeleteSamples {
*/
public final class UpdatesGetSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * GetUpdates.json
+ * x-ms-original-file: 2026-02-01/GetUpdates.json
*/
/**
* Sample code: Get a specific update.
@@ -1790,9 +1955,7 @@ public final class UpdatesGetSamples {
*/
public final class UpdatesListSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * ListUpdates.json
+ * x-ms-original-file: 2026-02-01/ListUpdates.json
*/
/**
* Sample code: List available updates.
@@ -1813,9 +1976,7 @@ public final class UpdatesListSamples {
*/
public final class UpdatesPostSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * PostUpdates.json
+ * x-ms-original-file: 2026-02-01/PostUpdates.json
*/
/**
* Sample code: List available updates.
@@ -1843,9 +2004,7 @@ import java.util.Arrays;
*/
public final class UpdatesPutSamples {
/*
- * x-ms-original-file:
- * specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/stable/2024-04-01/examples/
- * PutUpdates.json
+ * x-ms-original-file: 2026-02-01/PutUpdates.json
*/
/**
* Sample code: Put a specific update.
@@ -1864,7 +2023,7 @@ public final class UpdatesPutSamples {
.withVersion("prerequisite version")
.withPackageName("update package name")))
.withPackagePath("\\\\SU1FileServer\\SU1_Infrastructure_2\\Updates\\Packages\\Microsoft4.2203.2.32")
- .withPackageSizeInMb(18858.0F)
+ .withPackageSizeInMb(18858.0D)
.withDisplayName("AzS Update - 4.2203.2.32")
.withVersion("4.2203.2.32")
.withPublisher("Microsoft")
@@ -1872,10 +2031,55 @@ public final class UpdatesPutSamples {
.withAvailabilityType(AvailabilityType.LOCAL)
.withPackageType("Infrastructure")
.withAdditionalProperties("additional properties")
- .withProgressPercentage(0.0F)
+ .withProgressPercentage(0.0D)
.withNotifyMessage("Brief message with instructions for updates of AvailabilityType Notify")
.apply();
}
}
```
+### ValidatedSolutionRecipes_Get
+
+```java
+/**
+ * Samples for ValidatedSolutionRecipes Get.
+ */
+public final class ValidatedSolutionRecipesGetSamples {
+ /*
+ * x-ms-original-file: 2026-02-01/ValidatedSolutionRecipes_Get.json
+ */
+ /**
+ * Sample code: ValidatedSolutionRecipes_Get.
+ *
+ * @param manager Entry point to AzureStackHciManager.
+ */
+ public static void
+ validatedSolutionRecipesGet(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ manager.validatedSolutionRecipes().getWithResponse("westus2", "10.2408.0", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ValidatedSolutionRecipes_ListBySubscriptionLocationResource
+
+```java
+/**
+ * Samples for ValidatedSolutionRecipes ListBySubscriptionLocationResource.
+ */
+public final class ValidatedSolutionRecipesListBySubscriptionLocationResourceSamples {
+ /*
+ * x-ms-original-file: 2026-02-01/ValidatedSolutionRecipes_ListBySubscriptionLocationResource.json
+ */
+ /**
+ * Sample code: ValidatedSolutionRecipes_ListBySubscriptionLocationResource.
+ *
+ * @param manager Entry point to AzureStackHciManager.
+ */
+ public static void validatedSolutionRecipesListBySubscriptionLocationResource(
+ com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
+ manager.validatedSolutionRecipes()
+ .listBySubscriptionLocationResource("westus2", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/pom.xml b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/pom.xml
index fb6751a936db..02fe0410b00f 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/pom.xml
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/pom.xml
@@ -1,7 +1,7 @@
4.0.0
@@ -14,11 +14,11 @@
com.azure.resourcemanager
azure-resourcemanager-azurestackhci
- 1.0.0-beta.6
+ 1.0.0
jar
- Microsoft Azure SDK for AzureStackHci Management
- This package contains Microsoft Azure SDK for AzureStackHci Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Stack HCI management service. Package tag package-2024-04.
+ Microsoft Azure SDK for Azure Stack Hci Management
+ This package contains Microsoft Azure SDK for Azure Stack Hci Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Stack HCI service. Package api-version 2026-02-01.
https://github.com/Azure/azure-sdk-for-java
@@ -45,14 +45,8 @@
UTF-8
0
0
- true
-
- com.azure
- azure-json
- 1.5.1
-
com.azure
azure-core
@@ -75,5 +69,10 @@
1.18.2
test
+
+ com.azure
+ azure-json
+ 1.5.1
+
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 89f4053a15c9..dd081c548b7b 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci;
@@ -11,90 +11,96 @@
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
-import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.http.policy.HttpPolicyProviders;
import com.azure.core.http.policy.RequestIdPolicy;
import com.azure.core.http.policy.RetryOptions;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
-import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
+import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.azurestackhci.fluent.AzureStackHciClient;
+import com.azure.resourcemanager.azurestackhci.fluent.AzureStackHciManagementClient;
import com.azure.resourcemanager.azurestackhci.implementation.ArcSettingsImpl;
-import com.azure.resourcemanager.azurestackhci.implementation.AzureStackHciClientBuilder;
+import com.azure.resourcemanager.azurestackhci.implementation.AzureStackHciManagementClientBuilder;
import com.azure.resourcemanager.azurestackhci.implementation.ClustersImpl;
import com.azure.resourcemanager.azurestackhci.implementation.DeploymentSettingsImpl;
+import com.azure.resourcemanager.azurestackhci.implementation.EdgeDeviceJobsImpl;
import com.azure.resourcemanager.azurestackhci.implementation.EdgeDevicesImpl;
import com.azure.resourcemanager.azurestackhci.implementation.ExtensionsImpl;
import com.azure.resourcemanager.azurestackhci.implementation.OffersImpl;
import com.azure.resourcemanager.azurestackhci.implementation.OperationsImpl;
-import com.azure.resourcemanager.azurestackhci.implementation.PublishersImpl;
import com.azure.resourcemanager.azurestackhci.implementation.SecuritySettingsImpl;
import com.azure.resourcemanager.azurestackhci.implementation.SkusImpl;
import com.azure.resourcemanager.azurestackhci.implementation.UpdateRunsImpl;
-import com.azure.resourcemanager.azurestackhci.implementation.UpdatesImpl;
import com.azure.resourcemanager.azurestackhci.implementation.UpdateSummariesOperationsImpl;
+import com.azure.resourcemanager.azurestackhci.implementation.UpdatesImpl;
+import com.azure.resourcemanager.azurestackhci.implementation.ValidatedSolutionRecipesImpl;
import com.azure.resourcemanager.azurestackhci.models.ArcSettings;
import com.azure.resourcemanager.azurestackhci.models.Clusters;
import com.azure.resourcemanager.azurestackhci.models.DeploymentSettings;
+import com.azure.resourcemanager.azurestackhci.models.EdgeDeviceJobs;
import com.azure.resourcemanager.azurestackhci.models.EdgeDevices;
import com.azure.resourcemanager.azurestackhci.models.Extensions;
import com.azure.resourcemanager.azurestackhci.models.Offers;
import com.azure.resourcemanager.azurestackhci.models.Operations;
-import com.azure.resourcemanager.azurestackhci.models.Publishers;
import com.azure.resourcemanager.azurestackhci.models.SecuritySettings;
import com.azure.resourcemanager.azurestackhci.models.Skus;
import com.azure.resourcemanager.azurestackhci.models.UpdateRuns;
-import com.azure.resourcemanager.azurestackhci.models.Updates;
import com.azure.resourcemanager.azurestackhci.models.UpdateSummariesOperations;
+import com.azure.resourcemanager.azurestackhci.models.Updates;
+import com.azure.resourcemanager.azurestackhci.models.ValidatedSolutionRecipes;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.List;
+import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;
/**
* Entry point to AzureStackHciManager.
- * Azure Stack HCI management service.
+ * Azure Stack HCI service.
*/
public final class AzureStackHciManager {
+ private Operations operations;
+
private ArcSettings arcSettings;
+ private Offers offers;
+
private Clusters clusters;
private DeploymentSettings deploymentSettings;
+ private EdgeDeviceJobs edgeDeviceJobs;
+
private EdgeDevices edgeDevices;
private Extensions extensions;
- private Offers offers;
-
- private Operations operations;
-
- private Publishers publishers;
-
private SecuritySettings securitySettings;
private Skus skus;
private UpdateRuns updateRuns;
- private UpdateSummariesOperations updateSummariesOperations;
-
private Updates updates;
- private final AzureStackHciClient clientObject;
+ private ValidatedSolutionRecipes validatedSolutionRecipes;
+
+ private UpdateSummariesOperations updateSummariesOperations;
+
+ private final AzureStackHciManagementClient clientObject;
private AzureStackHciManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
- this.clientObject = new AzureStackHciClientBuilder().pipeline(httpPipeline)
+ this.clientObject = new AzureStackHciManagementClientBuilder().pipeline(httpPipeline)
.endpoint(profile.getEnvironment().getResourceManagerEndpoint())
.subscriptionId(profile.getSubscriptionId())
.defaultPollInterval(defaultPollInterval)
@@ -102,11 +108,11 @@ private AzureStackHciManager(HttpPipeline httpPipeline, AzureProfile profile, Du
}
/**
- * Creates an instance of AzureStackHci service API entry point.
+ * Creates an instance of Azure Stack Hci service API entry point.
*
* @param credential the credential to use.
* @param profile the Azure profile for client.
- * @return the AzureStackHci service API instance.
+ * @return the Azure Stack Hci service API instance.
*/
public static AzureStackHciManager authenticate(TokenCredential credential, AzureProfile profile) {
Objects.requireNonNull(credential, "'credential' cannot be null.");
@@ -115,11 +121,11 @@ public static AzureStackHciManager authenticate(TokenCredential credential, Azur
}
/**
- * Creates an instance of AzureStackHci service API entry point.
+ * Creates an instance of Azure Stack Hci service API entry point.
*
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
* @param profile the Azure profile for client.
- * @return the AzureStackHci service API instance.
+ * @return the Azure Stack Hci service API instance.
*/
public static AzureStackHciManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
@@ -141,6 +147,9 @@ public static Configurable configure() {
*/
public static final class Configurable {
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
+ private static final String SDK_VERSION = "version";
+ private static final Map PROPERTIES
+ = CoreUtils.getProperties("azure-resourcemanager-azurestackhci.properties");
private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
@@ -238,22 +247,24 @@ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
}
/**
- * Creates an instance of AzureStackHci service API entry point.
+ * Creates an instance of Azure Stack Hci service API entry point.
*
* @param credential the credential to use.
* @param profile the Azure profile for client.
- * @return the AzureStackHci service API instance.
+ * @return the Azure Stack Hci service API instance.
*/
public AzureStackHciManager authenticate(TokenCredential credential, AzureProfile profile) {
Objects.requireNonNull(credential, "'credential' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
+ String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
+
StringBuilder userAgentBuilder = new StringBuilder();
userAgentBuilder.append("azsdk-java")
.append("-")
.append("com.azure.resourcemanager.azurestackhci")
.append("/")
- .append("1.0.0-beta.5");
+ .append(clientVersion);
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -286,7 +297,7 @@ public AzureStackHciManager authenticate(TokenCredential credential, AzureProfil
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
- policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.collect(Collectors.toList()));
@@ -299,6 +310,18 @@ public AzureStackHciManager authenticate(TokenCredential credential, AzureProfil
}
}
+ /**
+ * 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);
+ }
+ return operations;
+ }
+
/**
* Gets the resource collection API of ArcSettings. It manages ArcSetting.
*
@@ -311,6 +334,18 @@ public ArcSettings arcSettings() {
return arcSettings;
}
+ /**
+ * Gets the resource collection API of Offers.
+ *
+ * @return Resource collection API of Offers.
+ */
+ public Offers offers() {
+ if (this.offers == null) {
+ this.offers = new OffersImpl(clientObject.getOffers(), this);
+ }
+ return offers;
+ }
+
/**
* Gets the resource collection API of Clusters. It manages Cluster.
*
@@ -335,6 +370,18 @@ public DeploymentSettings deploymentSettings() {
return deploymentSettings;
}
+ /**
+ * Gets the resource collection API of EdgeDeviceJobs.
+ *
+ * @return Resource collection API of EdgeDeviceJobs.
+ */
+ public EdgeDeviceJobs edgeDeviceJobs() {
+ if (this.edgeDeviceJobs == null) {
+ this.edgeDeviceJobs = new EdgeDeviceJobsImpl(clientObject.getEdgeDeviceJobs(), this);
+ }
+ return edgeDeviceJobs;
+ }
+
/**
* Gets the resource collection API of EdgeDevices.
*
@@ -359,42 +406,6 @@ public Extensions extensions() {
return extensions;
}
- /**
- * Gets the resource collection API of Offers.
- *
- * @return Resource collection API of Offers.
- */
- public Offers offers() {
- if (this.offers == null) {
- this.offers = new OffersImpl(clientObject.getOffers(), this);
- }
- return offers;
- }
-
- /**
- * 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);
- }
- return operations;
- }
-
- /**
- * Gets the resource collection API of Publishers.
- *
- * @return Resource collection API of Publishers.
- */
- public Publishers publishers() {
- if (this.publishers == null) {
- this.publishers = new PublishersImpl(clientObject.getPublishers(), this);
- }
- return publishers;
- }
-
/**
* Gets the resource collection API of SecuritySettings. It manages SecuritySetting.
*
@@ -431,6 +442,31 @@ public UpdateRuns updateRuns() {
return updateRuns;
}
+ /**
+ * Gets the resource collection API of Updates. It manages HciUpdate.
+ *
+ * @return Resource collection API of Updates.
+ */
+ public Updates updates() {
+ if (this.updates == null) {
+ this.updates = new UpdatesImpl(clientObject.getUpdates(), this);
+ }
+ return updates;
+ }
+
+ /**
+ * Gets the resource collection API of ValidatedSolutionRecipes.
+ *
+ * @return Resource collection API of ValidatedSolutionRecipes.
+ */
+ public ValidatedSolutionRecipes validatedSolutionRecipes() {
+ if (this.validatedSolutionRecipes == null) {
+ this.validatedSolutionRecipes
+ = new ValidatedSolutionRecipesImpl(clientObject.getValidatedSolutionRecipes(), this);
+ }
+ return validatedSolutionRecipes;
+ }
+
/**
* Gets the resource collection API of UpdateSummariesOperations.
*
@@ -445,24 +481,12 @@ public UpdateSummariesOperations updateSummariesOperations() {
}
/**
- * Gets the resource collection API of Updates. It manages HciUpdate.
- *
- * @return Resource collection API of Updates.
- */
- public Updates updates() {
- if (this.updates == null) {
- this.updates = new UpdatesImpl(clientObject.getUpdates(), this);
- }
- return updates;
- }
-
- /**
- * Gets wrapped service client AzureStackHciClient providing direct access to the underlying auto-generated API
- * implementation, based on Azure REST API.
+ * Gets wrapped service client AzureStackHciManagementClient providing direct access to the underlying
+ * auto-generated API implementation, based on Azure REST API.
*
- * @return Wrapped service client AzureStackHciClient.
+ * @return Wrapped service client AzureStackHciManagementClient.
*/
- public AzureStackHciClient serviceClient() {
+ public AzureStackHciManagementClient serviceClient() {
return this.clientObject;
}
}
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 b1ea2a3c20a3..574a6c0cf9e4 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent;
@@ -15,38 +15,12 @@
import com.azure.resourcemanager.azurestackhci.fluent.models.ArcSettingInner;
import com.azure.resourcemanager.azurestackhci.fluent.models.PasswordCredentialInner;
import com.azure.resourcemanager.azurestackhci.models.ArcSettingsPatch;
+import com.azure.resourcemanager.azurestackhci.models.ReconcileArcSettingsRequest;
/**
* An instance of this class provides access to all the operations defined in ArcSettingsClient.
*/
public interface ArcSettingsClient {
- /**
- * Get ArcSetting resources of 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 arcSetting resources of HCI Cluster as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByCluster(String resourceGroupName, String clusterName);
-
- /**
- * Get ArcSetting resources of 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 arcSetting resources of HCI Cluster as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByCluster(String resourceGroupName, String clusterName, Context context);
-
/**
* Get ArcSetting resource details of HCI Cluster.
*
@@ -200,6 +174,33 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String clusterName, String arcSettingName, Context context);
+ /**
+ * Get ArcSetting resources of 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 arcSetting resources of HCI Cluster as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByCluster(String resourceGroupName, String clusterName);
+
+ /**
+ * Get ArcSetting resources of 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 arcSetting resources of HCI Cluster as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByCluster(String resourceGroupName, String clusterName, Context context);
+
/**
* Generate password for arc settings.
*
@@ -239,7 +240,7 @@ Response generatePasswordWithResponse(String resourceGr
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of arcIdentity details.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ArcIdentityResponseInner>
@@ -255,7 +256,7 @@ Response generatePasswordWithResponse(String resourceGr
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of arcIdentity details.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ArcIdentityResponseInner>
@@ -270,7 +271,7 @@ Response generatePasswordWithResponse(String resourceGr
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return arcIdentity details.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ArcIdentityResponseInner createIdentity(String resourceGroupName, String clusterName, String arcSettingName);
@@ -285,12 +286,79 @@ Response generatePasswordWithResponse(String resourceGr
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return arcIdentity details.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ArcIdentityResponseInner createIdentity(String resourceGroupName, String clusterName, String arcSettingName,
Context context);
+ /**
+ * Reconcile Arc Settings with information related to all nodes.
+ *
+ * @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 reconcileArcSettingsRequest Request for reconciling Arc Settings.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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, ArcSettingInner> beginReconcile(String resourceGroupName,
+ String clusterName, String arcSettingName, ReconcileArcSettingsRequest reconcileArcSettingsRequest);
+
+ /**
+ * Reconcile Arc Settings with information related to all nodes.
+ *
+ * @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 reconcileArcSettingsRequest Request for reconciling Arc Settings.
+ * @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, ArcSettingInner> beginReconcile(String resourceGroupName,
+ String clusterName, String arcSettingName, ReconcileArcSettingsRequest reconcileArcSettingsRequest,
+ Context context);
+
+ /**
+ * Reconcile Arc Settings with information related to all nodes.
+ *
+ * @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 reconcileArcSettingsRequest Request for reconciling Arc Settings.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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)
+ ArcSettingInner reconcile(String resourceGroupName, String clusterName, String arcSettingName,
+ ReconcileArcSettingsRequest reconcileArcSettingsRequest);
+
+ /**
+ * Reconcile Arc Settings with information related to all nodes.
+ *
+ * @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 reconcileArcSettingsRequest Request for reconciling Arc Settings.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ArcSettingInner reconcile(String resourceGroupName, String clusterName, String arcSettingName,
+ ReconcileArcSettingsRequest reconcileArcSettingsRequest, Context context);
+
/**
* Add consent time for default extensions and initiate extensions installation.
*
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/AzureStackHciClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/AzureStackHciManagementClient.java
similarity index 83%
rename from sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/AzureStackHciClient.java
rename to sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/AzureStackHciManagementClient.java
index 60bae890277c..26aed9515b19 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/AzureStackHciClient.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/AzureStackHciManagementClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent;
@@ -8,30 +8,30 @@
import java.time.Duration;
/**
- * The interface for AzureStackHciClient class.
+ * The interface for AzureStackHciManagementClient class.
*/
-public interface AzureStackHciClient {
+public interface AzureStackHciManagementClient {
/**
- * Gets The ID of the target subscription. The value must be an UUID.
- *
- * @return the subscriptionId value.
- */
- String getSubscriptionId();
-
- /**
- * Gets server parameter.
+ * Gets Service host.
*
* @return the endpoint value.
*/
String getEndpoint();
/**
- * Gets Api Version.
+ * Gets Version parameter.
*
* @return the apiVersion value.
*/
String getApiVersion();
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
/**
* Gets The HTTP pipeline to send requests through.
*
@@ -46,6 +46,13 @@ public interface AzureStackHciClient {
*/
Duration getDefaultPollInterval();
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
/**
* Gets the ArcSettingsClient object to access its operations.
*
@@ -53,6 +60,13 @@ public interface AzureStackHciClient {
*/
ArcSettingsClient getArcSettings();
+ /**
+ * Gets the OffersClient object to access its operations.
+ *
+ * @return the OffersClient object.
+ */
+ OffersClient getOffers();
+
/**
* Gets the ClustersClient object to access its operations.
*
@@ -67,6 +81,13 @@ public interface AzureStackHciClient {
*/
DeploymentSettingsClient getDeploymentSettings();
+ /**
+ * Gets the EdgeDeviceJobsClient object to access its operations.
+ *
+ * @return the EdgeDeviceJobsClient object.
+ */
+ EdgeDeviceJobsClient getEdgeDeviceJobs();
+
/**
* Gets the EdgeDevicesClient object to access its operations.
*
@@ -81,27 +102,6 @@ public interface AzureStackHciClient {
*/
ExtensionsClient getExtensions();
- /**
- * Gets the OffersClient object to access its operations.
- *
- * @return the OffersClient object.
- */
- OffersClient getOffers();
-
- /**
- * Gets the OperationsClient object to access its operations.
- *
- * @return the OperationsClient object.
- */
- OperationsClient getOperations();
-
- /**
- * Gets the PublishersClient object to access its operations.
- *
- * @return the PublishersClient object.
- */
- PublishersClient getPublishers();
-
/**
* Gets the SecuritySettingsClient object to access its operations.
*
@@ -124,16 +124,23 @@ public interface AzureStackHciClient {
UpdateRunsClient getUpdateRuns();
/**
- * Gets the UpdateSummariesOperationsClient object to access its operations.
+ * Gets the UpdatesClient object to access its operations.
*
- * @return the UpdateSummariesOperationsClient object.
+ * @return the UpdatesClient object.
*/
- UpdateSummariesOperationsClient getUpdateSummariesOperations();
+ UpdatesClient getUpdates();
/**
- * Gets the UpdatesClient object to access its operations.
+ * Gets the ValidatedSolutionRecipesClient object to access its operations.
*
- * @return the UpdatesClient object.
+ * @return the ValidatedSolutionRecipesClient object.
*/
- UpdatesClient getUpdates();
+ ValidatedSolutionRecipesClient getValidatedSolutionRecipes();
+
+ /**
+ * Gets the UpdateSummariesOperationsClient object to access its operations.
+ *
+ * @return the UpdateSummariesOperationsClient object.
+ */
+ UpdateSummariesOperationsClient getUpdateSummariesOperations();
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ClustersClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ClustersClient.java
index 2dcf0710ebb4..b34e9656208e 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent;
@@ -16,6 +16,7 @@
import com.azure.resourcemanager.azurestackhci.models.ClusterPatch;
import com.azure.resourcemanager.azurestackhci.models.LogCollectionRequest;
import com.azure.resourcemanager.azurestackhci.models.RemoteSupportRequest;
+import com.azure.resourcemanager.azurestackhci.models.SecretsLocationsChangeRequest;
import com.azure.resourcemanager.azurestackhci.models.SoftwareAssuranceChangeRequest;
import com.azure.resourcemanager.azurestackhci.models.UploadCertificateRequest;
@@ -23,53 +24,6 @@
* An instance of this class provides access to all the operations defined in ClustersClient.
*/
public interface ClustersClient {
- /**
- * List all HCI clusters in a subscription.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of clusters as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * List all HCI clusters in a subscription.
- *
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of clusters as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
- /**
- * List all HCI clusters in a resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of clusters as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * List all HCI clusters in a resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of clusters as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
-
/**
* Get HCI cluster.
*
@@ -210,6 +164,115 @@ Response updateWithResponse(String resourceGroupName, String clust
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String clusterName, Context context);
+ /**
+ * List all HCI clusters in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of clusters as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List all HCI clusters in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of clusters as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * List all HCI clusters in a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of clusters as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List all HCI clusters in a subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of clusters as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Update cluster secrets locations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param body The content of the action 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, ClusterInner> beginUpdateSecretsLocations(String resourceGroupName,
+ String clusterName, SecretsLocationsChangeRequest body);
+
+ /**
+ * Update cluster secrets locations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param body The content of the action 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, ClusterInner> beginUpdateSecretsLocations(String resourceGroupName,
+ String clusterName, SecretsLocationsChangeRequest body, Context context);
+
+ /**
+ * Update cluster secrets locations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param body The content of the action 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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ClusterInner updateSecretsLocations(String resourceGroupName, String clusterName,
+ SecretsLocationsChangeRequest body);
+
+ /**
+ * Update cluster secrets locations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param body The content of the action 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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ClusterInner updateSecretsLocations(String resourceGroupName, String clusterName,
+ SecretsLocationsChangeRequest body, Context context);
+
/**
* Upload certificate.
*
@@ -278,7 +341,7 @@ void uploadCertificate(String resourceGroupName, String clusterName,
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of cluster Identity details.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ClusterIdentityResponseInner>
@@ -293,7 +356,7 @@ void uploadCertificate(String resourceGroupName, String clusterName,
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of cluster Identity details.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ClusterIdentityResponseInner>
@@ -307,7 +370,7 @@ void uploadCertificate(String resourceGroupName, String clusterName,
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cluster Identity details.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ClusterIdentityResponseInner createIdentity(String resourceGroupName, String clusterName);
@@ -321,7 +384,7 @@ void uploadCertificate(String resourceGroupName, String clusterName,
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cluster Identity details.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ClusterIdentityResponseInner createIdentity(String resourceGroupName, String clusterName, Context context);
@@ -335,7 +398,7 @@ void uploadCertificate(String resourceGroupName, String clusterName,
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of cluster details.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ClusterInner> beginExtendSoftwareAssuranceBenefit(String resourceGroupName,
@@ -351,7 +414,7 @@ SyncPoller, ClusterInner> beginExtendSoftwareAssuranceB
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of cluster details.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ClusterInner> beginExtendSoftwareAssuranceBenefit(String resourceGroupName,
@@ -366,7 +429,7 @@ SyncPoller, ClusterInner> beginExtendSoftwareAssuranceB
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cluster details.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ClusterInner extendSoftwareAssuranceBenefit(String resourceGroupName, String clusterName,
@@ -382,7 +445,7 @@ ClusterInner extendSoftwareAssuranceBenefit(String resourceGroupName, String clu
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cluster details.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ClusterInner extendSoftwareAssuranceBenefit(String resourceGroupName, String clusterName,
@@ -397,7 +460,7 @@ ClusterInner extendSoftwareAssuranceBenefit(String resourceGroupName, String clu
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of cluster details.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ClusterInner> beginTriggerLogCollection(String resourceGroupName,
@@ -413,7 +476,7 @@ SyncPoller, ClusterInner> beginTriggerLogCollection(Str
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of cluster details.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ClusterInner> beginTriggerLogCollection(String resourceGroupName,
@@ -428,7 +491,7 @@ SyncPoller, ClusterInner> beginTriggerLogCollection(Str
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cluster details.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ClusterInner triggerLogCollection(String resourceGroupName, String clusterName,
@@ -444,7 +507,7 @@ ClusterInner triggerLogCollection(String resourceGroupName, String clusterName,
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cluster details.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ClusterInner triggerLogCollection(String resourceGroupName, String clusterName,
@@ -459,7 +522,7 @@ ClusterInner triggerLogCollection(String resourceGroupName, String clusterName,
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of cluster details.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ClusterInner> beginConfigureRemoteSupport(String resourceGroupName,
@@ -475,7 +538,7 @@ SyncPoller, ClusterInner> beginConfigureRemoteSupport(S
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of cluster details.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ClusterInner> beginConfigureRemoteSupport(String resourceGroupName,
@@ -490,7 +553,7 @@ SyncPoller, ClusterInner> beginConfigureRemoteSupport(S
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cluster details.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ClusterInner configureRemoteSupport(String resourceGroupName, String clusterName,
@@ -506,7 +569,7 @@ ClusterInner configureRemoteSupport(String resourceGroupName, String clusterName
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cluster details.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ClusterInner configureRemoteSupport(String resourceGroupName, String clusterName,
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/DeploymentSettingsClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/DeploymentSettingsClient.java
index 3ab4e14034eb..f4a5adaba5a9 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/DeploymentSettingsClient.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/DeploymentSettingsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent;
@@ -17,33 +17,6 @@
* An instance of this class provides access to all the operations defined in DeploymentSettingsClient.
*/
public interface DeploymentSettingsClient {
- /**
- * List DeploymentSetting resources by Clusters.
- *
- * @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 response of a DeploymentSetting list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByClusters(String resourceGroupName, String clusterName);
-
- /**
- * List DeploymentSetting resources by Clusters.
- *
- * @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 response of a DeploymentSetting list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByClusters(String resourceGroupName, String clusterName, Context context);
-
/**
* Get a DeploymentSetting.
*
@@ -197,4 +170,31 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String clusterName, String deploymentSettingsName, Context context);
+
+ /**
+ * List DeploymentSetting resources by Clusters.
+ *
+ * @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 response of a DeploymentSetting list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByClusters(String resourceGroupName, String clusterName);
+
+ /**
+ * List DeploymentSetting resources by Clusters.
+ *
+ * @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 response of a DeploymentSetting list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByClusters(String resourceGroupName, String clusterName, Context context);
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/EdgeDeviceJobsClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/EdgeDeviceJobsClient.java
new file mode 100644
index 000000000000..03a6b59161c2
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/EdgeDeviceJobsClient.java
@@ -0,0 +1,199 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.azurestackhci.fluent.models.EdgeDeviceJobInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in EdgeDeviceJobsClient.
+ */
+public interface EdgeDeviceJobsClient {
+ /**
+ * Get a EdgeDeviceJob.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param edgeDeviceName Name of Device.
+ * @param jobsName Name of EdgeDevice Job.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a EdgeDeviceJob along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceUri, String edgeDeviceName, String jobsName,
+ Context context);
+
+ /**
+ * Get a EdgeDeviceJob.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param edgeDeviceName Name of Device.
+ * @param jobsName Name of EdgeDevice Job.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a EdgeDeviceJob.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeDeviceJobInner get(String resourceUri, String edgeDeviceName, String jobsName);
+
+ /**
+ * Create a EdgeDeviceJob.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param edgeDeviceName Name of Device.
+ * @param jobsName Name of EdgeDevice Job.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 edgeDevice Jobs resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EdgeDeviceJobInner> beginCreateOrUpdate(String resourceUri,
+ String edgeDeviceName, String jobsName, EdgeDeviceJobInner resource);
+
+ /**
+ * Create a EdgeDeviceJob.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param edgeDeviceName Name of Device.
+ * @param jobsName Name of EdgeDevice Job.
+ * @param resource Resource create parameters.
+ * @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 edgeDevice Jobs resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EdgeDeviceJobInner> beginCreateOrUpdate(String resourceUri,
+ String edgeDeviceName, String jobsName, EdgeDeviceJobInner resource, Context context);
+
+ /**
+ * Create a EdgeDeviceJob.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param edgeDeviceName Name of Device.
+ * @param jobsName Name of EdgeDevice Job.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return edgeDevice Jobs resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeDeviceJobInner createOrUpdate(String resourceUri, String edgeDeviceName, String jobsName,
+ EdgeDeviceJobInner resource);
+
+ /**
+ * Create a EdgeDeviceJob.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param edgeDeviceName Name of Device.
+ * @param jobsName Name of EdgeDevice Job.
+ * @param resource Resource create parameters.
+ * @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 edgeDevice Jobs resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeDeviceJobInner createOrUpdate(String resourceUri, String edgeDeviceName, String jobsName,
+ EdgeDeviceJobInner resource, Context context);
+
+ /**
+ * Delete a EdgeDeviceJob.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param edgeDeviceName Name of Device.
+ * @param jobsName Name of EdgeDevice Job.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceUri, String edgeDeviceName, String jobsName);
+
+ /**
+ * Delete a EdgeDeviceJob.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param edgeDeviceName Name of Device.
+ * @param jobsName Name of EdgeDevice Job.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceUri, String edgeDeviceName, String jobsName,
+ Context context);
+
+ /**
+ * Delete a EdgeDeviceJob.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param edgeDeviceName Name of Device.
+ * @param jobsName Name of EdgeDevice Job.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceUri, String edgeDeviceName, String jobsName);
+
+ /**
+ * Delete a EdgeDeviceJob.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param edgeDeviceName Name of Device.
+ * @param jobsName Name of EdgeDevice Job.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceUri, String edgeDeviceName, String jobsName, Context context);
+
+ /**
+ * List EdgeDeviceJob resources by EdgeDevice.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param edgeDeviceName Name of Device.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 of a EdgeDeviceJob list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByEdgeDevice(String resourceUri, String edgeDeviceName);
+
+ /**
+ * List EdgeDeviceJob resources by EdgeDevice.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param edgeDeviceName Name of Device.
+ * @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 of a EdgeDeviceJob list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByEdgeDevice(String resourceUri, String edgeDeviceName, Context context);
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/EdgeDevicesClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/EdgeDevicesClient.java
index f7d9780db850..2bf12927440a 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/EdgeDevicesClient.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/EdgeDevicesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent;
@@ -19,31 +19,6 @@
* An instance of this class provides access to all the operations defined in EdgeDevicesClient.
*/
public interface EdgeDevicesClient {
- /**
- * List EdgeDevice resources by parent.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 of a EdgeDevice list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceUri);
-
- /**
- * List EdgeDevice resources by parent.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @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 of a EdgeDevice list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceUri, Context context);
-
/**
* Get a EdgeDevice.
*
@@ -184,6 +159,31 @@ EdgeDeviceInner createOrUpdate(String resourceUri, String edgeDeviceName, EdgeDe
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceUri, String edgeDeviceName, Context context);
+ /**
+ * List EdgeDevice resources by parent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 of a EdgeDevice list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceUri);
+
+ /**
+ * List EdgeDevice resources by parent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @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 of a EdgeDevice list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceUri, Context context);
+
/**
* A long-running resource action.
*
@@ -193,7 +193,7 @@ EdgeDeviceInner createOrUpdate(String resourceUri, String edgeDeviceName, EdgeDe
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 an Accepted response with an Operation-Location header.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ValidateResponseInner> beginValidate(String resourceUri,
@@ -209,7 +209,7 @@ SyncPoller, ValidateResponseInner> beginValida
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 an Accepted response with an Operation-Location header.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ValidateResponseInner> beginValidate(String resourceUri,
@@ -224,7 +224,7 @@ SyncPoller, ValidateResponseInner> beginValida
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Accepted response with an Operation-Location header.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ValidateResponseInner validate(String resourceUri, String edgeDeviceName, ValidateRequest validateRequest);
@@ -239,7 +239,7 @@ SyncPoller, ValidateResponseInner> beginValida
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Accepted response with an Operation-Location header.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ValidateResponseInner validate(String resourceUri, String edgeDeviceName, ValidateRequest validateRequest,
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ExtensionsClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ExtensionsClient.java
index 9c174e73450b..9d1d44cff5bd 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ExtensionsClient.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ExtensionsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent;
@@ -19,36 +19,6 @@
* An instance of this class provides access to all the operations defined in ExtensionsClient.
*/
public interface ExtensionsClient {
- /**
- * List all Extensions under ArcSetting resource.
- *
- * @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 list of Extensions in HCI cluster as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByArcSetting(String resourceGroupName, String clusterName, String arcSettingName);
-
- /**
- * List all Extensions under ArcSetting resource.
- *
- * @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 list of Extensions in HCI cluster as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByArcSetting(String resourceGroupName, String clusterName, String arcSettingName,
- Context context);
-
/**
* Get particular Arc Extension of HCI Cluster.
*
@@ -284,6 +254,36 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
void delete(String resourceGroupName, String clusterName, String arcSettingName, String extensionName,
Context context);
+ /**
+ * List all Extensions under ArcSetting resource.
+ *
+ * @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 list of Extensions in HCI cluster as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByArcSetting(String resourceGroupName, String clusterName, String arcSettingName);
+
+ /**
+ * List all Extensions under ArcSetting resource.
+ *
+ * @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 list of Extensions in HCI cluster as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByArcSetting(String resourceGroupName, String clusterName, String arcSettingName,
+ Context context);
+
/**
* Upgrade a particular Arc Extension of HCI Cluster.
*
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/OffersClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/OffersClient.java
index 9e145741b219..d30e3064584a 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/OffersClient.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/OffersClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent;
@@ -16,55 +16,59 @@
*/
public interface OffersClient {
/**
- * List Offers available for a publisher within the HCI Cluster.
+ * Get Offer resource details within a publisher of HCI Cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param publisherName The name of the publisher available within HCI cluster.
+ * @param offerName The name of the offer available within HCI cluster.
+ * @param expand Specify $expand=content,contentVersion to populate additional fields related to the marketplace
+ * offer.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Offer proxy resources for the HCI cluster as paginated response with {@link PagedIterable}.
+ * @return offer resource details within a publisher of HCI Cluster along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByPublisher(String resourceGroupName, String clusterName, String publisherName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String clusterName, String publisherName,
+ String offerName, String expand, Context context);
/**
- * List Offers available for a publisher within the HCI Cluster.
+ * Get Offer resource details within a publisher of HCI Cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param publisherName The name of the publisher available within HCI cluster.
- * @param expand Specify $expand=content,contentVersion to populate additional fields related to the marketplace
- * offer.
- * @param context The context to associate with this operation.
+ * @param offerName The name of the offer available within HCI 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 list of Offer proxy resources for the HCI cluster as paginated response with {@link PagedIterable}.
+ * @return offer resource details within a publisher of HCI Cluster.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByPublisher(String resourceGroupName, String clusterName, String publisherName,
- String expand, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OfferInner get(String resourceGroupName, String clusterName, String publisherName, String offerName);
/**
- * List Offers available across publishers for the HCI Cluster.
+ * List Offers available for a publisher within the HCI Cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
+ * @param publisherName The name of the publisher available within HCI 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 list of Offer proxy resources for the HCI cluster as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByCluster(String resourceGroupName, String clusterName);
+ PagedIterable listByPublisher(String resourceGroupName, String clusterName, String publisherName);
/**
- * List Offers available across publishers for the HCI Cluster.
+ * List Offers available for a publisher within the HCI Cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
+ * @param publisherName The name of the publisher available within HCI cluster.
* @param expand Specify $expand=content,contentVersion to populate additional fields related to the marketplace
* offer.
* @param context The context to associate with this operation.
@@ -74,40 +78,36 @@ PagedIterable listByPublisher(String resourceGroupName, String clust
* @return list of Offer proxy resources for the HCI cluster as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByCluster(String resourceGroupName, String clusterName, String expand,
- Context context);
+ PagedIterable listByPublisher(String resourceGroupName, String clusterName, String publisherName,
+ String expand, Context context);
/**
- * Get Offer resource details within a publisher of HCI Cluster.
+ * List Offers available across publishers for the HCI Cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
- * @param publisherName The name of the publisher available within HCI cluster.
- * @param offerName The name of the offer available within HCI cluster.
- * @param expand Specify $expand=content,contentVersion to populate additional fields related to the marketplace
- * offer.
- * @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 offer resource details within a publisher of HCI Cluster along with {@link Response}.
+ * @return list of Offer proxy resources for the HCI cluster as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String clusterName, String publisherName,
- String offerName, String expand, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByCluster(String resourceGroupName, String clusterName);
/**
- * Get Offer resource details within a publisher of HCI Cluster.
+ * List Offers available across publishers for the HCI Cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
- * @param publisherName The name of the publisher available within HCI cluster.
- * @param offerName The name of the offer available within HCI cluster.
+ * @param expand Specify $expand=content,contentVersion to populate additional fields related to the marketplace
+ * offer.
+ * @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 offer resource details within a publisher of HCI Cluster.
+ * @return list of Offer proxy resources for the HCI cluster as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- OfferInner get(String resourceGroupName, String clusterName, String publisherName, String offerName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByCluster(String resourceGroupName, String clusterName, String expand,
+ Context context);
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/OperationsClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/OperationsClient.java
index 6feec3a3c889..099056a1ee5b 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/OperationsClient.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/OperationsClient.java
@@ -1,38 +1,40 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.azurestackhci.fluent.models.OperationListResultInner;
+import com.azure.resourcemanager.azurestackhci.fluent.models.OperationInner;
/**
* An instance of this class provides access to all the operations defined in OperationsClient.
*/
public interface OperationsClient {
/**
- * List all available Microsoft.AzureStackHCI provider operations.
+ * List the operations for the provider.
*
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of REST API operations supported by an Azure Resource Provider along with {@link Response}.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
/**
- * List all available Microsoft.AzureStackHCI provider operations.
+ * List the operations for the provider.
*
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of REST API operations supported by an Azure Resource Provider.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- OperationListResultInner list();
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/SecuritySettingsClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/SecuritySettingsClient.java
index 4892d4ba3fe3..fd02db00cbac 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/SecuritySettingsClient.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/SecuritySettingsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent;
@@ -17,33 +17,6 @@
* An instance of this class provides access to all the operations defined in SecuritySettingsClient.
*/
public interface SecuritySettingsClient {
- /**
- * List SecuritySetting resources by Clusters.
- *
- * @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 response of a SecuritySetting list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByClusters(String resourceGroupName, String clusterName);
-
- /**
- * List SecuritySetting resources by Clusters.
- *
- * @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 response of a SecuritySetting list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByClusters(String resourceGroupName, String clusterName, Context context);
-
/**
* Get a SecuritySetting.
*
@@ -197,4 +170,31 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String clusterName, String securitySettingsName, Context context);
+
+ /**
+ * List SecuritySetting resources by Clusters.
+ *
+ * @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 response of a SecuritySetting list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByClusters(String resourceGroupName, String clusterName);
+
+ /**
+ * List SecuritySetting resources by Clusters.
+ *
+ * @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 response of a SecuritySetting list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByClusters(String resourceGroupName, String clusterName, Context context);
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/SkusClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/SkusClient.java
index 7cf73f5cbfe9..9c3ddd2d5272 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/SkusClient.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/SkusClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent;
@@ -16,73 +16,73 @@
*/
public interface SkusClient {
/**
- * List Skus available for a offer within the HCI Cluster.
+ * Get SKU resource details within a offer of HCI Cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param publisherName The name of the publisher available within HCI cluster.
* @param offerName The name of the offer available within HCI cluster.
+ * @param skuName The name of the SKU available within HCI cluster.
+ * @param expand Specify $expand=content,contentVersion to populate additional fields related to the marketplace
+ * offer.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of SKU proxy resources for the HCI cluster as paginated response with {@link PagedIterable}.
+ * @return sKU resource details within a offer of HCI Cluster along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByOffer(String resourceGroupName, String clusterName, String publisherName,
- String offerName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String clusterName, String publisherName,
+ String offerName, String skuName, String expand, Context context);
/**
- * List Skus available for a offer within the HCI Cluster.
+ * Get SKU resource details within a offer of HCI Cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param publisherName The name of the publisher available within HCI cluster.
* @param offerName The name of the offer available within HCI cluster.
- * @param expand Specify $expand=content,contentVersion to populate additional fields related to the marketplace
- * offer.
- * @param context The context to associate with this operation.
+ * @param skuName The name of the SKU available within HCI 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 list of SKU proxy resources for the HCI cluster as paginated response with {@link PagedIterable}.
+ * @return sKU resource details within a offer of HCI Cluster.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByOffer(String resourceGroupName, String clusterName, String publisherName,
- String offerName, String expand, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SkuInner get(String resourceGroupName, String clusterName, String publisherName, String offerName, String skuName);
/**
- * Get SKU resource details within a offer of HCI Cluster.
+ * List Skus available for a offer within the HCI Cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param publisherName The name of the publisher available within HCI cluster.
* @param offerName The name of the offer available within HCI cluster.
- * @param skuName The name of the SKU available within HCI cluster.
- * @param expand Specify $expand=content,contentVersion to populate additional fields related to the marketplace
- * offer.
- * @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 sKU resource details within a offer of HCI Cluster along with {@link Response}.
+ * @return list of SKU proxy resources for the HCI cluster as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String clusterName, String publisherName,
- String offerName, String skuName, String expand, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByOffer(String resourceGroupName, String clusterName, String publisherName,
+ String offerName);
/**
- * Get SKU resource details within a offer of HCI Cluster.
+ * List Skus available for a offer within the HCI Cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param publisherName The name of the publisher available within HCI cluster.
* @param offerName The name of the offer available within HCI cluster.
- * @param skuName The name of the SKU available within HCI cluster.
+ * @param expand Specify $expand=content,contentVersion to populate additional fields related to the marketplace
+ * offer.
+ * @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 sKU resource details within a offer of HCI Cluster.
+ * @return list of SKU proxy resources for the HCI cluster as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- SkuInner get(String resourceGroupName, String clusterName, String publisherName, String offerName, String skuName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByOffer(String resourceGroupName, String clusterName, String publisherName,
+ String offerName, String expand, Context context);
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/UpdateRunsClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/UpdateRunsClient.java
index c5f5fb016c72..be0094245784 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/UpdateRunsClient.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/UpdateRunsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent;
@@ -18,67 +18,71 @@
*/
public interface UpdateRunsClient {
/**
- * List all Update runs for a specified update.
+ * Get the Update run for a specified update.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param updateName The name of the Update.
+ * @param updateRunName The name of the Update Run.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Update runs as paginated response with {@link PagedIterable}.
+ * @return the Update run for a specified update along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String clusterName, String updateName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String clusterName, String updateName,
+ String updateRunName, Context context);
/**
- * List all Update runs for a specified update.
+ * Get the Update run for a specified update.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param updateName The name of the Update.
- * @param context The context to associate with this operation.
+ * @param updateRunName The name of the Update Run.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Update runs as paginated response with {@link PagedIterable}.
+ * @return the Update run for a specified update.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String clusterName, String updateName,
- Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ UpdateRunInner get(String resourceGroupName, String clusterName, String updateName, String updateRunName);
/**
- * Delete specified Update Run.
+ * Put Update runs for a specified update.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param updateName The name of the Update.
* @param updateRunName The name of the Update Run.
+ * @param updateRunsProperties Properties of the updateRuns object.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return details of an Update run along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String updateName,
- String updateRunName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response putWithResponse(String resourceGroupName, String clusterName, String updateName,
+ String updateRunName, UpdateRunInner updateRunsProperties, Context context);
/**
- * Delete specified Update Run.
+ * Put Update runs for a specified update.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param updateName The name of the Update.
* @param updateRunName The name of the Update Run.
- * @param context The context to associate with this operation.
+ * @param updateRunsProperties Properties of the updateRuns object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return details of an Update run.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String updateName,
- String updateRunName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ UpdateRunInner put(String resourceGroupName, String clusterName, String updateName, String updateRunName,
+ UpdateRunInner updateRunsProperties);
/**
* Delete specified Update Run.
@@ -90,9 +94,11 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.SINGLE)
- void delete(String resourceGroupName, String clusterName, String updateName, String updateRunName);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String updateName,
+ String updateRunName);
/**
* Delete specified Update Run.
@@ -105,74 +111,68 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.SINGLE)
- void delete(String resourceGroupName, String clusterName, String updateName, String updateRunName, Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String updateName,
+ String updateRunName, Context context);
/**
- * Put Update runs for a specified update.
+ * Delete specified Update Run.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param updateName The name of the Update.
* @param updateRunName The name of the Update Run.
- * @param updateRunsProperties Properties of the updateRuns object.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return details of an Update run along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response putWithResponse(String resourceGroupName, String clusterName, String updateName,
- String updateRunName, UpdateRunInner updateRunsProperties, Context context);
+ void delete(String resourceGroupName, String clusterName, String updateName, String updateRunName);
/**
- * Put Update runs for a specified update.
+ * Delete specified Update Run.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param updateName The name of the Update.
* @param updateRunName The name of the Update Run.
- * @param updateRunsProperties Properties of the updateRuns object.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return details of an Update run.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- UpdateRunInner put(String resourceGroupName, String clusterName, String updateName, String updateRunName,
- UpdateRunInner updateRunsProperties);
+ void delete(String resourceGroupName, String clusterName, String updateName, String updateRunName, Context context);
/**
- * Get the Update run for a specified update.
+ * List all Update runs for a specified update.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param updateName The name of the Update.
- * @param updateRunName The name of the Update Run.
- * @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 Update run for a specified update along with {@link Response}.
+ * @return list of Update runs as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String clusterName, String updateName,
- String updateRunName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String clusterName, String updateName);
/**
- * Get the Update run for a specified update.
+ * List all Update runs for a specified update.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param updateName The name of the Update.
- * @param updateRunName The name of the Update Run.
+ * @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 Update run for a specified update.
+ * @return list of Update runs as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- UpdateRunInner get(String resourceGroupName, String clusterName, String updateName, String updateRunName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String clusterName, String updateName,
+ Context context);
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/UpdateSummariesOperationsClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/UpdateSummariesOperationsClient.java
index 665da1856102..c0704d357f89 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/UpdateSummariesOperationsClient.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/UpdateSummariesOperationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent;
@@ -18,58 +18,62 @@
*/
public interface UpdateSummariesOperationsClient {
/**
- * List all Update summaries under the HCI cluster.
+ * Get all Update summaries under the 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 list of Update Summaries as paginated response with {@link PagedIterable}.
+ * @return all Update summaries under the HCI cluster along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String clusterName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String clusterName, Context context);
/**
- * List all Update summaries under the HCI cluster.
+ * Get all Update summaries under the 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 list of Update Summaries as paginated response with {@link PagedIterable}.
+ * @return all Update summaries under the HCI cluster.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String clusterName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ UpdateSummariesInner get(String resourceGroupName, String clusterName);
/**
- * Delete Update Summaries.
+ * Put Update summaries under the HCI cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
+ * @param updateLocationProperties Properties of the UpdateSummaries resource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return get the update summaries for the cluster along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response putWithResponse(String resourceGroupName, String clusterName,
+ UpdateSummariesInner updateLocationProperties, Context context);
/**
- * Delete Update Summaries.
+ * Put Update summaries under the 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.
+ * @param updateLocationProperties Properties of the UpdateSummaries resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return get the update summaries for the cluster.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ UpdateSummariesInner put(String resourceGroupName, String clusterName,
+ UpdateSummariesInner updateLocationProperties);
/**
* Delete Update Summaries.
@@ -79,9 +83,10 @@ public interface UpdateSummariesOperationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.SINGLE)
- void delete(String resourceGroupName, String clusterName);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName);
/**
* Delete Update Summaries.
@@ -92,65 +97,60 @@ public interface UpdateSummariesOperationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.SINGLE)
- void delete(String resourceGroupName, String clusterName, Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, Context context);
/**
- * Put Update summaries under the HCI cluster.
+ * Delete Update Summaries.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
- * @param updateLocationProperties Properties of the UpdateSummaries resource.
- * @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 get the update summaries for the cluster along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response putWithResponse(String resourceGroupName, String clusterName,
- UpdateSummariesInner updateLocationProperties, Context context);
+ void delete(String resourceGroupName, String clusterName);
/**
- * Put Update summaries under the HCI cluster.
+ * Delete Update Summaries.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
- * @param updateLocationProperties Properties of the UpdateSummaries resource.
+ * @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 get the update summaries for the cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- UpdateSummariesInner put(String resourceGroupName, String clusterName,
- UpdateSummariesInner updateLocationProperties);
+ void delete(String resourceGroupName, String clusterName, Context context);
/**
- * Get all Update summaries under the HCI cluster.
+ * List all Update summaries under the 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 all Update summaries under the HCI cluster along with {@link Response}.
+ * @return list of Update Summaries as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String clusterName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String clusterName);
/**
- * Get all Update summaries under the HCI cluster.
+ * List all Update summaries under the 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 all Update summaries under the HCI cluster.
+ * @return list of Update Summaries as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- UpdateSummariesInner get(String resourceGroupName, String clusterName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String clusterName, Context context);
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/UpdatesClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/UpdatesClient.java
index abb24622a230..2459c3d5882d 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/UpdatesClient.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/UpdatesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent;
@@ -18,88 +18,97 @@
*/
public interface UpdatesClient {
/**
- * Apply Update.
+ * Get specified Update.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param updateName The name of the Update.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return specified Update along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginPost(String resourceGroupName, String clusterName, String updateName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String clusterName, String updateName,
+ Context context);
/**
- * Apply Update.
+ * Get specified Update.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param updateName The name of the Update.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return specified Update.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginPost(String resourceGroupName, String clusterName, String updateName,
- Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ HciUpdateInner get(String resourceGroupName, String clusterName, String updateName);
/**
- * Apply Update.
+ * Put specified Update.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param updateName The name of the Update.
+ * @param updateProperties Properties of the Updates object.
+ * @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 update details along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void post(String resourceGroupName, String clusterName, String updateName);
+ Response putWithResponse(String resourceGroupName, String clusterName, String updateName,
+ HciUpdateInner updateProperties, Context context);
/**
- * Apply Update.
+ * Put specified Update.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param updateName The name of the Update.
- * @param context The context to associate with this operation.
+ * @param updateProperties Properties of the Updates object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return update details.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void post(String resourceGroupName, String clusterName, String updateName, Context context);
+ HciUpdateInner put(String resourceGroupName, String clusterName, String updateName,
+ HciUpdateInner updateProperties);
/**
- * List all Updates.
+ * Delete specified Update.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
+ * @param updateName The name of the Update.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Updates as paginated response with {@link PagedIterable}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String clusterName);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String updateName);
/**
- * List all Updates.
+ * Delete specified Update.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
+ * @param updateName The name of the Update.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Updates as paginated response with {@link PagedIterable}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String clusterName, Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String updateName,
+ Context context);
/**
* Delete specified Update.
@@ -110,10 +119,9 @@ SyncPoller, Void> beginPost(String resourceGroupName, String cl
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String updateName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String clusterName, String updateName);
/**
* Delete specified Update.
@@ -125,99 +133,91 @@ SyncPoller, Void> beginPost(String resourceGroupName, String cl
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String updateName,
- Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String clusterName, String updateName, Context context);
/**
- * Delete specified Update.
+ * List all Updates.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
- * @param updateName The name of the Update.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of Updates as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String clusterName, String updateName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String clusterName);
/**
- * Delete specified Update.
+ * List all Updates.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
- * @param updateName The name of the Update.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of Updates as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String clusterName, String updateName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String clusterName, Context context);
/**
- * Put specified Update.
+ * Apply Update.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param updateName The name of the Update.
- * @param updateProperties Properties of the Updates object.
- * @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 update details along with {@link Response}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response putWithResponse(String resourceGroupName, String clusterName, String updateName,
- HciUpdateInner updateProperties, Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginPost(String resourceGroupName, String clusterName, String updateName);
/**
- * Put specified Update.
+ * Apply Update.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param updateName The name of the Update.
- * @param updateProperties Properties of the Updates object.
+ * @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 update details.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- HciUpdateInner put(String resourceGroupName, String clusterName, String updateName,
- HciUpdateInner updateProperties);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginPost(String resourceGroupName, String clusterName, String updateName,
+ Context context);
/**
- * Get specified Update.
+ * Apply Update.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param updateName The name of the Update.
- * @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 specified Update along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String clusterName, String updateName,
- Context context);
+ void post(String resourceGroupName, String clusterName, String updateName);
/**
- * Get specified Update.
+ * Apply Update.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param updateName The name of the Update.
+ * @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 specified Update.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- HciUpdateInner get(String resourceGroupName, String clusterName, String updateName);
+ void post(String resourceGroupName, String clusterName, String updateName, Context context);
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/PublishersClient.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ValidatedSolutionRecipesClient.java
similarity index 51%
rename from sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/PublishersClient.java
rename to sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ValidatedSolutionRecipesClient.java
index fc00e8192d2e..30eadaa45a9a 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/PublishersClient.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/ValidatedSolutionRecipesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent;
@@ -9,66 +9,64 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.azurestackhci.fluent.models.PublisherInner;
+import com.azure.resourcemanager.azurestackhci.fluent.models.ValidatedSolutionRecipeInner;
/**
- * An instance of this class provides access to all the operations defined in PublishersClient.
+ * An instance of this class provides access to all the operations defined in ValidatedSolutionRecipesClient.
*/
-public interface PublishersClient {
+public interface ValidatedSolutionRecipesClient {
/**
- * List Publishers available for the HCI Cluster.
+ * Get a validated solution recipe.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
+ * @param location The name of the Azure region.
+ * @param validatedSolutionRecipeName The name of the ValidatedSolutionRecipe.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Publisher proxy resources for the HCI cluster as paginated response with {@link PagedIterable}.
+ * @return a validated solution recipe along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByCluster(String resourceGroupName, String clusterName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String location, String validatedSolutionRecipeName,
+ Context context);
/**
- * List Publishers available for the HCI Cluster.
+ * Get a validated solution recipe.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param context The context to associate with this operation.
+ * @param location The name of the Azure region.
+ * @param validatedSolutionRecipeName The name of the ValidatedSolutionRecipe.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Publisher proxy resources for the HCI cluster as paginated response with {@link PagedIterable}.
+ * @return a validated solution recipe.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByCluster(String resourceGroupName, String clusterName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ValidatedSolutionRecipeInner get(String location, String validatedSolutionRecipeName);
/**
- * Get Publisher resource details of HCI Cluster.
+ * List all validated solution recipes.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param publisherName The name of the publisher available within HCI cluster.
- * @param context The context to associate with this operation.
+ * @param location The name of the Azure region.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return publisher resource details of HCI Cluster along with {@link Response}.
+ * @return the response of a ValidatedSolutionRecipe list operation as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String clusterName, String publisherName,
- Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listBySubscriptionLocationResource(String location);
/**
- * Get Publisher resource details of HCI Cluster.
+ * List all validated solution recipes.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param publisherName The name of the publisher available within HCI cluster.
+ * @param location The name of the Azure region.
+ * @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 publisher resource details of HCI Cluster.
+ * @return the response of a ValidatedSolutionRecipe list operation as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- PublisherInner get(String resourceGroupName, String clusterName, String publisherName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listBySubscriptionLocationResource(String location, 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
index 509d46b0756d..080815e37521 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
@@ -24,7 +24,7 @@ public final class ArcIdentityResponseInner implements JsonSerializable {
/*
* The arcApplicationClientId property.
@@ -39,7 +39,7 @@ public final class ArcIdentityResponseProperties implements JsonSerializable perNodeDetails() {
*
* @return the connectivityProperties value.
*/
- public Object connectivityProperties() {
+ public ArcConnectivityProperties connectivityProperties() {
return this.innerProperties() == null ? null : this.innerProperties().connectivityProperties();
}
@@ -260,7 +261,7 @@ public Object connectivityProperties() {
* @param connectivityProperties the connectivityProperties value to set.
* @return the ArcSettingInner object itself.
*/
- public ArcSettingInner withConnectivityProperties(Object connectivityProperties) {
+ public ArcSettingInner withConnectivityProperties(ArcConnectivityProperties connectivityProperties) {
if (this.innerProperties() == null) {
this.innerProperties = new ArcSettingProperties();
}
@@ -277,17 +278,6 @@ public List defaultExtensions() {
return this.innerProperties() == null ? null : this.innerProperties().defaultExtensions();
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
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 915d349b2fe6..4c159442a8f5 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
@@ -9,6 +9,7 @@
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurestackhci.models.ArcConnectivityProperties;
import com.azure.resourcemanager.azurestackhci.models.ArcSettingAggregateState;
import com.azure.resourcemanager.azurestackhci.models.DefaultExtensionDetails;
import com.azure.resourcemanager.azurestackhci.models.PerNodeState;
@@ -64,7 +65,7 @@ public final class ArcSettingProperties implements JsonSerializable perNodeDetails() {
*
* @return the connectivityProperties value.
*/
- public Object connectivityProperties() {
+ public ArcConnectivityProperties connectivityProperties() {
return this.connectivityProperties;
}
@@ -221,7 +222,7 @@ public Object connectivityProperties() {
* @param connectivityProperties the connectivityProperties value to set.
* @return the ArcSettingProperties object itself.
*/
- public ArcSettingProperties withConnectivityProperties(Object connectivityProperties) {
+ public ArcSettingProperties withConnectivityProperties(ArcConnectivityProperties connectivityProperties) {
this.connectivityProperties = connectivityProperties;
return this;
}
@@ -235,20 +236,6 @@ public List defaultExtensions() {
return this.defaultExtensions;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (perNodeDetails() != null) {
- perNodeDetails().forEach(e -> e.validate());
- }
- if (defaultExtensions() != null) {
- defaultExtensions().forEach(e -> e.validate());
- }
- }
-
/**
* {@inheritDoc}
*/
@@ -260,7 +247,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("arcApplicationTenantId", this.arcApplicationTenantId);
jsonWriter.writeStringField("arcServicePrincipalObjectId", this.arcServicePrincipalObjectId);
jsonWriter.writeStringField("arcApplicationObjectId", this.arcApplicationObjectId);
- jsonWriter.writeUntypedField("connectivityProperties", this.connectivityProperties);
+ jsonWriter.writeJsonField("connectivityProperties", this.connectivityProperties);
return jsonWriter.writeEndObject();
}
@@ -299,7 +286,8 @@ public static ArcSettingProperties fromJson(JsonReader jsonReader) throws IOExce
List perNodeDetails = reader.readArray(reader1 -> PerNodeState.fromJson(reader1));
deserializedArcSettingProperties.perNodeDetails = perNodeDetails;
} else if ("connectivityProperties".equals(fieldName)) {
- deserializedArcSettingProperties.connectivityProperties = reader.readUntyped();
+ deserializedArcSettingProperties.connectivityProperties
+ = ArcConnectivityProperties.fromJson(reader);
} else if ("defaultExtensions".equals(fieldName)) {
List defaultExtensions
= reader.readArray(reader1 -> DefaultExtensionDetails.fromJson(reader1));
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
index 0e71e801fd3a..498e64fa770b 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
@@ -9,6 +9,7 @@
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurestackhci.models.ArcConnectivityProperties;
import java.io.IOException;
/**
@@ -19,7 +20,7 @@ public final class ArcSettingsPatchProperties implements JsonSerializable {
/*
* The aadClientId property.
@@ -39,7 +39,7 @@ public final class ClusterIdentityResponseProperties implements JsonSerializable
/**
* Creates an instance of ClusterIdentityResponseProperties class.
*/
- public ClusterIdentityResponseProperties() {
+ private ClusterIdentityResponseProperties() {
}
/**
@@ -51,17 +51,6 @@ 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.
*
@@ -71,17 +60,6 @@ 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.
*
@@ -91,17 +69,6 @@ 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.
*
@@ -111,25 +78,6 @@ 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() {
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterInner.java
index 1723360506c4..cf150590d67d 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
@@ -11,20 +11,24 @@
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.azurestackhci.models.ClusterDesiredProperties;
+import com.azure.resourcemanager.azurestackhci.models.ClusterPattern;
import com.azure.resourcemanager.azurestackhci.models.ClusterReportedProperties;
import com.azure.resourcemanager.azurestackhci.models.ConnectivityStatus;
+import com.azure.resourcemanager.azurestackhci.models.IdentityProvider;
import com.azure.resourcemanager.azurestackhci.models.IsolatedVmAttestationConfiguration;
+import com.azure.resourcemanager.azurestackhci.models.LocalAvailabilityZones;
import com.azure.resourcemanager.azurestackhci.models.LogCollectionProperties;
import com.azure.resourcemanager.azurestackhci.models.ManagedServiceIdentityType;
import com.azure.resourcemanager.azurestackhci.models.ProvisioningState;
import com.azure.resourcemanager.azurestackhci.models.RemoteSupportProperties;
+import com.azure.resourcemanager.azurestackhci.models.SecretsLocationDetails;
import com.azure.resourcemanager.azurestackhci.models.SoftwareAssuranceProperties;
import com.azure.resourcemanager.azurestackhci.models.Status;
import com.azure.resourcemanager.azurestackhci.models.UserAssignedIdentity;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.util.List;
import java.util.Map;
-import java.util.UUID;
/**
* Cluster details.
@@ -32,14 +36,14 @@
@Fluent
public final class ClusterInner extends Resource {
/*
- * Identity of Cluster resource
+ * Cluster properties.
*/
- private ManagedServiceIdentity innerIdentity;
+ private ClusterProperties innerProperties;
/*
- * Cluster properties.
+ * The managed service identities assigned to this resource.
*/
- private ClusterProperties innerProperties;
+ private ManagedServiceIdentity innerIdentity;
/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
@@ -47,9 +51,9 @@ public final class ClusterInner extends Resource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -57,9 +61,9 @@ public final class ClusterInner extends Resource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of ClusterInner class.
@@ -68,21 +72,21 @@ public ClusterInner() {
}
/**
- * Get the innerIdentity property: Identity of Cluster resource.
+ * Get the innerProperties property: Cluster properties.
*
- * @return the innerIdentity value.
+ * @return the innerProperties value.
*/
- private ManagedServiceIdentity innerIdentity() {
- return this.innerIdentity;
+ private ClusterProperties innerProperties() {
+ return this.innerProperties;
}
/**
- * Get the innerProperties property: Cluster properties.
+ * Get the innerIdentity property: The managed service identities assigned to this resource.
*
- * @return the innerProperties value.
+ * @return the innerIdentity value.
*/
- private ClusterProperties innerProperties() {
- return this.innerProperties;
+ private ManagedServiceIdentity innerIdentity() {
+ return this.innerIdentity;
}
/**
@@ -95,13 +99,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -115,13 +119,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
@@ -143,81 +147,8 @@ public ClusterInner withTags(Map tags) {
}
/**
- * Get the principalId property: The service principal ID of the system assigned identity. This property will only
- * be provided for a system assigned identity.
- *
- * @return the principalId value.
- */
- public UUID principalId() {
- return this.innerIdentity() == null ? null : this.innerIdentity().principalId();
- }
-
- /**
- * Get the tenantId property: The tenant ID of the system assigned identity. This property will only be provided for
- * a system assigned identity.
- *
- * @return the tenantId value.
- */
- public UUID tenantId() {
- return this.innerIdentity() == null ? null : this.innerIdentity().tenantId();
- }
-
- /**
- * Get the type property: Type of managed service identity (where both SystemAssigned and UserAssigned types are
- * allowed).
- *
- * @return the type value.
- */
- public ManagedServiceIdentityType typeIdentityType() {
- return this.innerIdentity() == null ? null : this.innerIdentity().type();
- }
-
- /**
- * Set the type property: Type of managed service identity (where both SystemAssigned and UserAssigned types are
- * allowed).
- *
- * @param type the type value to set.
- * @return the ClusterInner object itself.
- */
- public ClusterInner withTypeIdentityType(ManagedServiceIdentityType type) {
- if (this.innerIdentity() == null) {
- this.innerIdentity = new ManagedServiceIdentity();
- }
- this.innerIdentity().withType(type);
- return this;
- }
-
- /**
- * Get the userAssignedIdentities property: The set of user assigned identities associated with the resource. The
- * userAssignedIdentities dictionary keys will be ARM resource ids in the form:
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
- * The dictionary values can be empty objects ({}) in requests.
- *
- * @return the userAssignedIdentities value.
- */
- public Map userAssignedIdentities() {
- return this.innerIdentity() == null ? null : this.innerIdentity().userAssignedIdentities();
- }
-
- /**
- * Set the userAssignedIdentities property: The set of user assigned identities associated with the resource. The
- * userAssignedIdentities dictionary keys will be ARM resource ids in the form:
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
- * The dictionary values can be empty objects ({}) in requests.
- *
- * @param userAssignedIdentities the userAssignedIdentities value to set.
- * @return the ClusterInner object itself.
- */
- public ClusterInner withUserAssignedIdentities(Map userAssignedIdentities) {
- if (this.innerIdentity() == null) {
- this.innerIdentity = new ManagedServiceIdentity();
- }
- this.innerIdentity().withUserAssignedIdentities(userAssignedIdentities);
- return this;
- }
-
- /**
- * Get the provisioningState property: Provisioning state.
+ * Get the provisioningState property: Provisioning state. Indicates the current lifecycle status of the resource,
+ * including creation, update, deletion, connectivity, and error states.
*
* @return the provisioningState value.
*/
@@ -226,7 +157,8 @@ public ProvisioningState provisioningState() {
}
/**
- * Get the status property: Status of the cluster agent.
+ * Get the status property: Status of the cluster agent. Indicates the current connectivity, validation, and
+ * deployment state of the agent within the cluster.
*
* @return the status value.
*/
@@ -235,7 +167,8 @@ public Status status() {
}
/**
- * Get the connectivityStatus property: Overall connectivity status for the cluster resource.
+ * Get the connectivityStatus property: Overall connectivity status for the cluster resource. Indicates whether the
+ * cluster is connected to Azure, partially connected, or has not recently communicated.
*
* @return the connectivityStatus value.
*/
@@ -390,6 +323,16 @@ public ClusterInner withSoftwareAssuranceProperties(SoftwareAssuranceProperties
return this;
}
+ /**
+ * Get the isManagementCluster property: Is Management Cluster, when true indicates that the cluster is used for
+ * managing other clusters.
+ *
+ * @return the isManagementCluster value.
+ */
+ public Boolean isManagementCluster() {
+ return this.innerProperties() == null ? null : this.innerProperties().isManagementCluster();
+ }
+
/**
* Get the logCollectionProperties property: Log Collection properties of the cluster.
*
@@ -483,7 +426,7 @@ public IsolatedVmAttestationConfiguration isolatedVmAttestationConfiguration() {
*
* @return the trialDaysRemaining value.
*/
- public Float trialDaysRemaining() {
+ public Double trialDaysRemaining() {
return this.innerProperties() == null ? null : this.innerProperties().trialDaysRemaining();
}
@@ -542,17 +485,133 @@ public String resourceProviderObjectId() {
}
/**
- * Validates the instance.
+ * Get the secretsLocations property: List of secret locations.
+ *
+ * @return the secretsLocations value.
+ */
+ public List secretsLocations() {
+ return this.innerProperties() == null ? null : this.innerProperties().secretsLocations();
+ }
+
+ /**
+ * Set the secretsLocations property: List of secret locations.
+ *
+ * @param secretsLocations the secretsLocations value to set.
+ * @return the ClusterInner object itself.
+ */
+ public ClusterInner withSecretsLocations(List secretsLocations) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ClusterProperties();
+ }
+ this.innerProperties().withSecretsLocations(secretsLocations);
+ return this;
+ }
+
+ /**
+ * Get the clusterPattern property: Supported Storage Type for HCI Cluster.
+ *
+ * @return the clusterPattern value.
+ */
+ public ClusterPattern clusterPattern() {
+ return this.innerProperties() == null ? null : this.innerProperties().clusterPattern();
+ }
+
+ /**
+ * Get the localAvailabilityZones property: Local Availability Zone information for HCI cluster.
+ *
+ * @return the localAvailabilityZones value.
+ */
+ public List localAvailabilityZones() {
+ return this.innerProperties() == null ? null : this.innerProperties().localAvailabilityZones();
+ }
+
+ /**
+ * Set the localAvailabilityZones property: Local Availability Zone information for HCI cluster.
+ *
+ * @param localAvailabilityZones the localAvailabilityZones value to set.
+ * @return the ClusterInner object itself.
+ */
+ public ClusterInner withLocalAvailabilityZones(List localAvailabilityZones) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ClusterProperties();
+ }
+ this.innerProperties().withLocalAvailabilityZones(localAvailabilityZones);
+ return this;
+ }
+
+ /**
+ * Get the identityProvider property: Identity Provider for the cluster.
+ *
+ * @return the identityProvider value.
+ */
+ public IdentityProvider identityProvider() {
+ return this.innerProperties() == null ? null : this.innerProperties().identityProvider();
+ }
+
+ /**
+ * Get the principalId property: The service principal ID of the system assigned identity. This property will only
+ * be provided for a system assigned identity.
+ *
+ * @return the principalId value.
+ */
+ public String principalId() {
+ return this.innerIdentity() == null ? null : this.innerIdentity().principalId();
+ }
+
+ /**
+ * Get the tenantId property: The tenant ID of the system assigned identity. This property will only be provided for
+ * a system assigned identity.
+ *
+ * @return the tenantId value.
+ */
+ public String tenantId() {
+ return this.innerIdentity() == null ? null : this.innerIdentity().tenantId();
+ }
+
+ /**
+ * Get the type property: The type of managed identity assigned to this resource.
+ *
+ * @return the type value.
+ */
+ public ManagedServiceIdentityType typeIdentityType() {
+ return this.innerIdentity() == null ? null : this.innerIdentity().type();
+ }
+
+ /**
+ * Set the type property: The type of managed identity assigned to this resource.
*
- * @throws IllegalArgumentException thrown if the instance is not valid.
+ * @param type the type value to set.
+ * @return the ClusterInner object itself.
*/
- public void validate() {
- if (innerIdentity() != null) {
- innerIdentity().validate();
+ public ClusterInner withTypeIdentityType(ManagedServiceIdentityType type) {
+ if (this.innerIdentity() == null) {
+ this.innerIdentity = new ManagedServiceIdentity();
}
- if (innerProperties() != null) {
- innerProperties().validate();
+ this.innerIdentity().withType(type);
+ return this;
+ }
+
+ /**
+ * Get the userAssignedIdentities property: The identities assigned to this resource by the user.
+ *
+ * @return the userAssignedIdentities value.
+ */
+ public Map userAssignedIdentities() {
+ return this.innerIdentity() == null ? null : this.innerIdentity().userAssignedIdentities();
+ }
+
+ /**
+ * Set the userAssignedIdentities property: The identities assigned to this resource by the user.
+ *
+ * @param userAssignedIdentities the userAssignedIdentities value to set.
+ * @return the ClusterInner object itself.
+ */
+ public ClusterInner withUserAssignedIdentities(Map userAssignedIdentities) {
+ if (this.innerIdentity() == null) {
+ this.innerIdentity = new ManagedServiceIdentity();
}
+ this.innerIdentity().withUserAssignedIdentities(userAssignedIdentities);
+ return this;
}
/**
@@ -563,8 +622,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("location", location());
jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
- jsonWriter.writeJsonField("identity", this.innerIdentity);
jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeJsonField("identity", this.innerIdentity);
return jsonWriter.writeEndObject();
}
@@ -595,10 +654,10 @@ public static ClusterInner fromJson(JsonReader jsonReader) throws IOException {
} else if ("tags".equals(fieldName)) {
Map tags = reader.readMap(reader1 -> reader1.getString());
deserializedClusterInner.withTags(tags);
- } else if ("identity".equals(fieldName)) {
- deserializedClusterInner.innerIdentity = ManagedServiceIdentity.fromJson(reader);
} else if ("properties".equals(fieldName)) {
deserializedClusterInner.innerProperties = ClusterProperties.fromJson(reader);
+ } else if ("identity".equals(fieldName)) {
+ deserializedClusterInner.innerIdentity = ManagedServiceIdentity.fromJson(reader);
} else if ("systemData".equals(fieldName)) {
deserializedClusterInner.systemData = SystemData.fromJson(reader);
} else {
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterPatchProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterPatchProperties.java
index 649afd5a489b..5e0e9dc5e5f1 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterPatchProperties.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterPatchProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
@@ -123,17 +123,6 @@ public ClusterPatchProperties withDesiredProperties(ClusterDesiredProperties des
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (desiredProperties() != null) {
- desiredProperties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ClusterProperties.java
index 07d16fd324e3..2bbd3e1006a6 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
@@ -11,16 +11,21 @@
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.azurestackhci.models.ClusterDesiredProperties;
+import com.azure.resourcemanager.azurestackhci.models.ClusterPattern;
import com.azure.resourcemanager.azurestackhci.models.ClusterReportedProperties;
import com.azure.resourcemanager.azurestackhci.models.ConnectivityStatus;
+import com.azure.resourcemanager.azurestackhci.models.IdentityProvider;
import com.azure.resourcemanager.azurestackhci.models.IsolatedVmAttestationConfiguration;
+import com.azure.resourcemanager.azurestackhci.models.LocalAvailabilityZones;
import com.azure.resourcemanager.azurestackhci.models.LogCollectionProperties;
import com.azure.resourcemanager.azurestackhci.models.ProvisioningState;
import com.azure.resourcemanager.azurestackhci.models.RemoteSupportProperties;
+import com.azure.resourcemanager.azurestackhci.models.SecretsLocationDetails;
import com.azure.resourcemanager.azurestackhci.models.SoftwareAssuranceProperties;
import com.azure.resourcemanager.azurestackhci.models.Status;
import java.io.IOException;
import java.time.OffsetDateTime;
+import java.util.List;
/**
* Cluster properties.
@@ -28,17 +33,20 @@
@Fluent
public final class ClusterProperties implements JsonSerializable {
/*
- * Provisioning state.
+ * Provisioning state. Indicates the current lifecycle status of the resource, including creation, update, deletion,
+ * connectivity, and error states.
*/
private ProvisioningState provisioningState;
/*
- * Status of the cluster agent.
+ * Status of the cluster agent. Indicates the current connectivity, validation, and deployment state of the agent
+ * within the cluster.
*/
private Status status;
/*
- * Overall connectivity status for the cluster resource.
+ * Overall connectivity status for the cluster resource. Indicates whether the cluster is connected to Azure,
+ * partially connected, or has not recently communicated.
*/
private ConnectivityStatus connectivityStatus;
@@ -77,6 +85,11 @@ public final class ClusterProperties implements JsonSerializable secretsLocations;
+
+ /*
+ * Supported Storage Type for HCI Cluster
+ */
+ private ClusterPattern clusterPattern;
+
+ /*
+ * Local Availability Zone information for HCI cluster
+ */
+ private List localAvailabilityZones;
+
+ /*
+ * Identity Provider for the cluster
+ */
+ private IdentityProvider identityProvider;
+
/**
* Creates an instance of ClusterProperties class.
*/
@@ -144,7 +177,8 @@ public ClusterProperties() {
}
/**
- * Get the provisioningState property: Provisioning state.
+ * Get the provisioningState property: Provisioning state. Indicates the current lifecycle status of the resource,
+ * including creation, update, deletion, connectivity, and error states.
*
* @return the provisioningState value.
*/
@@ -153,7 +187,8 @@ public ProvisioningState provisioningState() {
}
/**
- * Get the status property: Status of the cluster agent.
+ * Get the status property: Status of the cluster agent. Indicates the current connectivity, validation, and
+ * deployment state of the agent within the cluster.
*
* @return the status value.
*/
@@ -162,7 +197,8 @@ public Status status() {
}
/**
- * Get the connectivityStatus property: Overall connectivity status for the cluster resource.
+ * Get the connectivityStatus property: Overall connectivity status for the cluster resource. Indicates whether the
+ * cluster is connected to Azure, partially connected, or has not recently communicated.
*
* @return the connectivityStatus value.
*/
@@ -299,6 +335,16 @@ public ClusterProperties withSoftwareAssuranceProperties(SoftwareAssuranceProper
return this;
}
+ /**
+ * Get the isManagementCluster property: Is Management Cluster, when true indicates that the cluster is used for
+ * managing other clusters.
+ *
+ * @return the isManagementCluster value.
+ */
+ public Boolean isManagementCluster() {
+ return this.isManagementCluster;
+ }
+
/**
* Get the logCollectionProperties property: Log Collection properties of the cluster.
*
@@ -383,7 +429,7 @@ public IsolatedVmAttestationConfiguration isolatedVmAttestationConfiguration() {
*
* @return the trialDaysRemaining value.
*/
- public Float trialDaysRemaining() {
+ public Double trialDaysRemaining() {
return this.trialDaysRemaining;
}
@@ -442,29 +488,61 @@ public String resourceProviderObjectId() {
}
/**
- * Validates the instance.
+ * Get the secretsLocations property: List of secret locations.
+ *
+ * @return the secretsLocations value.
+ */
+ public List secretsLocations() {
+ return this.secretsLocations;
+ }
+
+ /**
+ * Set the secretsLocations property: List of secret locations.
+ *
+ * @param secretsLocations the secretsLocations value to set.
+ * @return the ClusterProperties object itself.
+ */
+ public ClusterProperties withSecretsLocations(List secretsLocations) {
+ this.secretsLocations = secretsLocations;
+ return this;
+ }
+
+ /**
+ * Get the clusterPattern property: Supported Storage Type for HCI Cluster.
+ *
+ * @return the clusterPattern value.
+ */
+ public ClusterPattern clusterPattern() {
+ return this.clusterPattern;
+ }
+
+ /**
+ * Get the localAvailabilityZones property: Local Availability Zone information for HCI cluster.
+ *
+ * @return the localAvailabilityZones value.
+ */
+ public List localAvailabilityZones() {
+ return this.localAvailabilityZones;
+ }
+
+ /**
+ * Set the localAvailabilityZones property: Local Availability Zone information for HCI cluster.
+ *
+ * @param localAvailabilityZones the localAvailabilityZones value to set.
+ * @return the ClusterProperties object itself.
+ */
+ public ClusterProperties withLocalAvailabilityZones(List localAvailabilityZones) {
+ this.localAvailabilityZones = localAvailabilityZones;
+ return this;
+ }
+
+ /**
+ * Get the identityProvider property: Identity Provider for the cluster.
*
- * @throws IllegalArgumentException thrown if the instance is not valid.
+ * @return the identityProvider value.
*/
- public void validate() {
- if (softwareAssuranceProperties() != null) {
- softwareAssuranceProperties().validate();
- }
- if (logCollectionProperties() != null) {
- logCollectionProperties().validate();
- }
- if (remoteSupportProperties() != null) {
- remoteSupportProperties().validate();
- }
- if (desiredProperties() != null) {
- desiredProperties().validate();
- }
- if (reportedProperties() != null) {
- reportedProperties().validate();
- }
- if (isolatedVmAttestationConfiguration() != null) {
- isolatedVmAttestationConfiguration().validate();
- }
+ public IdentityProvider identityProvider() {
+ return this.identityProvider;
}
/**
@@ -482,6 +560,10 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeJsonField("logCollectionProperties", this.logCollectionProperties);
jsonWriter.writeJsonField("remoteSupportProperties", this.remoteSupportProperties);
jsonWriter.writeJsonField("desiredProperties", this.desiredProperties);
+ jsonWriter.writeArrayField("secretsLocations", this.secretsLocations,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("localAvailabilityZones", this.localAvailabilityZones,
+ (writer, element) -> writer.writeJson(element));
return jsonWriter.writeEndObject();
}
@@ -522,6 +604,8 @@ public static ClusterProperties fromJson(JsonReader jsonReader) throws IOExcepti
} else if ("softwareAssuranceProperties".equals(fieldName)) {
deserializedClusterProperties.softwareAssuranceProperties
= SoftwareAssuranceProperties.fromJson(reader);
+ } else if ("isManagementCluster".equals(fieldName)) {
+ deserializedClusterProperties.isManagementCluster = reader.getNullable(JsonReader::getBoolean);
} else if ("logCollectionProperties".equals(fieldName)) {
deserializedClusterProperties.logCollectionProperties = LogCollectionProperties.fromJson(reader);
} else if ("remoteSupportProperties".equals(fieldName)) {
@@ -534,7 +618,7 @@ public static ClusterProperties fromJson(JsonReader jsonReader) throws IOExcepti
deserializedClusterProperties.isolatedVmAttestationConfiguration
= IsolatedVmAttestationConfiguration.fromJson(reader);
} else if ("trialDaysRemaining".equals(fieldName)) {
- deserializedClusterProperties.trialDaysRemaining = reader.getNullable(JsonReader::getFloat);
+ deserializedClusterProperties.trialDaysRemaining = reader.getNullable(JsonReader::getDouble);
} else if ("billingModel".equals(fieldName)) {
deserializedClusterProperties.billingModel = reader.getString();
} else if ("registrationTimestamp".equals(fieldName)) {
@@ -550,6 +634,18 @@ public static ClusterProperties fromJson(JsonReader jsonReader) throws IOExcepti
deserializedClusterProperties.serviceEndpoint = reader.getString();
} else if ("resourceProviderObjectId".equals(fieldName)) {
deserializedClusterProperties.resourceProviderObjectId = reader.getString();
+ } else if ("secretsLocations".equals(fieldName)) {
+ List secretsLocations
+ = reader.readArray(reader1 -> SecretsLocationDetails.fromJson(reader1));
+ deserializedClusterProperties.secretsLocations = secretsLocations;
+ } else if ("clusterPattern".equals(fieldName)) {
+ deserializedClusterProperties.clusterPattern = ClusterPattern.fromString(reader.getString());
+ } else if ("localAvailabilityZones".equals(fieldName)) {
+ List localAvailabilityZones
+ = reader.readArray(reader1 -> LocalAvailabilityZones.fromJson(reader1));
+ deserializedClusterProperties.localAvailabilityZones = localAvailabilityZones;
+ } else if ("identityProvider".equals(fieldName)) {
+ deserializedClusterProperties.identityProvider = IdentityProvider.fromString(reader.getString());
} else {
reader.skipChildren();
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/DeploymentSettingInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/DeploymentSettingInner.java
index 8af39058fe81..e36717abeddb 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/DeploymentSettingInner.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/DeploymentSettingInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
@@ -34,9 +34,9 @@ public final class DeploymentSettingInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -44,9 +44,9 @@ public final class DeploymentSettingInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of DeploymentSettingInner class.
@@ -73,13 +73,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -93,13 +93,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
@@ -212,17 +212,6 @@ public EceReportedProperties reportedProperties() {
return this.innerProperties() == null ? null : this.innerProperties().reportedProperties();
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/DeploymentSettingsProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/DeploymentSettingsProperties.java
index d5a01157bf95..30e561cbc17e 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/DeploymentSettingsProperties.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/DeploymentSettingsProperties.java
@@ -1,11 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -157,36 +156,6 @@ public EceReportedProperties reportedProperties() {
return this.reportedProperties;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (arcNodeResourceIds() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property arcNodeResourceIds in model DeploymentSettingsProperties"));
- }
- if (deploymentMode() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property deploymentMode in model DeploymentSettingsProperties"));
- }
- if (deploymentConfiguration() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property deploymentConfiguration in model DeploymentSettingsProperties"));
- } else {
- deploymentConfiguration().validate();
- }
- if (reportedProperties() != null) {
- reportedProperties().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(DeploymentSettingsProperties.class);
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/EdgeDeviceInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/EdgeDeviceInner.java
index 2b718468d4a2..a9fb6354136f 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/EdgeDeviceInner.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/EdgeDeviceInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
@@ -20,7 +20,9 @@
@Immutable
public class EdgeDeviceInner extends ProxyResource {
/*
- * Device kind to support polymorphic resource.
+ * Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g.
+ * ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist
+ * this value.
*/
private DeviceKind kind = DeviceKind.fromString("EdgeDevice");
@@ -30,9 +32,9 @@ public class EdgeDeviceInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +42,9 @@ public class EdgeDeviceInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of EdgeDeviceInner class.
@@ -51,7 +53,9 @@ public EdgeDeviceInner() {
}
/**
- * Get the kind property: Device kind to support polymorphic resource.
+ * Get the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of
+ * the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must
+ * validate and persist this value.
*
* @return the kind value.
*/
@@ -80,13 +84,13 @@ EdgeDeviceInner withSystemData(SystemData systemData) {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,21 +104,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/EdgeDeviceJobInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/EdgeDeviceJobInner.java
new file mode 100644
index 000000000000..aa6a22ee047e
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/EdgeDeviceJobInner.java
@@ -0,0 +1,185 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurestackhci.models.EdgeDeviceKind;
+import com.azure.resourcemanager.azurestackhci.models.HciEdgeDeviceJob;
+import java.io.IOException;
+
+/**
+ * EdgeDevice Jobs resource.
+ */
+@Immutable
+public class EdgeDeviceJobInner extends ProxyResource {
+ /*
+ * Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g.
+ * ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist
+ * this value.
+ */
+ private EdgeDeviceKind kind = EdgeDeviceKind.fromString("EdgeDeviceJob");
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of EdgeDeviceJobInner class.
+ */
+ public EdgeDeviceJobInner() {
+ }
+
+ /**
+ * Get the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of
+ * the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must
+ * validate and persist this value.
+ *
+ * @return the kind value.
+ */
+ public EdgeDeviceKind kind() {
+ return this.kind;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Set the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @param systemData the systemData value to set.
+ * @return the EdgeDeviceJobInner object itself.
+ */
+ EdgeDeviceJobInner withSystemData(SystemData systemData) {
+ this.systemData = systemData;
+ return this;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("kind", this.kind == null ? null : this.kind.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of EdgeDeviceJobInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of EdgeDeviceJobInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the EdgeDeviceJobInner.
+ */
+ public static EdgeDeviceJobInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ String discriminatorValue = null;
+ try (JsonReader readerToUse = reader.bufferObject()) {
+ readerToUse.nextToken(); // Prepare for reading
+ while (readerToUse.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = readerToUse.getFieldName();
+ readerToUse.nextToken();
+ if ("kind".equals(fieldName)) {
+ discriminatorValue = readerToUse.getString();
+ break;
+ } else {
+ readerToUse.skipChildren();
+ }
+ }
+ // Use the discriminator value to determine which subtype should be deserialized.
+ if ("HCI".equals(discriminatorValue)) {
+ return HciEdgeDeviceJob.fromJson(readerToUse.reset());
+ } else {
+ return fromJsonKnownDiscriminator(readerToUse.reset());
+ }
+ }
+ });
+ }
+
+ static EdgeDeviceJobInner fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ EdgeDeviceJobInner deserializedEdgeDeviceJobInner = new EdgeDeviceJobInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedEdgeDeviceJobInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedEdgeDeviceJobInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedEdgeDeviceJobInner.type = reader.getString();
+ } else if ("kind".equals(fieldName)) {
+ deserializedEdgeDeviceJobInner.kind = EdgeDeviceKind.fromString(reader.getString());
+ } else if ("systemData".equals(fieldName)) {
+ deserializedEdgeDeviceJobInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedEdgeDeviceJobInner;
+ });
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionInner.java
index e942d3a82fe7..9d4c8f48962c 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionInner.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
@@ -33,9 +33,9 @@ public final class ExtensionInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -43,9 +43,9 @@ public final class ExtensionInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of ExtensionInner class.
@@ -72,13 +72,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -92,17 +92,19 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
- * Get the provisioningState property: Provisioning state of the Extension proxy resource.
+ * Get the provisioningState property: Provisioning state of the Extension proxy resource. Indicates the current
+ * lifecycle status of the resource, such as whether it's being created, updated, deleted, or has encountered an
+ * error.
*
* @return the provisioningState value.
*/
@@ -111,7 +113,8 @@ public ProvisioningState provisioningState() {
}
/**
- * Get the aggregateState property: Aggregate state of Arc Extensions across the nodes in this HCI cluster.
+ * Get the aggregateState property: Aggregate state of Arc Extensions across the nodes in this HCI cluster. This
+ * reflects the overall status of the extension deployment and operation across all nodes.
*
* @return the aggregateState value.
*/
@@ -129,7 +132,8 @@ public List perNodeExtensionDetails() {
}
/**
- * Get the managedBy property: Indicates if the extension is managed by azure or the user.
+ * Get the managedBy property: Indicates if the extension is managed by Azure or the user. This determines who
+ * controls the deployment and lifecycle of the extension.
*
* @return the managedBy value.
*/
@@ -331,17 +335,6 @@ public ExtensionInner withEnableAutomaticUpgrade(Boolean enableAutomaticUpgrade)
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionParameters.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionParameters.java
index fa183cc024b4..1c67bfe2d1f3 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionParameters.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionParameters.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
@@ -235,14 +235,6 @@ public ExtensionParameters withEnableAutomaticUpgrade(Boolean enableAutomaticUpg
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
/**
* {@inheritDoc}
*/
@@ -254,8 +246,12 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("type", this.type);
jsonWriter.writeStringField("typeHandlerVersion", this.typeHandlerVersion);
jsonWriter.writeBooleanField("autoUpgradeMinorVersion", this.autoUpgradeMinorVersion);
- jsonWriter.writeUntypedField("settings", this.settings);
- jsonWriter.writeUntypedField("protectedSettings", this.protectedSettings);
+ if (this.settings != null) {
+ jsonWriter.writeUntypedField("settings", this.settings);
+ }
+ if (this.protectedSettings != null) {
+ jsonWriter.writeUntypedField("protectedSettings", this.protectedSettings);
+ }
jsonWriter.writeBooleanField("enableAutomaticUpgrade", this.enableAutomaticUpgrade);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionPatchProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionPatchProperties.java
index 354a2e911c09..a33f25b51725 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionPatchProperties.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionPatchProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
@@ -48,17 +48,6 @@ public ExtensionPatchProperties withExtensionParameters(ExtensionPatchParameters
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (extensionParameters() != null) {
- extensionParameters().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionProperties.java
index 29ecd1704ff5..e19ed7715245 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionProperties.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ExtensionProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
@@ -22,7 +22,8 @@
@Fluent
public final class ExtensionProperties implements JsonSerializable {
/*
- * Provisioning state of the Extension proxy resource.
+ * Provisioning state of the Extension proxy resource. Indicates the current lifecycle status of the resource, such
+ * as whether it's being created, updated, deleted, or has encountered an error.
*/
private ProvisioningState provisioningState;
@@ -32,7 +33,8 @@ public final class ExtensionProperties implements JsonSerializable perNodeExtensionDetails;
/*
- * Indicates if the extension is managed by azure or the user.
+ * Indicates if the extension is managed by Azure or the user. This determines who controls the deployment and
+ * lifecycle of the extension.
*/
private ExtensionManagedBy managedBy;
@@ -53,7 +56,9 @@ public ExtensionProperties() {
}
/**
- * Get the provisioningState property: Provisioning state of the Extension proxy resource.
+ * Get the provisioningState property: Provisioning state of the Extension proxy resource. Indicates the current
+ * lifecycle status of the resource, such as whether it's being created, updated, deleted, or has encountered an
+ * error.
*
* @return the provisioningState value.
*/
@@ -71,7 +76,8 @@ private ExtensionParameters innerExtensionParameters() {
}
/**
- * Get the aggregateState property: Aggregate state of Arc Extensions across the nodes in this HCI cluster.
+ * Get the aggregateState property: Aggregate state of Arc Extensions across the nodes in this HCI cluster. This
+ * reflects the overall status of the extension deployment and operation across all nodes.
*
* @return the aggregateState value.
*/
@@ -89,7 +95,8 @@ public List perNodeExtensionDetails() {
}
/**
- * Get the managedBy property: Indicates if the extension is managed by azure or the user.
+ * Get the managedBy property: Indicates if the extension is managed by Azure or the user. This determines who
+ * controls the deployment and lifecycle of the extension.
*
* @return the managedBy value.
*/
@@ -295,20 +302,6 @@ public ExtensionProperties withEnableAutomaticUpgrade(Boolean enableAutomaticUpg
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerExtensionParameters() != null) {
- innerExtensionParameters().validate();
- }
- if (perNodeExtensionDetails() != null) {
- perNodeExtensionDetails().forEach(e -> e.validate());
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/HciUpdateInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/HciUpdateInner.java
index c666b15899a7..8dceffb51351 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/HciUpdateInner.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/HciUpdateInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
@@ -28,14 +28,14 @@
@Fluent
public final class HciUpdateInner extends ProxyResource {
/*
- * The geo-location where the resource lives
+ * Update properties
*/
- private String location;
+ private UpdateProperties innerProperties;
/*
- * Update properties
+ * The geo-location where the resource lives
*/
- private UpdateProperties innerProperties;
+ private String location;
/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
@@ -43,9 +43,9 @@ public final class HciUpdateInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -53,9 +53,9 @@ public final class HciUpdateInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of HciUpdateInner class.
@@ -63,6 +63,15 @@ public final class HciUpdateInner extends ProxyResource {
public HciUpdateInner() {
}
+ /**
+ * Get the innerProperties property: Update properties.
+ *
+ * @return the innerProperties value.
+ */
+ private UpdateProperties innerProperties() {
+ return this.innerProperties;
+ }
+
/**
* Get the location property: The geo-location where the resource lives.
*
@@ -83,15 +92,6 @@ public HciUpdateInner withLocation(String location) {
return this;
}
- /**
- * Get the innerProperties property: Update properties.
- *
- * @return the innerProperties value.
- */
- private UpdateProperties innerProperties() {
- return this.innerProperties;
- }
-
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
@@ -102,13 +102,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -122,17 +122,18 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
- * Get the provisioningState property: Provisioning state of the Updates proxy resource.
+ * Get the provisioningState property: Provisioning state of the Updates proxy resource. Indicates the current
+ * lifecycle status of the update operation, such as whether it has been accepted, is in progress, or has completed.
*
* @return the provisioningState value.
*/
@@ -210,7 +211,9 @@ public HciUpdateInner withMinSbeVersionRequired(String minSbeVersionRequired) {
}
/**
- * Get the state property: State of the update as it relates to this stamp.
+ * Get the state property: Represents the current state of the update as it relates to this stamp. This includes
+ * phases such as preparation, installation, scanning, and error handling, providing insight into the update's
+ * progress and any issues encountered.
*
* @return the state value.
*/
@@ -219,7 +222,9 @@ public State state() {
}
/**
- * Set the state property: State of the update as it relates to this stamp.
+ * Set the state property: Represents the current state of the update as it relates to this stamp. This includes
+ * phases such as preparation, installation, scanning, and error handling, providing insight into the update's
+ * progress and any issues encountered.
*
* @param state the state value to set.
* @return the HciUpdateInner object itself.
@@ -283,7 +288,8 @@ public HciUpdateInner withComponentVersions(List componentVe
}
/**
- * Get the rebootRequired property: The rebootRequired property.
+ * Get the rebootRequired property: Indicates whether a reboot is required after the update or operation. Helps
+ * determine if a system restart is necessary to complete the process.
*
* @return the rebootRequired value.
*/
@@ -292,7 +298,8 @@ public RebootRequirement rebootRequired() {
}
/**
- * Set the rebootRequired property: The rebootRequired property.
+ * Set the rebootRequired property: Indicates whether a reboot is required after the update or operation. Helps
+ * determine if a system restart is necessary to complete the process.
*
* @param rebootRequired the rebootRequired value to set.
* @return the HciUpdateInner object itself.
@@ -403,7 +410,7 @@ public HciUpdateInner withPackagePath(String packagePath) {
*
* @return the packageSizeInMb value.
*/
- public Float packageSizeInMb() {
+ public Double packageSizeInMb() {
return this.innerProperties() == null ? null : this.innerProperties().packageSizeInMb();
}
@@ -414,7 +421,7 @@ public Float packageSizeInMb() {
* @param packageSizeInMb the packageSizeInMb value to set.
* @return the HciUpdateInner object itself.
*/
- public HciUpdateInner withPackageSizeInMb(Float packageSizeInMb) {
+ public HciUpdateInner withPackageSizeInMb(Double packageSizeInMb) {
if (this.innerProperties() == null) {
this.innerProperties = new UpdateProperties();
}
@@ -515,7 +522,8 @@ public HciUpdateInner withReleaseLink(String releaseLink) {
}
/**
- * Get the availabilityType property: Indicates the way the update content can be downloaded.
+ * Get the availabilityType property: Indicates how the update content is made available for download. This
+ * determines whether the update is sourced locally, from an online repository, or requires user notification.
*
* @return the availabilityType value.
*/
@@ -524,7 +532,8 @@ public AvailabilityType availabilityType() {
}
/**
- * Set the availabilityType property: Indicates the way the update content can be downloaded.
+ * Set the availabilityType property: Indicates how the update content is made available for download. This
+ * determines whether the update is sourced locally, from an online repository, or requires user notification.
*
* @param availabilityType the availabilityType value to set.
* @return the HciUpdateInner object itself.
@@ -594,7 +603,7 @@ public HciUpdateInner withAdditionalProperties(String additionalProperties) {
*
* @return the progressPercentage value.
*/
- public Float progressPercentage() {
+ public Double progressPercentage() {
return this.innerProperties() == null ? null : this.innerProperties().progressPercentage();
}
@@ -606,7 +615,7 @@ public Float progressPercentage() {
* @param progressPercentage the progressPercentage value to set.
* @return the HciUpdateInner object itself.
*/
- public HciUpdateInner withProgressPercentage(Float progressPercentage) {
+ public HciUpdateInner withProgressPercentage(Double progressPercentage) {
if (this.innerProperties() == null) {
this.innerProperties = new UpdateProperties();
}
@@ -637,25 +646,14 @@ public HciUpdateInner withNotifyMessage(String notifyMessage) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeStringField("location", this.location);
jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeStringField("location", this.location);
return jsonWriter.writeEndObject();
}
@@ -681,10 +679,10 @@ public static HciUpdateInner fromJson(JsonReader jsonReader) throws IOException
deserializedHciUpdateInner.name = reader.getString();
} else if ("type".equals(fieldName)) {
deserializedHciUpdateInner.type = reader.getString();
- } else if ("location".equals(fieldName)) {
- deserializedHciUpdateInner.location = reader.getString();
} else if ("properties".equals(fieldName)) {
deserializedHciUpdateInner.innerProperties = UpdateProperties.fromJson(reader);
+ } else if ("location".equals(fieldName)) {
+ deserializedHciUpdateInner.location = reader.getString();
} else if ("systemData".equals(fieldName)) {
deserializedHciUpdateInner.systemData = SystemData.fromJson(reader);
} else {
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ManagedServiceIdentity.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ManagedServiceIdentity.java
index c659c603f23b..943fe7db17b1 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ManagedServiceIdentity.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ManagedServiceIdentity.java
@@ -1,11 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -14,7 +13,6 @@
import com.azure.resourcemanager.azurestackhci.models.UserAssignedIdentity;
import java.io.IOException;
import java.util.Map;
-import java.util.UUID;
/**
* Managed service identity (system assigned and/or user assigned identities).
@@ -25,24 +23,21 @@ public final class ManagedServiceIdentity implements JsonSerializable userAssignedIdentities;
@@ -58,7 +53,7 @@ public ManagedServiceIdentity() {
*
* @return the principalId value.
*/
- public UUID principalId() {
+ public String principalId() {
return this.principalId;
}
@@ -68,13 +63,12 @@ public UUID principalId() {
*
* @return the tenantId value.
*/
- public UUID tenantId() {
+ public String tenantId() {
return this.tenantId;
}
/**
- * Get the type property: Type of managed service identity (where both SystemAssigned and UserAssigned types are
- * allowed).
+ * Get the type property: The type of managed identity assigned to this resource.
*
* @return the type value.
*/
@@ -83,8 +77,7 @@ public ManagedServiceIdentityType type() {
}
/**
- * Set the type property: Type of managed service identity (where both SystemAssigned and UserAssigned types are
- * allowed).
+ * Set the type property: The type of managed identity assigned to this resource.
*
* @param type the type value to set.
* @return the ManagedServiceIdentity object itself.
@@ -95,10 +88,7 @@ public ManagedServiceIdentity withType(ManagedServiceIdentityType type) {
}
/**
- * Get the userAssignedIdentities property: The set of user assigned identities associated with the resource. The
- * userAssignedIdentities dictionary keys will be ARM resource ids in the form:
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
- * The dictionary values can be empty objects ({}) in requests.
+ * Get the userAssignedIdentities property: The identities assigned to this resource by the user.
*
* @return the userAssignedIdentities value.
*/
@@ -107,10 +97,7 @@ public Map userAssignedIdentities() {
}
/**
- * Set the userAssignedIdentities property: The set of user assigned identities associated with the resource. The
- * userAssignedIdentities dictionary keys will be ARM resource ids in the form:
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
- * The dictionary values can be empty objects ({}) in requests.
+ * Set the userAssignedIdentities property: The identities assigned to this resource by the user.
*
* @param userAssignedIdentities the userAssignedIdentities value to set.
* @return the ManagedServiceIdentity object itself.
@@ -120,27 +107,6 @@ public ManagedServiceIdentity withUserAssignedIdentities(Map {
- if (e != null) {
- e.validate();
- }
- });
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(ManagedServiceIdentity.class);
-
/**
* {@inheritDoc}
*/
@@ -172,11 +138,9 @@ public static ManagedServiceIdentity fromJson(JsonReader jsonReader) throws IOEx
if ("type".equals(fieldName)) {
deserializedManagedServiceIdentity.type = ManagedServiceIdentityType.fromString(reader.getString());
} else if ("principalId".equals(fieldName)) {
- deserializedManagedServiceIdentity.principalId
- = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString()));
+ deserializedManagedServiceIdentity.principalId = reader.getString();
} else if ("tenantId".equals(fieldName)) {
- deserializedManagedServiceIdentity.tenantId
- = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString()));
+ deserializedManagedServiceIdentity.tenantId = reader.getString();
} else if ("userAssignedIdentities".equals(fieldName)) {
Map userAssignedIdentities
= reader.readMap(reader1 -> UserAssignedIdentity.fromJson(reader1));
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/OfferInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/OfferInner.java
index 08f059d0778d..8ee49a406c60 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/OfferInner.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/OfferInner.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.json.JsonReader;
@@ -17,7 +17,7 @@
/**
* Offer details.
*/
-@Fluent
+@Immutable
public final class OfferInner extends ProxyResource {
/*
* Offer properties.
@@ -30,9 +30,9 @@ public final class OfferInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,14 +40,14 @@ public final class OfferInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of OfferInner class.
*/
- public OfferInner() {
+ private OfferInner() {
}
/**
@@ -69,13 +69,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -89,13 +89,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
@@ -116,20 +116,6 @@ public String publisherId() {
return this.innerProperties() == null ? null : this.innerProperties().publisherId();
}
- /**
- * Set the publisherId property: Identifier of the Publisher for the offer.
- *
- * @param publisherId the publisherId value to set.
- * @return the OfferInner object itself.
- */
- public OfferInner withPublisherId(String publisherId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new OfferProperties();
- }
- this.innerProperties().withPublisherId(publisherId);
- return this;
- }
-
/**
* Get the content property: JSON serialized catalog content of the offer.
*
@@ -139,20 +125,6 @@ public String content() {
return this.innerProperties() == null ? null : this.innerProperties().content();
}
- /**
- * Set the content property: JSON serialized catalog content of the offer.
- *
- * @param content the content value to set.
- * @return the OfferInner object itself.
- */
- public OfferInner withContent(String content) {
- if (this.innerProperties() == null) {
- this.innerProperties = new OfferProperties();
- }
- this.innerProperties().withContent(content);
- return this;
- }
-
/**
* Get the contentVersion property: The API version of the catalog service used to serve the catalog content.
*
@@ -162,20 +134,6 @@ public String contentVersion() {
return this.innerProperties() == null ? null : this.innerProperties().contentVersion();
}
- /**
- * Set the contentVersion property: The API version of the catalog service used to serve the catalog content.
- *
- * @param contentVersion the contentVersion value to set.
- * @return the OfferInner object itself.
- */
- public OfferInner withContentVersion(String contentVersion) {
- if (this.innerProperties() == null) {
- this.innerProperties = new OfferProperties();
- }
- this.innerProperties().withContentVersion(contentVersion);
- return this;
- }
-
/**
* Get the skuMappings property: Array of SKU mappings.
*
@@ -185,31 +143,6 @@ public List skuMappings() {
return this.innerProperties() == null ? null : this.innerProperties().skuMappings();
}
- /**
- * Set the skuMappings property: Array of SKU mappings.
- *
- * @param skuMappings the skuMappings value to set.
- * @return the OfferInner object itself.
- */
- public OfferInner withSkuMappings(List skuMappings) {
- if (this.innerProperties() == null) {
- this.innerProperties = new OfferProperties();
- }
- this.innerProperties().withSkuMappings(skuMappings);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/OfferProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/OfferProperties.java
index 470593b2b7df..a0980f12f7bf 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/OfferProperties.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/OfferProperties.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -16,7 +16,7 @@
/**
* Publisher properties.
*/
-@Fluent
+@Immutable
public final class OfferProperties implements JsonSerializable {
/*
* Provisioning State
@@ -46,7 +46,7 @@ public final class OfferProperties implements JsonSerializable
/**
* Creates an instance of OfferProperties class.
*/
- public OfferProperties() {
+ private OfferProperties() {
}
/**
@@ -67,17 +67,6 @@ public String publisherId() {
return this.publisherId;
}
- /**
- * Set the publisherId property: Identifier of the Publisher for the offer.
- *
- * @param publisherId the publisherId value to set.
- * @return the OfferProperties object itself.
- */
- public OfferProperties withPublisherId(String publisherId) {
- this.publisherId = publisherId;
- return this;
- }
-
/**
* Get the content property: JSON serialized catalog content of the offer.
*
@@ -87,17 +76,6 @@ public String content() {
return this.content;
}
- /**
- * Set the content property: JSON serialized catalog content of the offer.
- *
- * @param content the content value to set.
- * @return the OfferProperties object itself.
- */
- public OfferProperties withContent(String content) {
- this.content = content;
- return this;
- }
-
/**
* Get the contentVersion property: The API version of the catalog service used to serve the catalog content.
*
@@ -107,17 +85,6 @@ public String contentVersion() {
return this.contentVersion;
}
- /**
- * Set the contentVersion property: The API version of the catalog service used to serve the catalog content.
- *
- * @param contentVersion the contentVersion value to set.
- * @return the OfferProperties object itself.
- */
- public OfferProperties withContentVersion(String contentVersion) {
- this.contentVersion = contentVersion;
- return this;
- }
-
/**
* Get the skuMappings property: Array of SKU mappings.
*
@@ -127,28 +94,6 @@ public List skuMappings() {
return this.skuMappings;
}
- /**
- * Set the skuMappings property: Array of SKU mappings.
- *
- * @param skuMappings the skuMappings value to set.
- * @return the OfferProperties object itself.
- */
- public OfferProperties withSkuMappings(List skuMappings) {
- this.skuMappings = skuMappings;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (skuMappings() != null) {
- skuMappings().forEach(e -> e.validate());
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/OperationInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/OperationInner.java
new file mode 100644
index 000000000000..f0c6878f31d8
--- /dev/null
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/OperationInner.java
@@ -0,0 +1,150 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.azurestackhci.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.azurestackhci.models.ActionType;
+import com.azure.resourcemanager.azurestackhci.models.OperationDisplay;
+import com.azure.resourcemanager.azurestackhci.models.Origin;
+import java.io.IOException;
+
+/**
+ * REST API Operation
+ *
+ * Details of a REST API operation, returned from the Resource Provider Operations API.
+ */
+@Immutable
+public final class OperationInner implements JsonSerializable {
+ /*
+ * The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
+ */
+ private String name;
+
+ /*
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure
+ * Resource Manager/control-plane operations.
+ */
+ private Boolean isDataAction;
+
+ /*
+ * Localized display information for this particular operation.
+ */
+ private OperationDisplay display;
+
+ /*
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
+ * value is "user,system"
+ */
+ private Origin origin;
+
+ /*
+ * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
+ */
+ private ActionType actionType;
+
+ /**
+ * Creates an instance of OperationInner class.
+ */
+ private OperationInner() {
+ }
+
+ /**
+ * Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane
+ * operations and "false" for Azure Resource Manager/control-plane operations.
+ *
+ * @return the isDataAction value.
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
+ /**
+ * Get the display property: Localized display information for this particular operation.
+ *
+ * @return the display value.
+ */
+ public OperationDisplay display() {
+ return this.display;
+ }
+
+ /**
+ * Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and
+ * audit logs UX. Default value is "user,system".
+ *
+ * @return the origin value.
+ */
+ public Origin origin() {
+ return this.origin;
+ }
+
+ /**
+ * Get the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are
+ * for internal only APIs.
+ *
+ * @return the actionType value.
+ */
+ public ActionType actionType() {
+ return this.actionType;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("display", this.display);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OperationInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OperationInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IOException If an error occurs while reading the OperationInner.
+ */
+ public static OperationInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OperationInner deserializedOperationInner = new OperationInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedOperationInner.name = reader.getString();
+ } else if ("isDataAction".equals(fieldName)) {
+ deserializedOperationInner.isDataAction = reader.getNullable(JsonReader::getBoolean);
+ } else if ("display".equals(fieldName)) {
+ deserializedOperationInner.display = OperationDisplay.fromJson(reader);
+ } else if ("origin".equals(fieldName)) {
+ deserializedOperationInner.origin = Origin.fromString(reader.getString());
+ } else if ("actionType".equals(fieldName)) {
+ deserializedOperationInner.actionType = ActionType.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOperationInner;
+ });
+ }
+}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/OperationListResultInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/OperationListResultInner.java
deleted file mode 100644
index 65eede5f63b2..000000000000
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/OperationListResultInner.java
+++ /dev/null
@@ -1,104 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.azurestackhci.fluent.models;
-
-import com.azure.core.annotation.Immutable;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.azurestackhci.models.Operation;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of
- * results.
- */
-@Immutable
-public final class OperationListResultInner implements JsonSerializable {
- /*
- * List of operations supported by the resource provider
- */
- private List value;
-
- /*
- * URL to get the next set of operation list results (if there are any).
- */
- private String nextLink;
-
- /**
- * Creates an instance of OperationListResultInner class.
- */
- public OperationListResultInner() {
- }
-
- /**
- * Get the value property: List of operations supported by the resource provider.
- *
- * @return the value value.
- */
- public List value() {
- return this.value;
- }
-
- /**
- * Get the nextLink property: URL to get the next set of operation list results (if there are any).
- *
- * @return the nextLink value.
- */
- public String nextLink() {
- return this.nextLink;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (value() != null) {
- value().forEach(e -> e.validate());
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of OperationListResultInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of OperationListResultInner if the JsonReader was pointing to an instance of it, or null if
- * it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the OperationListResultInner.
- */
- public static OperationListResultInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- OperationListResultInner deserializedOperationListResultInner = new OperationListResultInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("value".equals(fieldName)) {
- List value = reader.readArray(reader1 -> Operation.fromJson(reader1));
- deserializedOperationListResultInner.value = value;
- } else if ("nextLink".equals(fieldName)) {
- deserializedOperationListResultInner.nextLink = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedOperationListResultInner;
- });
- }
-}
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
index 56d65c3fd923..4583da7da0cf 100644
--- 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
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.core.util.CoreUtils;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
@@ -17,7 +17,7 @@
/**
* The PasswordCredential model.
*/
-@Fluent
+@Immutable
public final class PasswordCredentialInner implements JsonSerializable {
/*
* The secretText property.
@@ -42,7 +42,7 @@ public final class PasswordCredentialInner implements JsonSerializable {
- /*
- * Provisioning State
- */
- private String provisioningState;
-
- /**
- * Creates an instance of PublisherProperties class.
- */
- public PublisherProperties() {
- }
-
- /**
- * Get the provisioningState property: Provisioning State.
- *
- * @return the provisioningState value.
- */
- public String provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of PublisherProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of PublisherProperties if the JsonReader was pointing to an instance of it, or null if it was
- * pointing to JSON null.
- * @throws IOException If an error occurs while reading the PublisherProperties.
- */
- public static PublisherProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- PublisherProperties deserializedPublisherProperties = new PublisherProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("provisioningState".equals(fieldName)) {
- deserializedPublisherProperties.provisioningState = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedPublisherProperties;
- });
- }
-}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/SecurityProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/SecurityProperties.java
index 61e0ee98a238..a9999281c386 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/SecurityProperties.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/SecurityProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
@@ -134,28 +134,6 @@ public ProvisioningState provisioningState() {
return this.provisioningState;
}
- /**
- * Set the provisioningState property: The status of the last operation.
- *
- * @param provisioningState the provisioningState value to set.
- * @return the SecurityProperties object itself.
- */
- public SecurityProperties withProvisioningState(ProvisioningState provisioningState) {
- this.provisioningState = provisioningState;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (securityComplianceStatus() != null) {
- securityComplianceStatus().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
@@ -170,8 +148,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
this.smbEncryptionForIntraClusterTrafficComplianceAssignment == null
? null
: this.smbEncryptionForIntraClusterTrafficComplianceAssignment.toString());
- jsonWriter.writeStringField("provisioningState",
- this.provisioningState == null ? null : this.provisioningState.toString());
return jsonWriter.writeEndObject();
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/SecuritySettingInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/SecuritySettingInner.java
index 015ce7f54dae..a6636f5895f9 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/SecuritySettingInner.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/SecuritySettingInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
@@ -31,9 +31,9 @@ public final class SecuritySettingInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -41,9 +41,9 @@ public final class SecuritySettingInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of SecuritySettingInner class.
@@ -70,13 +70,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -90,13 +90,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
@@ -195,31 +195,6 @@ public ProvisioningState provisioningState() {
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
- /**
- * Set the provisioningState property: The status of the last operation.
- *
- * @param provisioningState the provisioningState value to set.
- * @return the SecuritySettingInner object itself.
- */
- public SecuritySettingInner withProvisioningState(ProvisioningState provisioningState) {
- if (this.innerProperties() == null) {
- this.innerProperties = new SecurityProperties();
- }
- this.innerProperties().withProvisioningState(provisioningState);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/SkuInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/SkuInner.java
index 77c643002986..79aa55aaf06f 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/SkuInner.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/SkuInner.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.json.JsonReader;
@@ -17,7 +17,7 @@
/**
* Sku details.
*/
-@Fluent
+@Immutable
public final class SkuInner extends ProxyResource {
/*
* SKU properties.
@@ -30,9 +30,9 @@ public final class SkuInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,14 +40,14 @@ public final class SkuInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of SkuInner class.
*/
- public SkuInner() {
+ private SkuInner() {
}
/**
@@ -69,13 +69,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -89,13 +89,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
@@ -116,20 +116,6 @@ public String publisherId() {
return this.innerProperties() == null ? null : this.innerProperties().publisherId();
}
- /**
- * Set the publisherId property: Identifier of the Publisher for the offer.
- *
- * @param publisherId the publisherId value to set.
- * @return the SkuInner object itself.
- */
- public SkuInner withPublisherId(String publisherId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new SkuProperties();
- }
- this.innerProperties().withPublisherId(publisherId);
- return this;
- }
-
/**
* Get the offerId property: Identifier of the Offer for the sku.
*
@@ -139,20 +125,6 @@ public String offerId() {
return this.innerProperties() == null ? null : this.innerProperties().offerId();
}
- /**
- * Set the offerId property: Identifier of the Offer for the sku.
- *
- * @param offerId the offerId value to set.
- * @return the SkuInner object itself.
- */
- public SkuInner withOfferId(String offerId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new SkuProperties();
- }
- this.innerProperties().withOfferId(offerId);
- return this;
- }
-
/**
* Get the content property: JSON serialized catalog content of the sku offer.
*
@@ -162,20 +134,6 @@ public String content() {
return this.innerProperties() == null ? null : this.innerProperties().content();
}
- /**
- * Set the content property: JSON serialized catalog content of the sku offer.
- *
- * @param content the content value to set.
- * @return the SkuInner object itself.
- */
- public SkuInner withContent(String content) {
- if (this.innerProperties() == null) {
- this.innerProperties = new SkuProperties();
- }
- this.innerProperties().withContent(content);
- return this;
- }
-
/**
* Get the contentVersion property: The API version of the catalog service used to serve the catalog content.
*
@@ -185,20 +143,6 @@ public String contentVersion() {
return this.innerProperties() == null ? null : this.innerProperties().contentVersion();
}
- /**
- * Set the contentVersion property: The API version of the catalog service used to serve the catalog content.
- *
- * @param contentVersion the contentVersion value to set.
- * @return the SkuInner object itself.
- */
- public SkuInner withContentVersion(String contentVersion) {
- if (this.innerProperties() == null) {
- this.innerProperties = new SkuProperties();
- }
- this.innerProperties().withContentVersion(contentVersion);
- return this;
- }
-
/**
* Get the skuMappings property: Array of SKU mappings.
*
@@ -208,31 +152,6 @@ public List skuMappings() {
return this.innerProperties() == null ? null : this.innerProperties().skuMappings();
}
- /**
- * Set the skuMappings property: Array of SKU mappings.
- *
- * @param skuMappings the skuMappings value to set.
- * @return the SkuInner object itself.
- */
- public SkuInner withSkuMappings(List skuMappings) {
- if (this.innerProperties() == null) {
- this.innerProperties = new SkuProperties();
- }
- this.innerProperties().withSkuMappings(skuMappings);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/SkuProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/SkuProperties.java
index b78c7cabda1c..fdd5a5c72a53 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/SkuProperties.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/SkuProperties.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -16,7 +16,7 @@
/**
* SKU properties.
*/
-@Fluent
+@Immutable
public final class SkuProperties implements JsonSerializable {
/*
* Provisioning State
@@ -51,7 +51,7 @@ public final class SkuProperties implements JsonSerializable {
/**
* Creates an instance of SkuProperties class.
*/
- public SkuProperties() {
+ private SkuProperties() {
}
/**
@@ -72,17 +72,6 @@ public String publisherId() {
return this.publisherId;
}
- /**
- * Set the publisherId property: Identifier of the Publisher for the offer.
- *
- * @param publisherId the publisherId value to set.
- * @return the SkuProperties object itself.
- */
- public SkuProperties withPublisherId(String publisherId) {
- this.publisherId = publisherId;
- return this;
- }
-
/**
* Get the offerId property: Identifier of the Offer for the sku.
*
@@ -92,17 +81,6 @@ public String offerId() {
return this.offerId;
}
- /**
- * Set the offerId property: Identifier of the Offer for the sku.
- *
- * @param offerId the offerId value to set.
- * @return the SkuProperties object itself.
- */
- public SkuProperties withOfferId(String offerId) {
- this.offerId = offerId;
- return this;
- }
-
/**
* Get the content property: JSON serialized catalog content of the sku offer.
*
@@ -112,17 +90,6 @@ public String content() {
return this.content;
}
- /**
- * Set the content property: JSON serialized catalog content of the sku offer.
- *
- * @param content the content value to set.
- * @return the SkuProperties object itself.
- */
- public SkuProperties withContent(String content) {
- this.content = content;
- return this;
- }
-
/**
* Get the contentVersion property: The API version of the catalog service used to serve the catalog content.
*
@@ -132,17 +99,6 @@ public String contentVersion() {
return this.contentVersion;
}
- /**
- * Set the contentVersion property: The API version of the catalog service used to serve the catalog content.
- *
- * @param contentVersion the contentVersion value to set.
- * @return the SkuProperties object itself.
- */
- public SkuProperties withContentVersion(String contentVersion) {
- this.contentVersion = contentVersion;
- return this;
- }
-
/**
* Get the skuMappings property: Array of SKU mappings.
*
@@ -152,28 +108,6 @@ public List skuMappings() {
return this.skuMappings;
}
- /**
- * Set the skuMappings property: Array of SKU mappings.
- *
- * @param skuMappings the skuMappings value to set.
- * @return the SkuProperties object itself.
- */
- public SkuProperties withSkuMappings(List skuMappings) {
- this.skuMappings = skuMappings;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (skuMappings() != null) {
- skuMappings().forEach(e -> e.validate());
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/Step.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/Step.java
index 82e367fcde8b..3fb9224797e9 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/Step.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/Step.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
@@ -256,17 +256,6 @@ public Step withSteps(List steps) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (steps() != null) {
- steps().forEach(e -> e.validate());
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateProperties.java
index eb137ccec19a..39f4ffe8a76b 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateProperties.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
@@ -29,7 +29,8 @@
@Fluent
public final class UpdateProperties implements JsonSerializable {
/*
- * Provisioning state of the Updates proxy resource.
+ * Provisioning state of the Updates proxy resource. Indicates the current lifecycle status of the update operation,
+ * such as whether it has been accepted, is in progress, or has completed.
*/
private ProvisioningState provisioningState;
@@ -49,7 +50,9 @@ public final class UpdateProperties implements JsonSerializable componentVersions;
/*
- * The rebootRequired property.
+ * Indicates whether a reboot is required after the update or operation. Helps determine if a system restart is
+ * necessary to complete the process.
*/
private RebootRequirement rebootRequired;
@@ -93,7 +97,7 @@ public final class UpdateProperties implements JsonSerializable component
}
/**
- * Get the rebootRequired property: The rebootRequired property.
+ * Get the rebootRequired property: Indicates whether a reboot is required after the update or operation. Helps
+ * determine if a system restart is necessary to complete the process.
*
* @return the rebootRequired value.
*/
@@ -286,7 +297,8 @@ public RebootRequirement rebootRequired() {
}
/**
- * Set the rebootRequired property: The rebootRequired property.
+ * Set the rebootRequired property: Indicates whether a reboot is required after the update or operation. Helps
+ * determine if a system restart is necessary to complete the process.
*
* @param rebootRequired the rebootRequired value to set.
* @return the UpdateProperties object itself.
@@ -382,7 +394,7 @@ public UpdateProperties withPackagePath(String packagePath) {
*
* @return the packageSizeInMb value.
*/
- public Float packageSizeInMb() {
+ public Double packageSizeInMb() {
return this.packageSizeInMb;
}
@@ -393,7 +405,7 @@ public Float packageSizeInMb() {
* @param packageSizeInMb the packageSizeInMb value to set.
* @return the UpdateProperties object itself.
*/
- public UpdateProperties withPackageSizeInMb(Float packageSizeInMb) {
+ public UpdateProperties withPackageSizeInMb(Double packageSizeInMb) {
this.packageSizeInMb = packageSizeInMb;
return this;
}
@@ -479,7 +491,8 @@ public UpdateProperties withReleaseLink(String releaseLink) {
}
/**
- * Get the availabilityType property: Indicates the way the update content can be downloaded.
+ * Get the availabilityType property: Indicates how the update content is made available for download. This
+ * determines whether the update is sourced locally, from an online repository, or requires user notification.
*
* @return the availabilityType value.
*/
@@ -488,7 +501,8 @@ public AvailabilityType availabilityType() {
}
/**
- * Set the availabilityType property: Indicates the way the update content can be downloaded.
+ * Set the availabilityType property: Indicates how the update content is made available for download. This
+ * determines whether the update is sourced locally, from an online repository, or requires user notification.
*
* @param availabilityType the availabilityType value to set.
* @return the UpdateProperties object itself.
@@ -559,7 +573,7 @@ private UpdateStateProperties innerUpdateStateProperties() {
*
* @return the progressPercentage value.
*/
- public Float progressPercentage() {
+ public Double progressPercentage() {
return this.innerUpdateStateProperties() == null
? null
: this.innerUpdateStateProperties().progressPercentage();
@@ -573,7 +587,7 @@ public Float progressPercentage() {
* @param progressPercentage the progressPercentage value to set.
* @return the UpdateProperties object itself.
*/
- public UpdateProperties withProgressPercentage(Float progressPercentage) {
+ public UpdateProperties withProgressPercentage(Double progressPercentage) {
if (this.innerUpdateStateProperties() == null) {
this.innerUpdateStateProperties = new UpdateStateProperties();
}
@@ -604,26 +618,6 @@ public UpdateProperties withNotifyMessage(String notifyMessage) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (prerequisites() != null) {
- prerequisites().forEach(e -> e.validate());
- }
- if (componentVersions() != null) {
- componentVersions().forEach(e -> e.validate());
- }
- if (healthCheckResult() != null) {
- healthCheckResult().forEach(e -> e.validate());
- }
- if (innerUpdateStateProperties() != null) {
- innerUpdateStateProperties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
@@ -707,7 +701,7 @@ public static UpdateProperties fromJson(JsonReader jsonReader) throws IOExceptio
} else if ("packagePath".equals(fieldName)) {
deserializedUpdateProperties.packagePath = reader.getString();
} else if ("packageSizeInMb".equals(fieldName)) {
- deserializedUpdateProperties.packageSizeInMb = reader.getNullable(JsonReader::getFloat);
+ deserializedUpdateProperties.packageSizeInMb = reader.getNullable(JsonReader::getDouble);
} else if ("displayName".equals(fieldName)) {
deserializedUpdateProperties.displayName = reader.getString();
} else if ("version".equals(fieldName)) {
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateRunInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateRunInner.java
index f20578cd3d95..b2ac133a146a 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateRunInner.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateRunInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
@@ -22,14 +22,14 @@
@Fluent
public final class UpdateRunInner extends ProxyResource {
/*
- * The geo-location where the resource lives
+ * Describes Update Run Properties.
*/
- private String location;
+ private UpdateRunProperties innerProperties;
/*
- * Describes Update Run Properties.
+ * The geo-location where the resource lives
*/
- private UpdateRunProperties innerProperties;
+ private String location;
/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
@@ -37,9 +37,9 @@ public final class UpdateRunInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -47,9 +47,9 @@ public final class UpdateRunInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of UpdateRunInner class.
@@ -57,6 +57,15 @@ public final class UpdateRunInner extends ProxyResource {
public UpdateRunInner() {
}
+ /**
+ * Get the innerProperties property: Describes Update Run Properties.
+ *
+ * @return the innerProperties value.
+ */
+ private UpdateRunProperties innerProperties() {
+ return this.innerProperties;
+ }
+
/**
* Get the location property: The geo-location where the resource lives.
*
@@ -77,15 +86,6 @@ public UpdateRunInner withLocation(String location) {
return this;
}
- /**
- * Get the innerProperties property: Describes Update Run Properties.
- *
- * @return the innerProperties value.
- */
- private UpdateRunProperties innerProperties() {
- return this.innerProperties;
- }
-
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
@@ -96,13 +96,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -116,17 +116,18 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
- * Get the provisioningState property: Provisioning state of the UpdateRuns proxy resource.
+ * Get the provisioningState property: Provisioning state of the UpdateRuns proxy resource. Indicates the current
+ * lifecycle status of the update operation, such as whether it has been accepted, is in progress, or has completed.
*
* @return the provisioningState value.
*/
@@ -204,7 +205,8 @@ public UpdateRunInner withDuration(String duration) {
}
/**
- * Get the state property: State of the update run.
+ * Get the state property: Represents the current state of the update run. Indicates whether the update is in
+ * progress, has completed successfully, failed, or is in an unknown state.
*
* @return the state value.
*/
@@ -213,7 +215,8 @@ public UpdateRunPropertiesState state() {
}
/**
- * Set the state property: State of the update run.
+ * Set the state property: Represents the current state of the update run. Indicates whether the update is in
+ * progress, has completed successfully, failed, or is in an unknown state.
*
* @param state the state value to set.
* @return the UpdateRunInner object itself.
@@ -437,25 +440,14 @@ public UpdateRunInner withSteps(List steps) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeStringField("location", this.location);
jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeStringField("location", this.location);
return jsonWriter.writeEndObject();
}
@@ -481,10 +473,10 @@ public static UpdateRunInner fromJson(JsonReader jsonReader) throws IOException
deserializedUpdateRunInner.name = reader.getString();
} else if ("type".equals(fieldName)) {
deserializedUpdateRunInner.type = reader.getString();
- } else if ("location".equals(fieldName)) {
- deserializedUpdateRunInner.location = reader.getString();
} else if ("properties".equals(fieldName)) {
deserializedUpdateRunInner.innerProperties = UpdateRunProperties.fromJson(reader);
+ } else if ("location".equals(fieldName)) {
+ deserializedUpdateRunInner.location = reader.getString();
} else if ("systemData".equals(fieldName)) {
deserializedUpdateRunInner.systemData = SystemData.fromJson(reader);
} else {
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateRunProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateRunProperties.java
index d594f9b7c4cb..c8760917e5a9 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateRunProperties.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateRunProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
@@ -23,7 +23,8 @@
@Fluent
public final class UpdateRunProperties implements JsonSerializable {
/*
- * Provisioning state of the UpdateRuns proxy resource.
+ * Provisioning state of the UpdateRuns proxy resource. Indicates the current lifecycle status of the update
+ * operation, such as whether it has been accepted, is in progress, or has completed.
*/
private ProvisioningState provisioningState;
@@ -43,7 +44,8 @@ public final class UpdateRunProperties implements JsonSerializable steps) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProgress() != null) {
- innerProgress().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateStateProperties.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateStateProperties.java
index 17f7f7fe9a7a..4d58b9ada0b3 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateStateProperties.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/UpdateStateProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
@@ -21,7 +21,7 @@ public final class UpdateStateProperties implements JsonSerializable {
/*
- * Provisioning state of the UpdateSummaries proxy resource.
+ * Provisioning state of the UpdateSummaries proxy resource. Indicates the current lifecycle status of the update
+ * summary operation, such as whether it has been accepted, is in progress, or has completed.
*/
private ProvisioningState provisioningState;
@@ -86,7 +87,8 @@ public final class UpdateSummariesProperties implements JsonSerializable e.validate());
- }
- if (healthCheckResult() != null) {
- healthCheckResult().forEach(e -> e.validate());
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ValidateResponseInner.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ValidateResponseInner.java
index 14b31c03c549..661a029011c4 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ValidateResponseInner.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/ValidateResponseInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.fluent.models;
@@ -24,7 +24,7 @@ public final class ValidateResponseInner implements JsonSerializable {
- PublisherInner deserializedPublisherInner = new PublisherInner();
+ ValidatedSolutionRecipeInner deserializedValidatedSolutionRecipeInner = new ValidatedSolutionRecipeInner();
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("id".equals(fieldName)) {
- deserializedPublisherInner.id = reader.getString();
+ deserializedValidatedSolutionRecipeInner.id = reader.getString();
} else if ("name".equals(fieldName)) {
- deserializedPublisherInner.name = reader.getString();
+ deserializedValidatedSolutionRecipeInner.name = reader.getString();
} else if ("type".equals(fieldName)) {
- deserializedPublisherInner.type = reader.getString();
+ deserializedValidatedSolutionRecipeInner.type = reader.getString();
} else if ("properties".equals(fieldName)) {
- deserializedPublisherInner.innerProperties = PublisherProperties.fromJson(reader);
+ deserializedValidatedSolutionRecipeInner.properties
+ = ValidatedSolutionRecipeProperties.fromJson(reader);
} else if ("systemData".equals(fieldName)) {
- deserializedPublisherInner.systemData = SystemData.fromJson(reader);
+ deserializedValidatedSolutionRecipeInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
}
- return deserializedPublisherInner;
+ return deserializedValidatedSolutionRecipeInner;
});
}
}
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/package-info.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/package-info.java
index 611f7358c042..45bdd7fe0a07 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/package-info.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/models/package-info.java
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
/**
- * Package containing the inner data models for AzureStackHciClient.
- * Azure Stack HCI management service.
+ * Package containing the inner data models for AzureStackHci.
+ * Azure Stack HCI service.
*/
package com.azure.resourcemanager.azurestackhci.fluent.models;
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/package-info.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/package-info.java
index d0573888c104..8e41b1eda8bc 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/package-info.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/fluent/package-info.java
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
/**
- * Package containing the service clients for AzureStackHciClient.
- * Azure Stack HCI management service.
+ * Package containing the service clients for AzureStackHci.
+ * Azure Stack HCI service.
*/
package com.azure.resourcemanager.azurestackhci.fluent;
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcIdentityResponseImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcIdentityResponseImpl.java
index 54ac1517757b..1ccf2b2cfa32 100644
--- a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcIdentityResponseImpl.java
+++ b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcIdentityResponseImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.implementation;
diff --git a/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcSettingImpl.java b/sdk/azurestackhci/azure-resourcemanager-azurestackhci/src/main/java/com/azure/resourcemanager/azurestackhci/implementation/ArcSettingImpl.java
index 36a7f582212d..bd4044e53962 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.implementation;
@@ -8,6 +8,7 @@
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.ArcConnectivityProperties;
import com.azure.resourcemanager.azurestackhci.models.ArcIdentityResponse;
import com.azure.resourcemanager.azurestackhci.models.ArcSetting;
import com.azure.resourcemanager.azurestackhci.models.ArcSettingAggregateState;
@@ -16,6 +17,7 @@
import com.azure.resourcemanager.azurestackhci.models.PasswordCredential;
import com.azure.resourcemanager.azurestackhci.models.PerNodeState;
import com.azure.resourcemanager.azurestackhci.models.ProvisioningState;
+import com.azure.resourcemanager.azurestackhci.models.ReconcileArcSettingsRequest;
import java.util.Collections;
import java.util.List;
import java.util.Map;
@@ -78,7 +80,7 @@ public List perNodeDetails() {
}
}
- public Object connectivityProperties() {
+ public ArcConnectivityProperties connectivityProperties() {
return this.innerModel().connectivityProperties();
}
@@ -202,6 +204,16 @@ public ArcIdentityResponse createIdentity(Context context) {
return serviceManager.arcSettings().createIdentity(resourceGroupName, clusterName, arcSettingName, context);
}
+ public ArcSetting reconcile(ReconcileArcSettingsRequest reconcileArcSettingsRequest) {
+ return serviceManager.arcSettings()
+ .reconcile(resourceGroupName, clusterName, arcSettingName, reconcileArcSettingsRequest);
+ }
+
+ public ArcSetting reconcile(ReconcileArcSettingsRequest reconcileArcSettingsRequest, Context context) {
+ return serviceManager.arcSettings()
+ .reconcile(resourceGroupName, clusterName, arcSettingName, reconcileArcSettingsRequest, context);
+ }
+
public Response consentAndInstallDefaultExtensionsWithResponse(Context context) {
return serviceManager.arcSettings()
.consentAndInstallDefaultExtensionsWithResponse(resourceGroupName, clusterName, arcSettingName, context);
@@ -245,7 +257,7 @@ public ArcSettingImpl withArcApplicationObjectId(String arcApplicationObjectId)
return this;
}
- public ArcSettingImpl withConnectivityProperties(Object connectivityProperties) {
+ public ArcSettingImpl withConnectivityProperties(ArcConnectivityProperties connectivityProperties) {
if (isInCreateMode()) {
this.innerModel().withConnectivityProperties(connectivityProperties);
return this;
@@ -261,6 +273,6 @@ public ArcSettingImpl withTags(Map tags) {
}
private boolean isInCreateMode() {
- return this.innerModel().id() == null;
+ return this.innerModel() == null || 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 aec4711584ef..926f535902e2 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.azurestackhci.implementation;
@@ -29,6 +29,7 @@
import com.azure.core.http.rest.RestProxy;
import com.azure.core.management.exception.ManagementException;
import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.BinaryData;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
import com.azure.core.util.polling.PollerFlux;
@@ -37,8 +38,9 @@
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.implementation.models.ArcSettingList;
import com.azure.resourcemanager.azurestackhci.models.ArcSettingsPatch;
+import com.azure.resourcemanager.azurestackhci.models.ReconcileArcSettingsRequest;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -55,265 +57,225 @@ public final class ArcSettingsClientImpl implements ArcSettingsClient {
/**
* The service client containing this operation class.
*/
- private final AzureStackHciClientImpl client;
+ private final AzureStackHciManagementClientImpl client;
/**
* Initializes an instance of ArcSettingsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- ArcSettingsClientImpl(AzureStackHciClientImpl client) {
+ ArcSettingsClientImpl(AzureStackHciManagementClientImpl client) {
this.service
= RestProxy.create(ArcSettingsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureStackHciClientArcSettings to be used by the proxy service to
- * perform REST calls.
+ * The interface defining all the services for AzureStackHciManagementClientArcSettings to be used by the proxy
+ * service to perform REST calls.
*/
- @Host("{$host}")
- @ServiceInterface(name = "AzureStackHciClientA")
+ @Host("{endpoint}")
+ @ServiceInterface(name = "AzureStackHciManagementClientArcSettings")
public interface ArcSettingsService {
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByCluster(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
+ Mono> get(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+ @PathParam("arcSettingName") String arcSettingName, @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
+ Response getSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @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);
+ @PathParam("arcSettingName") String arcSettingName, @HeaderParam("Accept") String accept, Context context);
- @Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> create(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
+ Mono> create(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
- @PathParam("arcSettingName") String arcSettingName, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") ArcSettingInner arcSetting, @HeaderParam("Accept") String accept,
+ @PathParam("arcSettingName") String arcSettingName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") ArcSettingInner arcSetting,
+ Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response createSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ @PathParam("arcSettingName") String arcSettingName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") ArcSettingInner arcSetting,
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,
+ Mono> update(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @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,
+ @PathParam("arcSettingName") String arcSettingName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") ArcSettingsPatch arcSetting,
Context context);
- @Headers({ "Content-Type: application/json" })
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response updateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ @PathParam("arcSettingName") String arcSettingName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") ArcSettingsPatch arcSetting,
+ Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}")
@ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
+ Mono>> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ @PathParam("arcSettingName") String arcSettingName, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}")
+ @ExpectedResponses({ 200, 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response deleteSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ @PathParam("arcSettingName") String arcSettingName, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByCluster(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
- @PathParam("arcSettingName") String arcSettingName, @QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/generatePassword")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> generatePassword(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
+ Response listByClusterSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
- @PathParam("arcSettingName") String arcSettingName, @QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept, Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/generatePassword")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> generatePassword(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ @PathParam("arcSettingName") String arcSettingName, @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)
+ Response generatePasswordSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ @PathParam("arcSettingName") String arcSettingName, @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,
+ Mono>> createIdentity(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @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);
+ @PathParam("arcSettingName") String arcSettingName, @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)
+ Response createIdentitySync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ @PathParam("arcSettingName") String arcSettingName, @HeaderParam("Accept") String accept, Context context);
+
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/reconcile")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> reconcile(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ @PathParam("arcSettingName") String arcSettingName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ReconcileArcSettingsRequest reconcileArcSettingsRequest, Context context);
+
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/reconcile")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response reconcileSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ @PathParam("arcSettingName") String arcSettingName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ReconcileArcSettingsRequest reconcileArcSettingsRequest, Context context);
@Headers({ "Content-Type: application/json" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/consentAndInstallDefaultExtensions")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> consentAndInstallDefaultExtensions(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
+ Mono> consentAndInstallDefaultExtensions(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @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);
+ @PathParam("arcSettingName") String arcSettingName, @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/consentAndInstallDefaultExtensions")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response consentAndInstallDefaultExtensionsSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ @PathParam("arcSettingName") String arcSettingName, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/initializeDisableProcess")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> initializeDisableProcess(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
+ Mono>> initializeDisableProcess(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @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);
+ @PathParam("arcSettingName") String arcSettingName, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/initializeDisableProcess")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response initializeDisableProcessSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ @PathParam("arcSettingName") String arcSettingName, Context context);
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByClusterNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context);
- }
+ @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context);
- /**
- * Get ArcSetting resources of 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 ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return arcSetting resources of HCI Cluster along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByClusterSinglePageAsync(String resourceGroupName,
- String clusterName) {
- 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."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.listByCluster(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, clusterName, this.client.getApiVersion(), accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
- res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get ArcSetting resources of HCI Cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return arcSetting resources of HCI Cluster along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByClusterSinglePageAsync(String resourceGroupName,
- String clusterName, 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."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .listByCluster(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, clusterName,
- this.client.getApiVersion(), accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
- }
-
- /**
- * Get ArcSetting resources of 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 ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return arcSetting resources of HCI Cluster as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByClusterAsync(String resourceGroupName, String clusterName) {
- return new PagedFlux<>(() -> listByClusterSinglePageAsync(resourceGroupName, clusterName),
- nextLink -> listByClusterNextSinglePageAsync(nextLink));
- }
-
- /**
- * Get ArcSetting resources of 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 ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return arcSetting resources of HCI Cluster as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByClusterAsync(String resourceGroupName, String clusterName,
- Context context) {
- return new PagedFlux<>(() -> listByClusterSinglePageAsync(resourceGroupName, clusterName, context),
- nextLink -> listByClusterNextSinglePageAsync(nextLink, context));
- }
-
- /**
- * Get ArcSetting resources of 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 ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return arcSetting resources of HCI Cluster as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByCluster(String resourceGroupName, String clusterName) {
- return new PagedIterable<>(listByClusterAsync(resourceGroupName, clusterName));
- }
-
- /**
- * Get ArcSetting resources of 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 ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return arcSetting resources of HCI Cluster as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByCluster(String resourceGroupName, String clusterName, Context context) {
- return new PagedIterable<>(listByClusterAsync(resourceGroupName, clusterName, context));
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByClusterNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context);
}
/**
@@ -331,71 +293,13 @@ public PagedIterable listByCluster(String resourceGroupName, St
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(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.get(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, clusterName, arcSettingName, this.client.getApiVersion(), accept, context))
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, clusterName, arcSettingName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
- /**
- * Get ArcSetting resource details of 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 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 resource details of HCI Cluster along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(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.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, clusterName,
- arcSettingName, this.client.getApiVersion(), accept, context);
- }
-
/**
* Get ArcSetting resource details of HCI Cluster.
*
@@ -428,7 +332,9 @@ private Mono getAsync(String resourceGroupName, String clusterN
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getWithResponse(String resourceGroupName, String clusterName,
String arcSettingName, Context context) {
- return getWithResponseAsync(resourceGroupName, clusterName, arcSettingName, context).block();
+ final String accept = "application/json";
+ return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, clusterName, arcSettingName, accept, context);
}
/**
@@ -462,82 +368,15 @@ public ArcSettingInner get(String resourceGroupName, String clusterName, String
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createWithResponseAsync(String resourceGroupName, String clusterName,
String arcSettingName, ArcSettingInner 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 contentType = "application/json";
final String accept = "application/json";
return FluxUtil
- .withContext(
- context -> service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- clusterName, arcSettingName, this.client.getApiVersion(), arcSetting, accept, context))
+ .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, clusterName, arcSettingName, contentType, accept,
+ arcSetting, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
- /**
- * Create ArcSetting 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 Parameters supplied to the Create ArcSetting resource for this HCI cluster.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return arcSetting details along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> createWithResponseAsync(String resourceGroupName, String clusterName,
- String arcSettingName, ArcSettingInner 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.create(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- clusterName, arcSettingName, this.client.getApiVersion(), arcSetting, accept, context);
- }
-
/**
* Create ArcSetting for HCI cluster.
*
@@ -573,7 +412,11 @@ private Mono createAsync(String resourceGroupName, String clust
@ServiceMethod(returns = ReturnType.SINGLE)
public Response