From a243c3f16528aca53d3095b830794144b01187ea Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Mon, 10 Nov 2025 20:03:52 +0000 Subject: [PATCH] Configurations: 'specification/servicefabricmanagedclusters/resource-manager/Microsoft.ServiceFabric/ServiceFabricManagedClusters/tspconfig.yaml', API Version: 2025-10-01-preview, SDK Release Type: beta, and CommitSHA: '833aeb9992144f6e04d99de1316a7f37a001ee94' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5554955 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- .../CHANGELOG.md | 67 +- .../README.md | 4 +- .../SAMPLE.md | 318 ++++++-- .../pom.xml | 2 +- .../fluent/ApplicationsClient.java | 248 +++++- .../fluent/ManagedClustersClient.java | 39 +- .../fluent/NodeTypesClient.java | 8 +- .../fluent/ServicesClient.java | 69 ++ .../ApplicationResourceImpl.java | 42 +- .../ApplicationsClientImpl.java | 767 +++++++++++++++++- .../implementation/ApplicationsImpl.java | 34 + .../implementation/ManagedClusterImpl.java | 6 +- .../ManagedClustersClientImpl.java | 119 ++- .../implementation/NodeTypesClientImpl.java | 18 +- ...ceFabricManagedClustersMgmtClientImpl.java | 2 +- .../implementation/ServiceResourceImpl.java | 11 + .../implementation/ServicesClientImpl.java | 216 +++++ .../implementation/ServicesImpl.java | 12 + .../models/ApplicationFetchHealthRequest.java | 221 +++++ .../models/ApplicationResource.java | 82 +- .../models/ApplicationUpdateParameters.java | 29 + ...ApplicationUpdateParametersProperties.java | 92 +++ .../models/Applications.java | 91 +++ .../models/HealthFilter.java | 71 ++ .../RestartDeployedCodePackageRequest.java | 227 ++++++ .../models/RestartKind.java | 46 ++ .../models/RestartReplicaRequest.java | 208 +++++ .../models/RollingUpgradeMode.java | 3 +- .../RuntimeApplicationHealthPolicy.java | 204 +++++ .../models/RuntimeFailureAction.java | 53 ++ .../models/RuntimeRollingUpgradeMode.java | 57 ++ ...eRollingUpgradeUpdateMonitoringPolicy.java | 424 ++++++++++ .../RuntimeServiceTypeHealthPolicy.java | 217 +++++ ...imeUpdateApplicationUpgradeParameters.java | 181 +++++ .../models/RuntimeUpgradeKind.java | 46 ++ .../models/ServiceResource.java | 21 + .../models/Services.java | 31 + ...ricmanagedclusters_apiview_properties.json | 25 +- ...servicefabricmanagedclusters_metadata.json | 2 +- ...tionTypeVersionsCreateOrUpdateSamples.java | 2 +- .../ApplicationTypeVersionsDeleteSamples.java | 2 +- .../ApplicationTypeVersionsGetSamples.java | 2 +- ...eVersionsListByApplicationTypeSamples.java | 2 +- .../ApplicationTypeVersionsUpdateSamples.java | 2 +- ...ApplicationTypesCreateOrUpdateSamples.java | 2 +- .../ApplicationTypesDeleteSamples.java | 2 +- .../generated/ApplicationTypesGetSamples.java | 2 +- .../ApplicationTypesListSamples.java | 2 +- .../ApplicationTypesUpdateSamples.java | 2 +- .../ApplicationsCreateOrUpdateSamples.java | 4 +- .../generated/ApplicationsDeleteSamples.java | 2 +- .../ApplicationsFetchHealthSamples.java | 33 + .../generated/ApplicationsGetSamples.java | 2 +- .../generated/ApplicationsListSamples.java | 2 +- .../ApplicationsReadUpgradeSamples.java | 2 +- ...ionsRestartDeployedCodePackageSamples.java | 32 + .../ApplicationsResumeUpgradeSamples.java | 2 +- .../ApplicationsStartRollbackSamples.java | 2 +- .../generated/ApplicationsUpdateSamples.java | 9 +- .../ApplicationsUpdateUpgradeSamples.java | 68 ++ ...agedApplyMaintenanceWindowPostSamples.java | 2 +- ...ManagedAzResiliencyStatusesGetSamples.java | 2 +- ...ClusterVersionGetByEnvironmentSamples.java | 2 +- .../ManagedClusterVersionGetSamples.java | 2 +- ...lusterVersionListByEnvironmentSamples.java | 2 +- .../ManagedClusterVersionListSamples.java | 2 +- .../ManagedClustersCreateOrUpdateSamples.java | 4 +- .../ManagedClustersDeleteSamples.java | 2 +- ...agedClustersGetByResourceGroupSamples.java | 2 +- ...agedClustersGetFaultSimulationSamples.java | 2 +- ...gedClustersListByResourceGroupSamples.java | 2 +- ...gedClustersListFaultSimulationSamples.java | 2 +- .../generated/ManagedClustersListSamples.java | 2 +- ...edClustersStartFaultSimulationSamples.java | 2 +- ...gedClustersStopFaultSimulationSamples.java | 2 +- .../ManagedClustersUpdateSamples.java | 2 +- ...edMaintenanceWindowStatusesGetSamples.java | 2 +- .../ManagedUnsupportedVMSizesGetSamples.java | 2 +- .../ManagedUnsupportedVMSizesListSamples.java | 2 +- .../generated/NodeTypeSkusListSamples.java | 2 +- .../NodeTypesCreateOrUpdateSamples.java | 16 +- .../generated/NodeTypesDeallocateSamples.java | 2 +- .../generated/NodeTypesDeleteNodeSamples.java | 2 +- .../generated/NodeTypesDeleteSamples.java | 2 +- .../NodeTypesGetFaultSimulationSamples.java | 2 +- .../generated/NodeTypesGetSamples.java | 2 +- ...NodeTypesListByManagedClustersSamples.java | 2 +- .../NodeTypesListFaultSimulationSamples.java | 2 +- .../generated/NodeTypesRedeploySamples.java | 4 +- .../generated/NodeTypesReimageSamples.java | 4 +- .../generated/NodeTypesRestartSamples.java | 2 +- .../NodeTypesStartFaultSimulationSamples.java | 2 +- .../generated/NodeTypesStartSamples.java | 2 +- .../NodeTypesStopFaultSimulationSamples.java | 2 +- .../generated/NodeTypesUpdateSamples.java | 4 +- .../generated/OperationsListSamples.java | 2 +- .../ServicesCreateOrUpdateSamples.java | 4 +- .../generated/ServicesDeleteSamples.java | 2 +- .../generated/ServicesGetSamples.java | 2 +- .../ServicesListByApplicationsSamples.java | 2 +- .../ServicesRestartReplicaSamples.java | 34 + .../generated/ServicesUpdateSamples.java | 2 +- ...talNamedPartitionScalingMechanisTests.java | 20 +- ...nalNetworkInterfaceConfigurationTests.java | 135 +-- .../ApplicationFetchHealthRequestTests.java | 40 + .../ApplicationResourceListTests.java | 58 +- .../ApplicationTypeResourceInnerTests.java | 16 +- .../ApplicationTypeResourceListTests.java | 8 +- ...pplicationTypeResourcePropertiesTests.java | 2 +- .../ApplicationTypeUpdateParametersTests.java | 10 +- ...licationTypeVersionResourceInnerTests.java | 21 +- ...plicationTypeVersionResourceListTests.java | 10 +- ...ionTypeVersionResourcePropertiesTests.java | 8 +- ...ationTypeVersionUpdateParametersTests.java | 8 +- ...icationTypeVersionsCleanupPolicyTests.java | 8 +- ...onTypeVersionsCreateOrUpdateMockTests.java | 18 +- ...nTypeVersionsGetWithResponseMockTests.java | 10 +- ...rsionsListByApplicationTypesMockTests.java | 10 +- ...esCreateOrUpdateWithResponseMockTests.java | 14 +- ...licationTypesGetWithResponseMockTests.java | 8 +- .../ApplicationTypesListMockTests.java | 8 +- ...cationUpdateParametersPropertiesTests.java | 40 + .../ApplicationUpdateParametersTests.java | 12 +- .../ApplicationsCreateOrUpdateMockTests.java | 125 ++- .../ApplicationsGetWithResponseMockTests.java | 57 +- .../generated/ApplicationsListMockTests.java | 54 +- ...eragePartitionLoadScalingTriggerTests.java | 26 +- ...AverageServiceLoadScalingTriggerTests.java | 32 +- .../generated/AzureActiveDirectoryTests.java | 23 +- .../generated/ClientCertificateTests.java | 23 +- .../generated/ClusterHealthPolicyTests.java | 14 +- .../ClusterMonitoringPolicyTests.java | 32 +- .../ClusterUpgradeDeltaHealthPolicyTests.java | 20 +- .../generated/ClusterUpgradePolicyTests.java | 74 +- .../EndpointRangeDescriptionTests.java | 13 +- .../FaultSimulationConstraintsTests.java | 8 +- .../FaultSimulationContentTests.java | 8 +- .../FaultSimulationContentWrapperTests.java | 14 +- .../FaultSimulationDetailsTests.java | 16 +- .../FaultSimulationIdContentTests.java | 8 +- .../generated/FaultSimulationInnerTests.java | 25 +- .../FaultSimulationListResultTests.java | 30 +- .../generated/FrontendConfigurationTests.java | 26 +- ...tionPublicIpAddressConfigurationTests.java | 27 +- .../generated/IpConfigurationTests.java | 67 +- .../generated/IpTagTests.java | 12 +- .../generated/LoadBalancingRuleTests.java | 44 +- ...enanceWindowsPostWithResponsMockTests.java | 3 +- .../ManagedAzResiliencyStatusInnerTests.java | 2 +- ...iencyStatusesGetWithResponseMockTests.java | 4 +- .../ManagedClusterUpdateParametersTests.java | 11 +- ...tFaultSimulationWithResponseMockTests.java | 30 +- ...dClustersListFaultSimulationMockTests.java | 26 +- ...agedMaintenanceWindowStatusInnerTests.java | 2 +- ...eWindowStatusesGetWithResponMockTests.java | 4 +- ...portedVMSizesGetWithResponseMockTests.java | 5 +- ...anagedUnsupportedVMSizesListMockTests.java | 4 +- .../generated/ManagedVMSizeInnerTests.java | 2 +- .../generated/ManagedVMSizesResultTests.java | 4 +- .../generated/NamedPartitionSchemeTests.java | 13 +- .../generated/NetworkSecurityRuleTests.java | 80 +- .../NodeTypeActionParametersTests.java | 21 +- .../NodeTypeAvailableSkuInnerTests.java | 2 +- .../NodeTypeFaultSimulationTests.java | 8 +- .../generated/NodeTypeListSkuResultTests.java | 4 +- .../generated/NodeTypeNatConfigTests.java | 20 +- .../generated/NodeTypeSkuCapacityTests.java | 2 +- .../generated/NodeTypeSkuTests.java | 20 +- .../generated/NodeTypeSkusListMockTests.java | 4 +- .../generated/NodeTypeSupportedSkuTests.java | 2 +- .../NodeTypeUpdateParametersTests.java | 22 +- ...tFaultSimulationWithResponseMockTests.java | 30 +- ...NodeTypesListFaultSimulationMockTests.java | 28 +- .../generated/OperationsListMockTests.java | 18 +- ...itionInstanceCountScaleMechanismTests.java | 20 +- .../generated/ResourceAzStatusTests.java | 2 +- .../generated/RestartReplicaRequestTests.java | 40 + .../RuntimeApplicationHealthPolicyTests.java | 78 ++ ...sumeApplicationUpgradeParametersTests.java | 11 +- ...ingUpgradeUpdateMonitoringPolicyTests.java | 56 ++ .../RuntimeServiceTypeHealthPolicyTests.java | 33 + ...dateApplicationUpgradeParametersTests.java | 137 ++++ .../generated/ServiceCorrelationTests.java | 17 +- .../generated/ServiceEndpointTests.java | 21 +- .../generated/ServiceLoadMetricTests.java | 32 +- ...vicePlacementInvalidDomainPolicyTests.java | 9 +- ...acementPreferPrimaryDomainPolicyTests.java | 8 +- ...tRequireDomainDistributionPolicyTests.java | 8 +- ...icePlacementRequiredDomainPolicyTests.java | 9 +- .../generated/ServiceResourceInnerTests.java | 98 +-- .../generated/ServiceResourceListTests.java | 28 +- .../ServiceResourcePropertiesBaseTests.java | 84 +- .../ServiceResourcePropertiesTests.java | 96 ++- .../ServiceUpdateParametersTests.java | 9 +- .../ServicesCreateOrUpdateMockTests.java | 75 +- .../ServicesGetWithResponseMockTests.java | 31 +- .../ServicesListByApplicationsMockTests.java | 28 +- .../SettingsParameterDescriptionTests.java | 14 +- .../SettingsSectionDescriptionTests.java | 25 +- .../generated/SkuTests.java | 8 +- .../StatefulServicePropertiesTests.java | 118 +-- .../StatelessServicePropertiesTests.java | 116 +-- .../generated/SubnetTests.java | 26 +- .../VMSSExtensionPropertiesTests.java | 46 +- .../generated/VMSizeTests.java | 2 +- .../generated/VaultCertificateTests.java | 17 +- .../generated/VaultSecretGroupTests.java | 21 +- .../generated/VmApplicationTests.java | 32 +- .../generated/VmManagedIdentityTests.java | 14 +- .../generated/VmssDataDiskTests.java | 26 +- .../generated/VmssExtensionTests.java | 51 +- .../ZoneFaultSimulationContentTests.java | 20 +- .../tsp-location.yaml | 4 +- 213 files changed, 6170 insertions(+), 1544 deletions(-) create mode 100644 sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationFetchHealthRequest.java create mode 100644 sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationUpdateParametersProperties.java create mode 100644 sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/HealthFilter.java create mode 100644 sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RestartDeployedCodePackageRequest.java create mode 100644 sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RestartKind.java create mode 100644 sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RestartReplicaRequest.java create mode 100644 sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeApplicationHealthPolicy.java create mode 100644 sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeFailureAction.java create mode 100644 sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeRollingUpgradeMode.java create mode 100644 sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeRollingUpgradeUpdateMonitoringPolicy.java create mode 100644 sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeServiceTypeHealthPolicy.java create mode 100644 sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeUpdateApplicationUpgradeParameters.java create mode 100644 sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeUpgradeKind.java create mode 100644 sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsFetchHealthSamples.java create mode 100644 sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsRestartDeployedCodePackageSamples.java create mode 100644 sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsUpdateUpgradeSamples.java create mode 100644 sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesRestartReplicaSamples.java create mode 100644 sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationFetchHealthRequestTests.java create mode 100644 sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationUpdateParametersPropertiesTests.java create mode 100644 sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/RestartReplicaRequestTests.java create mode 100644 sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/RuntimeApplicationHealthPolicyTests.java create mode 100644 sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/RuntimeRollingUpgradeUpdateMonitoringPolicyTests.java create mode 100644 sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/RuntimeServiceTypeHealthPolicyTests.java create mode 100644 sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/RuntimeUpdateApplicationUpgradeParametersTests.java diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/CHANGELOG.md b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/CHANGELOG.md index cea3c568bb76..6c778eafc2f5 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/CHANGELOG.md +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/CHANGELOG.md @@ -1,14 +1,73 @@ # Release History -## 1.1.0-beta.3 (Unreleased) +## 1.1.0-beta.3 (2025-11-10) + +- Azure Resource Manager Service Fabric Managed Clusters client library for Java. This package contains Microsoft Azure SDK for Service Fabric Managed Clusters Management SDK. Service Fabric Managed Clusters Management Client. Package api-version 2025-10-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added -### Breaking Changes +* `models.RuntimeUpdateApplicationUpgradeParameters` was added -### Bugs Fixed +* `models.RestartKind` was added -### Other Changes +* `models.ApplicationFetchHealthRequest` was added + +* `models.RestartDeployedCodePackageRequest` was added + +* `models.RestartReplicaRequest` was added + +* `models.RuntimeApplicationHealthPolicy` was added + +* `models.RuntimeRollingUpgradeMode` was added + +* `models.RuntimeRollingUpgradeUpdateMonitoringPolicy` was added + +* `models.RuntimeUpgradeKind` was added + +* `models.RuntimeServiceTypeHealthPolicy` was added + +* `models.RuntimeFailureAction` was added + +* `models.ApplicationUpdateParametersProperties` was added + +* `models.HealthFilter` was added + +#### `models.ApplicationResource` was modified + +* `updateUpgrade(models.RuntimeUpdateApplicationUpgradeParameters)` was added +* `restartDeployedCodePackage(models.RestartDeployedCodePackageRequest)` was added +* `fetchHealth(models.ApplicationFetchHealthRequest)` was added +* `updateUpgrade(models.RuntimeUpdateApplicationUpgradeParameters,com.azure.core.util.Context)` was added +* `restartDeployedCodePackage(models.RestartDeployedCodePackageRequest,com.azure.core.util.Context)` was added +* `fetchHealth(models.ApplicationFetchHealthRequest,com.azure.core.util.Context)` was added + +#### `models.ApplicationUpdateParameters` was modified + +* `withProperties(models.ApplicationUpdateParametersProperties)` was added +* `properties()` was added + +#### `models.Services` was modified + +* `restartReplica(java.lang.String,java.lang.String,java.lang.String,java.lang.String,models.RestartReplicaRequest,com.azure.core.util.Context)` was added +* `restartReplica(java.lang.String,java.lang.String,java.lang.String,java.lang.String,models.RestartReplicaRequest)` was added + +#### `models.Applications` was modified + +* `fetchHealth(java.lang.String,java.lang.String,java.lang.String,models.ApplicationFetchHealthRequest)` was added +* `updateUpgrade(java.lang.String,java.lang.String,java.lang.String,models.RuntimeUpdateApplicationUpgradeParameters)` was added +* `updateUpgrade(java.lang.String,java.lang.String,java.lang.String,models.RuntimeUpdateApplicationUpgradeParameters,com.azure.core.util.Context)` was added +* `restartDeployedCodePackage(java.lang.String,java.lang.String,java.lang.String,models.RestartDeployedCodePackageRequest)` was added +* `restartDeployedCodePackage(java.lang.String,java.lang.String,java.lang.String,models.RestartDeployedCodePackageRequest,com.azure.core.util.Context)` was added +* `fetchHealth(java.lang.String,java.lang.String,java.lang.String,models.ApplicationFetchHealthRequest,com.azure.core.util.Context)` was added + +#### `models.ServiceResource` was modified + +* `restartReplica(models.RestartReplicaRequest)` was added +* `restartReplica(models.RestartReplicaRequest,com.azure.core.util.Context)` was added + +#### `models.ApplicationResource$Update` was modified + +* `withProperties(models.ApplicationUpdateParametersProperties)` was added ## 1.1.0-beta.2 (2025-08-11) diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/README.md b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/README.md index 11f309c7c124..ff80581d40a0 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/README.md +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/README.md @@ -2,7 +2,7 @@ Azure Resource Manager Service Fabric Managed Clusters client library for Java. -This package contains Microsoft Azure SDK for Service Fabric Managed Clusters Management SDK. Service Fabric Managed Clusters Management Client. Package api-version 2025-06-01-preview. 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 Service Fabric Managed Clusters Management SDK. Service Fabric Managed Clusters Management Client. Package api-version 2025-10-01-preview. 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-servicefabricmanagedclusters - 1.1.0-beta.2 + 1.1.0-beta.3 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/SAMPLE.md b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/SAMPLE.md index 9b27e8e16f97..00e17a41a359 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/SAMPLE.md +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/SAMPLE.md @@ -21,12 +21,15 @@ - [CreateOrUpdate](#applications_createorupdate) - [Delete](#applications_delete) +- [FetchHealth](#applications_fetchhealth) - [Get](#applications_get) - [List](#applications_list) - [ReadUpgrade](#applications_readupgrade) +- [RestartDeployedCodePackage](#applications_restartdeployedcodepackage) - [ResumeUpgrade](#applications_resumeupgrade) - [StartRollback](#applications_startrollback) - [Update](#applications_update) +- [UpdateUpgrade](#applications_updateupgrade) ## ManagedApplyMaintenanceWindow @@ -97,6 +100,7 @@ - [Delete](#services_delete) - [Get](#services_get) - [ListByApplications](#services_listbyapplications) +- [RestartReplica](#services_restartreplica) - [Update](#services_update) ### ApplicationTypeVersions_CreateOrUpdate @@ -106,7 +110,7 @@ */ public final class ApplicationTypeVersionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationTypeVersionPutOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationTypeVersionPutOperation_example.json */ /** * Sample code: Put an application type version. @@ -133,7 +137,7 @@ public final class ApplicationTypeVersionsCreateOrUpdateSamples { */ public final class ApplicationTypeVersionsDeleteSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationTypeVersionDeleteOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationTypeVersionDeleteOperation_example.json */ /** * Sample code: Delete an application type version. @@ -156,7 +160,7 @@ public final class ApplicationTypeVersionsDeleteSamples { */ public final class ApplicationTypeVersionsGetSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationTypeVersionGetOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationTypeVersionGetOperation_example.json */ /** * Sample code: Get an application type version. @@ -179,7 +183,7 @@ public final class ApplicationTypeVersionsGetSamples { */ public final class ApplicationTypeVersionsListByApplicationTypeSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationTypeVersionListOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationTypeVersionListOperation_example.json */ /** * Sample code: Get a list of application type version resources. @@ -206,7 +210,7 @@ import java.util.Map; */ public final class ApplicationTypeVersionsUpdateSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationTypeVersionPatchOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationTypeVersionPatchOperation_example.json */ /** * Sample code: Patch an application type version. @@ -243,7 +247,7 @@ public final class ApplicationTypeVersionsUpdateSamples { */ public final class ApplicationTypesCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationTypeNamePutOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationTypeNamePutOperation_example.json */ /** * Sample code: Put an application type. @@ -269,7 +273,7 @@ public final class ApplicationTypesCreateOrUpdateSamples { */ public final class ApplicationTypesDeleteSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationTypeNameDeleteOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationTypeNameDeleteOperation_example.json */ /** * Sample code: Delete an application type. @@ -291,7 +295,7 @@ public final class ApplicationTypesDeleteSamples { */ public final class ApplicationTypesGetSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationTypeNameGetOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationTypeNameGetOperation_example.json */ /** * Sample code: Get an application type. @@ -313,7 +317,7 @@ public final class ApplicationTypesGetSamples { */ public final class ApplicationTypesListSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationTypeNameListOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationTypeNameListOperation_example.json */ /** * Sample code: Get a list of application type name resources. @@ -339,7 +343,7 @@ import java.util.Map; */ public final class ApplicationTypesUpdateSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationTypeNamePatchOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationTypeNamePatchOperation_example.json */ /** * Sample code: Patch an application type. @@ -385,7 +389,7 @@ import java.util.Map; */ public final class ApplicationsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationPutOperation_example_max.json + * x-ms-original-file: 2025-10-01-preview/ApplicationPutOperation_example_max.json */ /** * Sample code: Put an application with maximum parameters. @@ -428,7 +432,7 @@ public final class ApplicationsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-06-01-preview/ApplicationPutOperation_example_min.json + * x-ms-original-file: 2025-10-01-preview/ApplicationPutOperation_example_min.json */ /** * Sample code: Put an application with minimum parameters. @@ -468,7 +472,7 @@ public final class ApplicationsCreateOrUpdateSamples { */ public final class ApplicationsDeleteSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationDeleteOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationDeleteOperation_example.json */ /** * Sample code: Delete an application. @@ -482,6 +486,38 @@ public final class ApplicationsDeleteSamples { } ``` +### Applications_FetchHealth + +```java +import com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationFetchHealthRequest; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.HealthFilter; + +/** + * Samples for Applications FetchHealth. + */ +public final class ApplicationsFetchHealthSamples { + /* + * x-ms-original-file: 2025-10-01-preview/ApplicationActionFetchHealth_example.json + */ + /** + * Sample code: Fetch application health. + * + * @param manager Entry point to ServiceFabricManagedClustersManager. + */ + public static void fetchApplicationHealth( + com.azure.resourcemanager.servicefabricmanagedclusters.ServiceFabricManagedClustersManager manager) { + manager.applications() + .fetchHealth("resRg", "myCluster", "myApp", + new ApplicationFetchHealthRequest().withEventsHealthStateFilter(HealthFilter.ERROR) + .withDeployedApplicationsHealthStateFilter(HealthFilter.ERROR) + .withServicesHealthStateFilter(HealthFilter.ERROR) + .withExcludeHealthStatistics(true) + .withTimeout(30L), + com.azure.core.util.Context.NONE); + } +} +``` + ### Applications_Get ```java @@ -490,7 +526,7 @@ public final class ApplicationsDeleteSamples { */ public final class ApplicationsGetSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationGetOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationGetOperation_example.json */ /** * Sample code: Get an application. @@ -512,7 +548,7 @@ public final class ApplicationsGetSamples { */ public final class ApplicationsListSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationListOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationListOperation_example.json */ /** * Sample code: Get a list of application resources. @@ -534,7 +570,7 @@ public final class ApplicationsListSamples { */ public final class ApplicationsReadUpgradeSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationActionGetUpgrade_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationActionGetUpgrade_example.json */ /** * Sample code: Get an application upgrade. @@ -548,6 +584,37 @@ public final class ApplicationsReadUpgradeSamples { } ``` +### Applications_RestartDeployedCodePackage + +```java +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RestartDeployedCodePackageRequest; + +/** + * Samples for Applications RestartDeployedCodePackage. + */ +public final class ApplicationsRestartDeployedCodePackageSamples { + /* + * x-ms-original-file: 2025-10-01-preview/ApplicationActionRestartDeployedCodePackage_example.json + */ + /** + * Sample code: Restart deployed code package. + * + * @param manager Entry point to ServiceFabricManagedClustersManager. + */ + public static void restartDeployedCodePackage( + com.azure.resourcemanager.servicefabricmanagedclusters.ServiceFabricManagedClustersManager manager) { + manager.applications() + .restartDeployedCodePackage("resRg", "myCluster", "myApp", + new RestartDeployedCodePackageRequest().withNodeName("nt1_0") + .withServiceManifestName("TestPkg") + .withCodePackageName("fakeTokenPlaceholder") + .withCodePackageInstanceId("fakeTokenPlaceholder") + .withServicePackageActivationId("sharedProcess"), + com.azure.core.util.Context.NONE); + } +} +``` + ### Applications_ResumeUpgrade ```java @@ -558,7 +625,7 @@ import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeResu */ public final class ApplicationsResumeUpgradeSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationActionResumeUpgrade_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationActionResumeUpgrade_example.json */ /** * Sample code: Resume upgrade. @@ -583,7 +650,7 @@ public final class ApplicationsResumeUpgradeSamples { */ public final class ApplicationsStartRollbackSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationActionStartRollback_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationActionStartRollback_example.json */ /** * Sample code: Start an application upgrade rollback. @@ -601,6 +668,7 @@ public final class ApplicationsStartRollbackSamples { ```java import com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationResource; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationUpdateParametersProperties; import java.util.HashMap; import java.util.Map; @@ -609,7 +677,7 @@ import java.util.Map; */ public final class ApplicationsUpdateSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationPatchOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationPatchOperation_example.json */ /** * Sample code: Patch an application. @@ -621,7 +689,78 @@ public final class ApplicationsUpdateSamples { ApplicationResource resource = manager.applications() .getWithResponse("resRg", "myCluster", "myApp", com.azure.core.util.Context.NONE) .getValue(); - resource.update().withTags(mapOf("a", "b")).apply(); + resource.update() + .withTags(mapOf("a", "b")) + .withProperties(new ApplicationUpdateParametersProperties() + .withParameters(mapOf("param1", "value1", "param2", "value2"))) + .apply(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### Applications_UpdateUpgrade + +```java +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeApplicationHealthPolicy; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeFailureAction; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeRollingUpgradeMode; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeRollingUpgradeUpdateMonitoringPolicy; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeServiceTypeHealthPolicy; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeUpdateApplicationUpgradeParameters; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeUpgradeKind; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for Applications UpdateUpgrade. + */ +public final class ApplicationsUpdateUpgradeSamples { + /* + * x-ms-original-file: 2025-10-01-preview/ApplicationActionUpdateUpgrade_example.json + */ + /** + * Sample code: Update an application upgrade. + * + * @param manager Entry point to ServiceFabricManagedClustersManager. + */ + public static void updateAnApplicationUpgrade( + com.azure.resourcemanager.servicefabricmanagedclusters.ServiceFabricManagedClustersManager manager) { + manager.applications() + .updateUpgrade("resRg", "myCluster", "myApp", + new RuntimeUpdateApplicationUpgradeParameters().withName("fabric:/Voting") + .withUpgradeKind(RuntimeUpgradeKind.ROLLING) + .withApplicationHealthPolicy(new RuntimeApplicationHealthPolicy().withConsiderWarningAsError(true) + .withMaxPercentUnhealthyDeployedApplications(10) + .withDefaultServiceTypeHealthPolicy( + new RuntimeServiceTypeHealthPolicy().withMaxPercentUnhealthyServices(12) + .withMaxPercentUnhealthyPartitionsPerService(10) + .withMaxPercentUnhealthyReplicasPerPartition(11)) + .withServiceTypeHealthPolicyMap(mapOf("VotingWeb", + new RuntimeServiceTypeHealthPolicy().withMaxPercentUnhealthyServices(15) + .withMaxPercentUnhealthyPartitionsPerService(13) + .withMaxPercentUnhealthyReplicasPerPartition(14)))) + .withUpdateDescription(new RuntimeRollingUpgradeUpdateMonitoringPolicy() + .withRollingUpgradeMode(RuntimeRollingUpgradeMode.MONITORED) + .withForceRestart(true) + .withFailureAction(RuntimeFailureAction.MANUAL) + .withHealthCheckWaitDurationInMilliseconds("PT0H0M10S") + .withHealthCheckStableDurationInMilliseconds("PT1H0M0S") + .withHealthCheckRetryTimeoutInMilliseconds("PT0H15M0S") + .withUpgradeTimeoutInMilliseconds("PT2H0M0S") + .withUpgradeDomainTimeoutInMilliseconds("PT2H0M0S")), + com.azure.core.util.Context.NONE); } // Use "Map.of" if available @@ -646,7 +785,7 @@ public final class ApplicationsUpdateSamples { */ public final class ManagedApplyMaintenanceWindowPostSamples { /* - * x-ms-original-file: 2025-06-01-preview/ManagedApplyMaintenanceWindowPost_example.json + * x-ms-original-file: 2025-10-01-preview/ManagedApplyMaintenanceWindowPost_example.json */ /** * Sample code: Apply Maintenance Window Status. @@ -669,7 +808,7 @@ public final class ManagedApplyMaintenanceWindowPostSamples { */ public final class ManagedAzResiliencyStatusesGetSamples { /* - * x-ms-original-file: 2025-06-01-preview/managedAzResiliencyStatusGet_example.json + * x-ms-original-file: 2025-10-01-preview/managedAzResiliencyStatusGet_example.json */ /** * Sample code: Az Resiliency status of Base Resources. @@ -692,7 +831,7 @@ public final class ManagedAzResiliencyStatusesGetSamples { */ public final class ManagedClusterVersionGetSamples { /* - * x-ms-original-file: 2025-06-01-preview/ManagedClusterVersionGet_example.json + * x-ms-original-file: 2025-10-01-preview/ManagedClusterVersionGet_example.json */ /** * Sample code: Get cluster version. @@ -716,7 +855,7 @@ import com.azure.resourcemanager.servicefabricmanagedclusters.models.ManagedClus */ public final class ManagedClusterVersionGetByEnvironmentSamples { /* - * x-ms-original-file: 2025-06-01-preview/ManagedClusterVersionGetByEnvironment_example.json + * x-ms-original-file: 2025-10-01-preview/ManagedClusterVersionGetByEnvironment_example.json */ /** * Sample code: Get cluster version by environment. @@ -740,7 +879,7 @@ public final class ManagedClusterVersionGetByEnvironmentSamples { */ public final class ManagedClusterVersionListSamples { /* - * x-ms-original-file: 2025-06-01-preview/ManagedClusterVersionList_example.json + * x-ms-original-file: 2025-10-01-preview/ManagedClusterVersionList_example.json */ /** * Sample code: List cluster versions. @@ -764,7 +903,7 @@ import com.azure.resourcemanager.servicefabricmanagedclusters.models.ManagedClus */ public final class ManagedClusterVersionListByEnvironmentSamples { /* - * x-ms-original-file: 2025-06-01-preview/ManagedClusterVersionListByEnvironment.json + * x-ms-original-file: 2025-10-01-preview/ManagedClusterVersionListByEnvironment.json */ /** * Sample code: List cluster versions by environment. @@ -818,7 +957,7 @@ import java.util.Map; */ public final class ManagedClustersCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01-preview/ManagedClusterPutOperation_example_max.json + * x-ms-original-file: 2025-10-01-preview/ManagedClusterPutOperation_example_max.json */ /** * Sample code: Put a cluster with maximum parameters. @@ -927,7 +1066,7 @@ public final class ManagedClustersCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-06-01-preview/ManagedClusterPutOperation_example_min.json + * x-ms-original-file: 2025-10-01-preview/ManagedClusterPutOperation_example_min.json */ /** * Sample code: Put a cluster with minimum parameters. @@ -974,7 +1113,7 @@ public final class ManagedClustersCreateOrUpdateSamples { */ public final class ManagedClustersDeleteSamples { /* - * x-ms-original-file: 2025-06-01-preview/ManagedClusterDeleteOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ManagedClusterDeleteOperation_example.json */ /** * Sample code: Delete a cluster. @@ -996,7 +1135,7 @@ public final class ManagedClustersDeleteSamples { */ public final class ManagedClustersGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01-preview/ManagedClusterGetOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ManagedClusterGetOperation_example.json */ /** * Sample code: Get a cluster. @@ -1021,7 +1160,7 @@ import com.azure.resourcemanager.servicefabricmanagedclusters.models.FaultSimula */ public final class ManagedClustersGetFaultSimulationSamples { /* - * x-ms-original-file: 2025-06-01-preview/faultSimulation/ManagedClusterGetFaultSimulation_example.json + * x-ms-original-file: 2025-10-01-preview/faultSimulation/ManagedClusterGetFaultSimulation_example.json */ /** * Sample code: Get Managed Cluster Fault Simulation. @@ -1046,7 +1185,7 @@ public final class ManagedClustersGetFaultSimulationSamples { */ public final class ManagedClustersListSamples { /* - * x-ms-original-file: 2025-06-01-preview/ManagedClusterListBySubscriptionOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ManagedClusterListBySubscriptionOperation_example.json */ /** * Sample code: List managed clusters. @@ -1068,7 +1207,7 @@ public final class ManagedClustersListSamples { */ public final class ManagedClustersListByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01-preview/ManagedClusterListByResourceGroupOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ManagedClusterListByResourceGroupOperation_example.json */ /** * Sample code: List cluster by resource group. @@ -1090,7 +1229,7 @@ public final class ManagedClustersListByResourceGroupSamples { */ public final class ManagedClustersListFaultSimulationSamples { /* - * x-ms-original-file: 2025-06-01-preview/faultSimulation/ManagedClusterListFaultSimulation_example.json + * x-ms-original-file: 2025-10-01-preview/faultSimulation/ManagedClusterListFaultSimulation_example.json */ /** * Sample code: List Managed Cluster Fault Simulation. @@ -1116,7 +1255,7 @@ import java.util.Arrays; */ public final class ManagedClustersStartFaultSimulationSamples { /* - * x-ms-original-file: 2025-06-01-preview/faultSimulation/ManagedClusterStartFaultSimulation_example.json + * x-ms-original-file: 2025-10-01-preview/faultSimulation/ManagedClusterStartFaultSimulation_example.json */ /** * Sample code: Start Managed Cluster Fault Simulation. @@ -1142,7 +1281,7 @@ import com.azure.resourcemanager.servicefabricmanagedclusters.models.FaultSimula */ public final class ManagedClustersStopFaultSimulationSamples { /* - * x-ms-original-file: 2025-06-01-preview/faultSimulation/ManagedClusterStopFaultSimulation_example.json + * x-ms-original-file: 2025-10-01-preview/faultSimulation/ManagedClusterStopFaultSimulation_example.json */ /** * Sample code: Stop Managed Cluster Fault Simulation. @@ -1171,7 +1310,7 @@ import java.util.Map; */ public final class ManagedClustersUpdateSamples { /* - * x-ms-original-file: 2025-06-01-preview/ManagedClusterPatchOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ManagedClusterPatchOperation_example.json */ /** * Sample code: Patch a managed cluster. @@ -1208,7 +1347,7 @@ public final class ManagedClustersUpdateSamples { */ public final class ManagedMaintenanceWindowStatusesGetSamples { /* - * x-ms-original-file: 2025-06-01-preview/ManagedMaintenanceWindowStatusGet_example.json + * x-ms-original-file: 2025-10-01-preview/ManagedMaintenanceWindowStatusGet_example.json */ /** * Sample code: Get Maintenance Window Status. @@ -1231,7 +1370,7 @@ public final class ManagedMaintenanceWindowStatusesGetSamples { */ public final class ManagedUnsupportedVMSizesGetSamples { /* - * x-ms-original-file: 2025-06-01-preview/managedUnsupportedVMSizesGet_example.json + * x-ms-original-file: 2025-10-01-preview/managedUnsupportedVMSizesGet_example.json */ /** * Sample code: Get unsupported vm sizes. @@ -1254,7 +1393,7 @@ public final class ManagedUnsupportedVMSizesGetSamples { */ public final class ManagedUnsupportedVMSizesListSamples { /* - * x-ms-original-file: 2025-06-01-preview/managedUnsupportedVMSizesList_example.json + * x-ms-original-file: 2025-10-01-preview/managedUnsupportedVMSizesList_example.json */ /** * Sample code: List unsupported vm sizes. @@ -1276,7 +1415,7 @@ public final class ManagedUnsupportedVMSizesListSamples { */ public final class NodeTypeSkusListSamples { /* - * x-ms-original-file: 2025-06-01-preview/NodeTypeSkusListOperation_example.json + * x-ms-original-file: 2025-10-01-preview/NodeTypeSkusListOperation_example.json */ /** * Sample code: List a node type SKUs. @@ -1326,7 +1465,7 @@ import java.util.Map; */ public final class NodeTypesCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01-preview/NodeTypePutOperationStateless_example.json + * x-ms-original-file: 2025-10-01-preview/NodeTypePutOperationStateless_example.json */ /** * Sample code: Put an stateless node type with temporary disk for service fabric. @@ -1361,7 +1500,7 @@ public final class NodeTypesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-06-01-preview/NodeTypePutOperation_example_max.json + * x-ms-original-file: 2025-10-01-preview/NodeTypePutOperation_example_max.json */ /** * Sample code: Put a node type with maximum parameters. @@ -1477,7 +1616,7 @@ public final class NodeTypesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-06-01-preview/NodeTypePutOperationAutoScale_example.json + * x-ms-original-file: 2025-10-01-preview/NodeTypePutOperationAutoScale_example.json */ /** * Sample code: Put a node type with auto-scale parameters. @@ -1523,7 +1662,7 @@ public final class NodeTypesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-06-01-preview/NodeTypePutOperation_example_min.json + * x-ms-original-file: 2025-10-01-preview/NodeTypePutOperation_example_min.json */ /** * Sample code: Put a node type with minimum parameters. @@ -1547,7 +1686,7 @@ public final class NodeTypesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-06-01-preview/NodeTypePutOperationDedicatedHost_example.json + * x-ms-original-file: 2025-10-01-preview/NodeTypePutOperationDedicatedHost_example.json */ /** * Sample code: Put node type with dedicated hosts. @@ -1577,7 +1716,7 @@ public final class NodeTypesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-06-01-preview/NodeTypePutOperationVmImagePlan_example.json + * x-ms-original-file: 2025-10-01-preview/NodeTypePutOperationVmImagePlan_example.json */ /** * Sample code: Put node type with vm image plan. @@ -1604,7 +1743,7 @@ public final class NodeTypesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-06-01-preview/NodeTypePutOperationCustomSharedGalleriesImage_example.json + * x-ms-original-file: 2025-10-01-preview/NodeTypePutOperationCustomSharedGalleriesImage_example.json */ /** * Sample code: Put node type with shared galleries custom vm image. @@ -1626,7 +1765,7 @@ public final class NodeTypesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-06-01-preview/NodeTypePutOperationCustomImage_example.json + * x-ms-original-file: 2025-10-01-preview/NodeTypePutOperationCustomImage_example.json */ /** * Sample code: Put node type with custom vm image. @@ -1672,7 +1811,7 @@ import java.util.Arrays; */ public final class NodeTypesDeallocateSamples { /* - * x-ms-original-file: 2025-06-01-preview/DeallocateNodes_example.json + * x-ms-original-file: 2025-10-01-preview/DeallocateNodes_example.json */ /** * Sample code: Deallocate nodes. @@ -1697,7 +1836,7 @@ public final class NodeTypesDeallocateSamples { */ public final class NodeTypesDeleteSamples { /* - * x-ms-original-file: 2025-06-01-preview/NodeTypeDeleteOperation_example.json + * x-ms-original-file: 2025-10-01-preview/NodeTypeDeleteOperation_example.json */ /** * Sample code: Delete a node type. @@ -1722,7 +1861,7 @@ import java.util.Arrays; */ public final class NodeTypesDeleteNodeSamples { /* - * x-ms-original-file: 2025-06-01-preview/DeleteNodes_example.json + * x-ms-original-file: 2025-10-01-preview/DeleteNodes_example.json */ /** * Sample code: Delete nodes. @@ -1747,7 +1886,7 @@ public final class NodeTypesDeleteNodeSamples { */ public final class NodeTypesGetSamples { /* - * x-ms-original-file: 2025-06-01-preview/NodeTypeGetOperation_example.json + * x-ms-original-file: 2025-10-01-preview/NodeTypeGetOperation_example.json */ /** * Sample code: Get a node type. @@ -1771,7 +1910,7 @@ import com.azure.resourcemanager.servicefabricmanagedclusters.models.FaultSimula */ public final class NodeTypesGetFaultSimulationSamples { /* - * x-ms-original-file: 2025-06-01-preview/faultSimulation/NodeTypeGetFaultSimulation_example.json + * x-ms-original-file: 2025-10-01-preview/faultSimulation/NodeTypeGetFaultSimulation_example.json */ /** * Sample code: Get Node Type Fault Simulation. @@ -1796,7 +1935,7 @@ public final class NodeTypesGetFaultSimulationSamples { */ public final class NodeTypesListByManagedClustersSamples { /* - * x-ms-original-file: 2025-06-01-preview/NodeTypeListOperation_example.json + * x-ms-original-file: 2025-10-01-preview/NodeTypeListOperation_example.json */ /** * Sample code: List node type of the specified managed cluster. @@ -1818,7 +1957,7 @@ public final class NodeTypesListByManagedClustersSamples { */ public final class NodeTypesListFaultSimulationSamples { /* - * x-ms-original-file: 2025-06-01-preview/faultSimulation/NodeTypeListFaultSimulation_example.json + * x-ms-original-file: 2025-10-01-preview/faultSimulation/NodeTypeListFaultSimulation_example.json */ /** * Sample code: List Node Type Fault Simulation. @@ -1844,7 +1983,7 @@ import java.util.Arrays; */ public final class NodeTypesRedeploySamples { /* - * x-ms-original-file: 2025-06-01-preview/RedeployNodes_UD_example.json + * x-ms-original-file: 2025-10-01-preview/RedeployNodes_UD_example.json */ /** * Sample code: Redeploy all nodes by upgrade domain. @@ -1860,7 +1999,7 @@ public final class NodeTypesRedeploySamples { } /* - * x-ms-original-file: 2025-06-01-preview/RedeployNodes_example.json + * x-ms-original-file: 2025-10-01-preview/RedeployNodes_example.json */ /** * Sample code: Redeploy nodes. @@ -1889,7 +2028,7 @@ import java.util.Arrays; */ public final class NodeTypesReimageSamples { /* - * x-ms-original-file: 2025-06-01-preview/ReimageNodes_example.json + * x-ms-original-file: 2025-10-01-preview/ReimageNodes_example.json */ /** * Sample code: Reimage nodes. @@ -1905,7 +2044,7 @@ public final class NodeTypesReimageSamples { } /* - * x-ms-original-file: 2025-06-01-preview/ReimageNodes_UD_example.json + * x-ms-original-file: 2025-10-01-preview/ReimageNodes_UD_example.json */ /** * Sample code: Reimage all nodes by upgrade domain. @@ -1933,7 +2072,7 @@ import java.util.Arrays; */ public final class NodeTypesRestartSamples { /* - * x-ms-original-file: 2025-06-01-preview/RestartNodes_example.json + * x-ms-original-file: 2025-10-01-preview/RestartNodes_example.json */ /** * Sample code: Restart nodes. @@ -1961,7 +2100,7 @@ import java.util.Arrays; */ public final class NodeTypesStartSamples { /* - * x-ms-original-file: 2025-06-01-preview/StartNodes_example.json + * x-ms-original-file: 2025-10-01-preview/StartNodes_example.json */ /** * Sample code: Start nodes. @@ -1989,7 +2128,7 @@ import java.util.Arrays; */ public final class NodeTypesStartFaultSimulationSamples { /* - * x-ms-original-file: 2025-06-01-preview/faultSimulation/NodeTypeStartFaultSimulation_example.json + * x-ms-original-file: 2025-10-01-preview/faultSimulation/NodeTypeStartFaultSimulation_example.json */ /** * Sample code: Start Node Type Fault Simulation. @@ -2015,7 +2154,7 @@ import com.azure.resourcemanager.servicefabricmanagedclusters.models.FaultSimula */ public final class NodeTypesStopFaultSimulationSamples { /* - * x-ms-original-file: 2025-06-01-preview/faultSimulation/NodeTypeStopFaultSimulation_example.json + * x-ms-original-file: 2025-10-01-preview/faultSimulation/NodeTypeStopFaultSimulation_example.json */ /** * Sample code: Stop Node Type Fault Simulation. @@ -2045,7 +2184,7 @@ import java.util.Map; */ public final class NodeTypesUpdateSamples { /* - * x-ms-original-file: 2025-06-01-preview/NodeTypePatchOperation_example.json + * x-ms-original-file: 2025-10-01-preview/NodeTypePatchOperation_example.json */ /** * Sample code: Patch a node type. @@ -2061,7 +2200,7 @@ public final class NodeTypesUpdateSamples { } /* - * x-ms-original-file: 2025-06-01-preview/NodeTypePatchOperationAutoScale_example.json + * x-ms-original-file: 2025-10-01-preview/NodeTypePatchOperationAutoScale_example.json */ /** * Sample code: Patch a node type while auto-scaling. @@ -2101,7 +2240,7 @@ public final class NodeTypesUpdateSamples { */ public final class OperationsListSamples { /* - * x-ms-original-file: 2025-06-01-preview/OperationsList_example.json + * x-ms-original-file: 2025-10-01-preview/OperationsList_example.json */ /** * Sample code: List the operations for the provider. @@ -2139,7 +2278,7 @@ import java.util.Map; */ public final class ServicesCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01-preview/ServicePutOperation_example_min.json + * x-ms-original-file: 2025-10-01-preview/ServicePutOperation_example_min.json */ /** * Sample code: Put a service with minimum parameters. @@ -2159,7 +2298,7 @@ public final class ServicesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-06-01-preview/ServicePutOperation_example_max.json + * x-ms-original-file: 2025-10-01-preview/ServicePutOperation_example_max.json */ /** * Sample code: Put a service with maximum parameters. @@ -2223,7 +2362,7 @@ public final class ServicesCreateOrUpdateSamples { */ public final class ServicesDeleteSamples { /* - * x-ms-original-file: 2025-06-01-preview/ServiceDeleteOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ServiceDeleteOperation_example.json */ /** * Sample code: Delete a service. @@ -2245,7 +2384,7 @@ public final class ServicesDeleteSamples { */ public final class ServicesGetSamples { /* - * x-ms-original-file: 2025-06-01-preview/ServiceGetOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ServiceGetOperation_example.json */ /** * Sample code: Get a service. @@ -2268,7 +2407,7 @@ public final class ServicesGetSamples { */ public final class ServicesListByApplicationsSamples { /* - * x-ms-original-file: 2025-06-01-preview/ServiceListOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ServiceListOperation_example.json */ /** * Sample code: Get a list of service resources. @@ -2282,6 +2421,39 @@ public final class ServicesListByApplicationsSamples { } ``` +### Services_RestartReplica + +```java +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RestartKind; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RestartReplicaRequest; +import java.util.Arrays; + +/** + * Samples for Services RestartReplica. + */ +public final class ServicesRestartReplicaSamples { + /* + * x-ms-original-file: 2025-10-01-preview/ServiceActionRestartReplica_example.json + */ + /** + * Sample code: Restart replicas. + * + * @param manager Entry point to ServiceFabricManagedClustersManager. + */ + public static void restartReplicas( + com.azure.resourcemanager.servicefabricmanagedclusters.ServiceFabricManagedClustersManager manager) { + manager.services() + .restartReplica("resRg", "myCluster", "myApp", "myService", + new RestartReplicaRequest().withPartitionId("00000000-0000-0000-0000-000000000000") + .withReplicaIds(Arrays.asList(123456789012345680L)) + .withRestartKind(RestartKind.SIMULTANEOUS) + .withForceRestart(false) + .withTimeout(60L), + com.azure.core.util.Context.NONE); + } +} +``` + ### Services_Update ```java @@ -2294,7 +2466,7 @@ import java.util.Map; */ public final class ServicesUpdateSamples { /* - * x-ms-original-file: 2025-06-01-preview/ServicePatchOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ServicePatchOperation_example.json */ /** * Sample code: Patch a service. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/pom.xml b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/pom.xml index 1026c71d11fb..bf3e7aa4a293 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/pom.xml +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/pom.xml @@ -18,7 +18,7 @@ jar Microsoft Azure SDK for Service Fabric Managed Clusters Management - This package contains Microsoft Azure SDK for Service Fabric Managed Clusters Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Service Fabric Managed Clusters Management Client. Package api-version 2025-06-01-preview. + This package contains Microsoft Azure SDK for Service Fabric Managed Clusters Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Service Fabric Managed Clusters Management Client. Package api-version 2025-10-01-preview. https://github.com/Azure/azure-sdk-for-java diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ApplicationsClient.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ApplicationsClient.java index c02bb0eceb0d..782ef62f3709 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ApplicationsClient.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ApplicationsClient.java @@ -12,8 +12,11 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ApplicationResourceInner; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationFetchHealthRequest; import com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationUpdateParameters; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RestartDeployedCodePackageRequest; import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeResumeApplicationUpgradeParameters; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeUpdateApplicationUpgradeParameters; /** * An instance of this class provides access to all the operations defined in ApplicationsClient. @@ -121,7 +124,23 @@ ApplicationResourceInner createOrUpdate(String resourceGroupName, String cluster ApplicationResourceInner parameters, Context context); /** - * Updates the tags of an application resource of a given managed cluster. + * Updates an application resource of a given managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The application resource updated tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the application resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ApplicationResourceInner> beginUpdate(String resourceGroupName, + String clusterName, String applicationName, ApplicationUpdateParameters parameters); + + /** + * Updates an application resource of a given managed cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. @@ -131,14 +150,14 @@ ApplicationResourceInner createOrUpdate(String resourceGroupName, String 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 application resource along with {@link Response}. + * @return the {@link SyncPoller} for polling of the application resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse(String resourceGroupName, String clusterName, - String applicationName, ApplicationUpdateParameters parameters, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ApplicationResourceInner> beginUpdate(String resourceGroupName, + String clusterName, String applicationName, ApplicationUpdateParameters parameters, Context context); /** - * Updates the tags of an application resource of a given managed cluster. + * Updates an application resource of a given managed cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. @@ -153,6 +172,23 @@ Response updateWithResponse(String resourceGroupName, ApplicationResourceInner update(String resourceGroupName, String clusterName, String applicationName, ApplicationUpdateParameters parameters); + /** + * Updates an application resource of a given managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The application resource updated tags. + * @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 application resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ApplicationResourceInner update(String resourceGroupName, String clusterName, String applicationName, + ApplicationUpdateParameters parameters, Context context); + /** * Delete a Service Fabric managed application resource with the specified name. * @@ -433,4 +469,204 @@ SyncPoller, Void> beginStartRollback(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.SINGLE) void startRollback(String resourceGroupName, String clusterName, String applicationName, Context context); + + /** + * Send a request to update the current application upgrade. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for updating an application upgrade. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.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> beginUpdateUpgrade(String resourceGroupName, String clusterName, + String applicationName, RuntimeUpdateApplicationUpgradeParameters parameters); + + /** + * Send a request to update the current application upgrade. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for updating an application upgrade. + * @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> beginUpdateUpgrade(String resourceGroupName, String clusterName, + String applicationName, RuntimeUpdateApplicationUpgradeParameters parameters, Context context); + + /** + * Send a request to update the current application upgrade. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for updating an application upgrade. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.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 updateUpgrade(String resourceGroupName, String clusterName, String applicationName, + RuntimeUpdateApplicationUpgradeParameters parameters); + + /** + * Send a request to update the current application upgrade. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for updating an application upgrade. + * @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 updateUpgrade(String resourceGroupName, String clusterName, String applicationName, + RuntimeUpdateApplicationUpgradeParameters parameters, Context context); + + /** + * Get the status of the deployed application health. It will query the cluster to find the health of the deployed + * application. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for fetching the health of a deployed application. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the status of the deployed application health. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginFetchHealth(String resourceGroupName, String clusterName, + String applicationName, ApplicationFetchHealthRequest parameters); + + /** + * Get the status of the deployed application health. It will query the cluster to find the health of the deployed + * application. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for fetching the health of a deployed application. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the status of the deployed application health. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginFetchHealth(String resourceGroupName, String clusterName, + String applicationName, ApplicationFetchHealthRequest parameters, Context context); + + /** + * Get the status of the deployed application health. It will query the cluster to find the health of the deployed + * application. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for fetching the health of a deployed application. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.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 fetchHealth(String resourceGroupName, String clusterName, String applicationName, + ApplicationFetchHealthRequest parameters); + + /** + * Get the status of the deployed application health. It will query the cluster to find the health of the deployed + * application. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for fetching the health of a deployed application. + * @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 fetchHealth(String resourceGroupName, String clusterName, String applicationName, + ApplicationFetchHealthRequest parameters, Context context); + + /** + * Restart a code package instance of a service replica or instance. This is a potentially destabilizing operation + * that should be used with immense care. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for restarting a deployed code package. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.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> beginRestartDeployedCodePackage(String resourceGroupName, String clusterName, + String applicationName, RestartDeployedCodePackageRequest parameters); + + /** + * Restart a code package instance of a service replica or instance. This is a potentially destabilizing operation + * that should be used with immense care. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for restarting a deployed code package. + * @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> beginRestartDeployedCodePackage(String resourceGroupName, String clusterName, + String applicationName, RestartDeployedCodePackageRequest parameters, Context context); + + /** + * Restart a code package instance of a service replica or instance. This is a potentially destabilizing operation + * that should be used with immense care. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for restarting a deployed code package. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.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 restartDeployedCodePackage(String resourceGroupName, String clusterName, String applicationName, + RestartDeployedCodePackageRequest parameters); + + /** + * Restart a code package instance of a service replica or instance. This is a potentially destabilizing operation + * that should be used with immense care. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for restarting a deployed code package. + * @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 restartDeployedCodePackage(String resourceGroupName, String clusterName, String applicationName, + RestartDeployedCodePackageRequest parameters, Context context); } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ManagedClustersClient.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ManagedClustersClient.java index f1f196c6f690..064c432bc32a 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ManagedClustersClient.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ManagedClustersClient.java @@ -114,6 +114,21 @@ SyncPoller, ManagedClusterInner> beginCreateOrUp ManagedClusterInner createOrUpdate(String resourceGroupName, String clusterName, ManagedClusterInner parameters, Context context); + /** + * Update the tags of of a Service Fabric managed cluster resource with the specified name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param parameters The managed cluster resource updated tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the managed cluster resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ManagedClusterInner> beginUpdate(String resourceGroupName, + String clusterName, ManagedClusterUpdateParameters parameters); + /** * Update the tags of of a Service Fabric managed cluster resource with the specified name. * @@ -124,11 +139,11 @@ ManagedClusterInner createOrUpdate(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 managed cluster resource along with {@link Response}. + * @return the {@link SyncPoller} for polling of the managed cluster resource. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse(String resourceGroupName, String clusterName, - ManagedClusterUpdateParameters parameters, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ManagedClusterInner> beginUpdate(String resourceGroupName, + String clusterName, ManagedClusterUpdateParameters parameters, Context context); /** * Update the tags of of a Service Fabric managed cluster resource with the specified name. @@ -144,6 +159,22 @@ Response updateWithResponse(String resourceGroupName, Strin @ServiceMethod(returns = ReturnType.SINGLE) ManagedClusterInner update(String resourceGroupName, String clusterName, ManagedClusterUpdateParameters parameters); + /** + * Update the tags of of a Service Fabric managed cluster resource with the specified name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param parameters The managed cluster resource updated tags. + * @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 managed cluster resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ManagedClusterInner update(String resourceGroupName, String clusterName, ManagedClusterUpdateParameters parameters, + Context context); + /** * Delete a Service Fabric managed cluster resource with the specified name. * diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/NodeTypesClient.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/NodeTypesClient.java index 4f930568b9db..c2e1ca8b8dff 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/NodeTypesClient.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/NodeTypesClient.java @@ -121,7 +121,7 @@ NodeTypeInner createOrUpdate(String resourceGroupName, String clusterName, Strin NodeTypeInner parameters, Context context); /** - * Update the configuration of a node type of a given managed cluster, only updating tags. + * Update the configuration of a node type of a given managed cluster, only updating tags or capacity. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. @@ -138,7 +138,7 @@ SyncPoller, NodeTypeInner> beginUpdate(String resource String nodeTypeName, NodeTypeUpdateParameters parameters); /** - * Update the configuration of a node type of a given managed cluster, only updating tags. + * Update the configuration of a node type of a given managed cluster, only updating tags or capacity. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. @@ -156,7 +156,7 @@ SyncPoller, NodeTypeInner> beginUpdate(String resource String nodeTypeName, NodeTypeUpdateParameters parameters, Context context); /** - * Update the configuration of a node type of a given managed cluster, only updating tags. + * Update the configuration of a node type of a given managed cluster, only updating tags or capacity. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. @@ -172,7 +172,7 @@ NodeTypeInner update(String resourceGroupName, String clusterName, String nodeTy NodeTypeUpdateParameters parameters); /** - * Update the configuration of a node type of a given managed cluster, only updating tags. + * Update the configuration of a node type of a given managed cluster, only updating tags or capacity. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ServicesClient.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ServicesClient.java index fc0e429a1189..5a341183af9f 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ServicesClient.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ServicesClient.java @@ -12,6 +12,7 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ServiceResourceInner; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RestartReplicaRequest; import com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceUpdateParameters; /** @@ -257,4 +258,72 @@ PagedIterable listByApplications(String resourceGroupName, @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByApplications(String resourceGroupName, String clusterName, String applicationName, Context context); + + /** + * A long-running resource action. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param serviceName The name of the service resource in the format of {applicationName}~{serviceName}. + * @param parameters The parameters for restarting replicas. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.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> beginRestartReplica(String resourceGroupName, String clusterName, + String applicationName, String serviceName, RestartReplicaRequest parameters); + + /** + * A long-running resource action. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param serviceName The name of the service resource in the format of {applicationName}~{serviceName}. + * @param parameters The parameters for restarting replicas. + * @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> beginRestartReplica(String resourceGroupName, String clusterName, + String applicationName, String serviceName, RestartReplicaRequest parameters, Context context); + + /** + * A long-running resource action. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param serviceName The name of the service resource in the format of {applicationName}~{serviceName}. + * @param parameters The parameters for restarting replicas. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.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 restartReplica(String resourceGroupName, String clusterName, String applicationName, String serviceName, + RestartReplicaRequest parameters); + + /** + * A long-running resource action. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param serviceName The name of the service resource in the format of {applicationName}~{serviceName}. + * @param parameters The parameters for restarting replicas. + * @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 restartReplica(String resourceGroupName, String clusterName, String applicationName, String serviceName, + RestartReplicaRequest parameters, Context context); } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationResourceImpl.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationResourceImpl.java index 1851337b8069..eb9ee14edfe0 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationResourceImpl.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationResourceImpl.java @@ -8,12 +8,16 @@ import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ApplicationResourceInner; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationFetchHealthRequest; import com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationResource; import com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationUpdateParameters; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationUpdateParametersProperties; import com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationUpgradePolicy; import com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationUserAssignedIdentity; import com.azure.resourcemanager.servicefabricmanagedclusters.models.ManagedIdentity; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RestartDeployedCodePackageRequest; import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeResumeApplicationUpgradeParameters; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeUpdateApplicationUpgradeParameters; import java.util.Collections; import java.util.List; import java.util.Map; @@ -150,16 +154,14 @@ public ApplicationResourceImpl update() { public ApplicationResource apply() { this.innerObject = serviceManager.serviceClient() .getApplications() - .updateWithResponse(resourceGroupName, clusterName, applicationName, updateParameters, Context.NONE) - .getValue(); + .update(resourceGroupName, clusterName, applicationName, updateParameters, Context.NONE); return this; } public ApplicationResource apply(Context context) { this.innerObject = serviceManager.serviceClient() .getApplications() - .updateWithResponse(resourceGroupName, clusterName, applicationName, updateParameters, context) - .getValue(); + .update(resourceGroupName, clusterName, applicationName, updateParameters, context); return this; } @@ -213,6 +215,33 @@ public void startRollback(Context context) { serviceManager.applications().startRollback(resourceGroupName, clusterName, applicationName, context); } + public void updateUpgrade(RuntimeUpdateApplicationUpgradeParameters parameters) { + serviceManager.applications().updateUpgrade(resourceGroupName, clusterName, applicationName, parameters); + } + + public void updateUpgrade(RuntimeUpdateApplicationUpgradeParameters parameters, Context context) { + serviceManager.applications() + .updateUpgrade(resourceGroupName, clusterName, applicationName, parameters, context); + } + + public void fetchHealth(ApplicationFetchHealthRequest parameters) { + serviceManager.applications().fetchHealth(resourceGroupName, clusterName, applicationName, parameters); + } + + public void fetchHealth(ApplicationFetchHealthRequest parameters, Context context) { + serviceManager.applications().fetchHealth(resourceGroupName, clusterName, applicationName, parameters, context); + } + + public void restartDeployedCodePackage(RestartDeployedCodePackageRequest parameters) { + serviceManager.applications() + .restartDeployedCodePackage(resourceGroupName, clusterName, applicationName, parameters); + } + + public void restartDeployedCodePackage(RestartDeployedCodePackageRequest parameters, Context context) { + serviceManager.applications() + .restartDeployedCodePackage(resourceGroupName, clusterName, applicationName, parameters, context); + } + public ApplicationResourceImpl withRegion(Region location) { this.innerModel().withLocation(location.toString()); return this; @@ -258,6 +287,11 @@ public ApplicationResourceImpl withUpgradePolicy(ApplicationUpgradePolicy upgrad return this; } + public ApplicationResourceImpl withProperties(ApplicationUpdateParametersProperties properties) { + this.updateParameters.withProperties(properties); + return this; + } + private boolean isInCreateMode() { return this.innerModel() == null || this.innerModel().id() == null; } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationsClientImpl.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationsClientImpl.java index 72a689b6d972..edb07d802187 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationsClientImpl.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationsClientImpl.java @@ -37,8 +37,11 @@ import com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient; import com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ApplicationResourceInner; import com.azure.resourcemanager.servicefabricmanagedclusters.implementation.models.ApplicationResourceList; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationFetchHealthRequest; import com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationUpdateParameters; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RestartDeployedCodePackageRequest; import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeResumeApplicationUpgradeParameters; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeUpdateApplicationUpgradeParameters; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -116,9 +119,9 @@ Response createOrUpdateSync(@HostParam("endpoint") String endpoint, Context context); @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}") - @ExpectedResponses({ 200 }) + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update(@HostParam("endpoint") String endpoint, + Mono>> update(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @PathParam("applicationName") String applicationName, @HeaderParam("Content-Type") String contentType, @@ -126,9 +129,9 @@ Mono> update(@HostParam("endpoint") String en Context context); @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}") - @ExpectedResponses({ 200 }) + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("endpoint") String endpoint, + Response updateSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @PathParam("applicationName") String applicationName, @HeaderParam("Content-Type") String contentType, @@ -227,6 +230,66 @@ Response startRollbackSync(@HostParam("endpoint") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @PathParam("applicationName") String applicationName, Context context); + @Headers({ "Accept: application/json;q=0.9" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}/updateUpgrade") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> updateUpgrade(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("applicationName") String applicationName, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") RuntimeUpdateApplicationUpgradeParameters parameters, Context context); + + @Headers({ "Accept: application/json;q=0.9" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}/updateUpgrade") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response updateUpgradeSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("applicationName") String applicationName, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") RuntimeUpdateApplicationUpgradeParameters parameters, Context context); + + @Headers({ "Accept: application/json;q=0.9" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}/fetchHealth") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> fetchHealth(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("applicationName") String applicationName, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") ApplicationFetchHealthRequest parameters, Context context); + + @Headers({ "Accept: application/json;q=0.9" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}/fetchHealth") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response fetchHealthSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("applicationName") String applicationName, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") ApplicationFetchHealthRequest parameters, Context context); + + @Headers({ "Accept: application/json;q=0.9" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}/restartDeployedCodePackage") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> restartDeployedCodePackage(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("applicationName") String applicationName, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") RestartDeployedCodePackageRequest parameters, Context context); + + @Headers({ "Accept: application/json;q=0.9" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}/restartDeployedCodePackage") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response restartDeployedCodePackageSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("applicationName") String applicationName, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") RestartDeployedCodePackageRequest parameters, Context context); + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -518,7 +581,7 @@ public ApplicationResourceInner createOrUpdate(String resourceGroupName, String } /** - * Updates the tags of an application resource of a given managed cluster. + * Updates an application resource of a given managed cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. @@ -530,8 +593,8 @@ public ApplicationResourceInner createOrUpdate(String resourceGroupName, String * @return the application resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync(String resourceGroupName, - String clusterName, String applicationName, ApplicationUpdateParameters parameters) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, + String applicationName, ApplicationUpdateParameters parameters) { final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -542,7 +605,7 @@ private Mono> updateWithResponseAsync(String } /** - * Updates the tags of an application resource of a given managed cluster. + * Updates an application resource of a given managed cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. @@ -551,17 +614,20 @@ private Mono> updateWithResponseAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the application resource on successful completion of {@link Mono}. + * @return the application resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String clusterName, + private Response updateWithResponse(String resourceGroupName, String clusterName, String applicationName, ApplicationUpdateParameters parameters) { - return updateWithResponseAsync(resourceGroupName, clusterName, applicationName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, applicationName, contentType, accept, + parameters, Context.NONE); } /** - * Updates the tags of an application resource of a given managed cluster. + * Updates an application resource of a given managed cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. @@ -574,7 +640,7 @@ private Mono updateAsync(String resourceGroupName, Str * @return the application resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse(String resourceGroupName, String clusterName, + private Response updateWithResponse(String resourceGroupName, String clusterName, String applicationName, ApplicationUpdateParameters parameters, Context context) { final String contentType = "application/json"; final String accept = "application/json"; @@ -584,7 +650,91 @@ public Response updateWithResponse(String resourceGrou } /** - * Updates the tags of an application resource of a given managed cluster. + * Updates an application resource of a given managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The application resource updated tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the application resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ApplicationResourceInner> beginUpdateAsync( + String resourceGroupName, String clusterName, String applicationName, ApplicationUpdateParameters parameters) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, clusterName, applicationName, parameters); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ApplicationResourceInner.class, ApplicationResourceInner.class, + this.client.getContext()); + } + + /** + * Updates an application resource of a given managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The application resource updated tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the application resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ApplicationResourceInner> beginUpdate( + String resourceGroupName, String clusterName, String applicationName, ApplicationUpdateParameters parameters) { + Response response = updateWithResponse(resourceGroupName, clusterName, applicationName, parameters); + return this.client.getLroResult(response, + ApplicationResourceInner.class, ApplicationResourceInner.class, Context.NONE); + } + + /** + * Updates an application resource of a given managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The application resource updated tags. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the application resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ApplicationResourceInner> beginUpdate( + String resourceGroupName, String clusterName, String applicationName, ApplicationUpdateParameters parameters, + Context context) { + Response response + = updateWithResponse(resourceGroupName, clusterName, applicationName, parameters, context); + return this.client.getLroResult(response, + ApplicationResourceInner.class, ApplicationResourceInner.class, context); + } + + /** + * Updates an application resource of a given managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The application resource updated tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the application resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String clusterName, + String applicationName, ApplicationUpdateParameters parameters) { + return beginUpdateAsync(resourceGroupName, clusterName, applicationName, parameters).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Updates an application resource of a given managed cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. @@ -598,7 +748,26 @@ public Response updateWithResponse(String resourceGrou @ServiceMethod(returns = ReturnType.SINGLE) public ApplicationResourceInner update(String resourceGroupName, String clusterName, String applicationName, ApplicationUpdateParameters parameters) { - return updateWithResponse(resourceGroupName, clusterName, applicationName, parameters, Context.NONE).getValue(); + return beginUpdate(resourceGroupName, clusterName, applicationName, parameters).getFinalResult(); + } + + /** + * Updates an application resource of a given managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The application resource updated tags. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the application resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ApplicationResourceInner update(String resourceGroupName, String clusterName, String applicationName, + ApplicationUpdateParameters parameters, Context context) { + return beginUpdate(resourceGroupName, clusterName, applicationName, parameters, context).getFinalResult(); } /** @@ -1422,6 +1591,572 @@ public void startRollback(String resourceGroupName, String clusterName, String a beginStartRollback(resourceGroupName, clusterName, applicationName, context).getFinalResult(); } + /** + * Send a request to update the current application upgrade. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for updating an application upgrade. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> updateUpgradeWithResponseAsync(String resourceGroupName, + String clusterName, String applicationName, RuntimeUpdateApplicationUpgradeParameters parameters) { + final String contentType = "application/json"; + return FluxUtil + .withContext(context -> service.updateUpgrade(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, applicationName, contentType, + parameters, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Send a request to update the current application upgrade. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for updating an application upgrade. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateUpgradeWithResponse(String resourceGroupName, String clusterName, + String applicationName, RuntimeUpdateApplicationUpgradeParameters parameters) { + final String contentType = "application/json"; + return service.updateUpgradeSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, applicationName, contentType, parameters, + Context.NONE); + } + + /** + * Send a request to update the current application upgrade. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for updating an application upgrade. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateUpgradeWithResponse(String resourceGroupName, String clusterName, + String applicationName, RuntimeUpdateApplicationUpgradeParameters parameters, Context context) { + final String contentType = "application/json"; + return service.updateUpgradeSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, applicationName, contentType, parameters, + context); + } + + /** + * Send a request to update the current application upgrade. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for updating an application upgrade. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginUpdateUpgradeAsync(String resourceGroupName, String clusterName, + String applicationName, RuntimeUpdateApplicationUpgradeParameters parameters) { + Mono>> mono + = updateUpgradeWithResponseAsync(resourceGroupName, clusterName, applicationName, parameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Send a request to update the current application upgrade. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for updating an application upgrade. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginUpdateUpgrade(String resourceGroupName, String clusterName, + String applicationName, RuntimeUpdateApplicationUpgradeParameters parameters) { + Response response + = updateUpgradeWithResponse(resourceGroupName, clusterName, applicationName, parameters); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Send a request to update the current application upgrade. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for updating an application upgrade. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginUpdateUpgrade(String resourceGroupName, String clusterName, + String applicationName, RuntimeUpdateApplicationUpgradeParameters parameters, Context context) { + Response response + = updateUpgradeWithResponse(resourceGroupName, clusterName, applicationName, parameters, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Send a request to update the current application upgrade. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for updating an application upgrade. + * @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 A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateUpgradeAsync(String resourceGroupName, String clusterName, String applicationName, + RuntimeUpdateApplicationUpgradeParameters parameters) { + return beginUpdateUpgradeAsync(resourceGroupName, clusterName, applicationName, parameters).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Send a request to update the current application upgrade. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for updating an application upgrade. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void updateUpgrade(String resourceGroupName, String clusterName, String applicationName, + RuntimeUpdateApplicationUpgradeParameters parameters) { + beginUpdateUpgrade(resourceGroupName, clusterName, applicationName, parameters).getFinalResult(); + } + + /** + * Send a request to update the current application upgrade. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for updating an application upgrade. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void updateUpgrade(String resourceGroupName, String clusterName, String applicationName, + RuntimeUpdateApplicationUpgradeParameters parameters, Context context) { + beginUpdateUpgrade(resourceGroupName, clusterName, applicationName, parameters, context).getFinalResult(); + } + + /** + * Get the status of the deployed application health. It will query the cluster to find the health of the deployed + * application. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for fetching the health of a deployed application. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the status of the deployed application health along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> fetchHealthWithResponseAsync(String resourceGroupName, String clusterName, + String applicationName, ApplicationFetchHealthRequest parameters) { + final String contentType = "application/json"; + return FluxUtil + .withContext(context -> service.fetchHealth(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, applicationName, contentType, + parameters, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the status of the deployed application health. It will query the cluster to find the health of the deployed + * application. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for fetching the health of a deployed application. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the status of the deployed application health along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response fetchHealthWithResponse(String resourceGroupName, String clusterName, + String applicationName, ApplicationFetchHealthRequest parameters) { + final String contentType = "application/json"; + return service.fetchHealthSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, applicationName, contentType, parameters, + Context.NONE); + } + + /** + * Get the status of the deployed application health. It will query the cluster to find the health of the deployed + * application. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for fetching the health of a deployed application. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the status of the deployed application health along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response fetchHealthWithResponse(String resourceGroupName, String clusterName, + String applicationName, ApplicationFetchHealthRequest parameters, Context context) { + final String contentType = "application/json"; + return service.fetchHealthSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, applicationName, contentType, parameters, + context); + } + + /** + * Get the status of the deployed application health. It will query the cluster to find the health of the deployed + * application. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for fetching the health of a deployed application. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the status of the deployed application health. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginFetchHealthAsync(String resourceGroupName, String clusterName, + String applicationName, ApplicationFetchHealthRequest parameters) { + Mono>> mono + = fetchHealthWithResponseAsync(resourceGroupName, clusterName, applicationName, parameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Get the status of the deployed application health. It will query the cluster to find the health of the deployed + * application. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for fetching the health of a deployed application. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the status of the deployed application health. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginFetchHealth(String resourceGroupName, String clusterName, + String applicationName, ApplicationFetchHealthRequest parameters) { + Response response + = fetchHealthWithResponse(resourceGroupName, clusterName, applicationName, parameters); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Get the status of the deployed application health. It will query the cluster to find the health of the deployed + * application. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for fetching the health of a deployed application. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the status of the deployed application health. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginFetchHealth(String resourceGroupName, String clusterName, + String applicationName, ApplicationFetchHealthRequest parameters, Context context) { + Response response + = fetchHealthWithResponse(resourceGroupName, clusterName, applicationName, parameters, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Get the status of the deployed application health. It will query the cluster to find the health of the deployed + * application. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for fetching the health of a deployed application. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the status of the deployed application health on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono fetchHealthAsync(String resourceGroupName, String clusterName, String applicationName, + ApplicationFetchHealthRequest parameters) { + return beginFetchHealthAsync(resourceGroupName, clusterName, applicationName, parameters).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Get the status of the deployed application health. It will query the cluster to find the health of the deployed + * application. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for fetching the health of a deployed application. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void fetchHealth(String resourceGroupName, String clusterName, String applicationName, + ApplicationFetchHealthRequest parameters) { + beginFetchHealth(resourceGroupName, clusterName, applicationName, parameters).getFinalResult(); + } + + /** + * Get the status of the deployed application health. It will query the cluster to find the health of the deployed + * application. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for fetching the health of a deployed application. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void fetchHealth(String resourceGroupName, String clusterName, String applicationName, + ApplicationFetchHealthRequest parameters, Context context) { + beginFetchHealth(resourceGroupName, clusterName, applicationName, parameters, context).getFinalResult(); + } + + /** + * Restart a code package instance of a service replica or instance. This is a potentially destabilizing operation + * that should be used with immense care. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for restarting a deployed code package. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> restartDeployedCodePackageWithResponseAsync(String resourceGroupName, + String clusterName, String applicationName, RestartDeployedCodePackageRequest parameters) { + final String contentType = "application/json"; + return FluxUtil + .withContext(context -> service.restartDeployedCodePackage(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, clusterName, + applicationName, contentType, parameters, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Restart a code package instance of a service replica or instance. This is a potentially destabilizing operation + * that should be used with immense care. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for restarting a deployed code package. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response restartDeployedCodePackageWithResponse(String resourceGroupName, String clusterName, + String applicationName, RestartDeployedCodePackageRequest parameters) { + final String contentType = "application/json"; + return service.restartDeployedCodePackageSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, applicationName, contentType, parameters, + Context.NONE); + } + + /** + * Restart a code package instance of a service replica or instance. This is a potentially destabilizing operation + * that should be used with immense care. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for restarting a deployed code package. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response restartDeployedCodePackageWithResponse(String resourceGroupName, String clusterName, + String applicationName, RestartDeployedCodePackageRequest parameters, Context context) { + final String contentType = "application/json"; + return service.restartDeployedCodePackageSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, applicationName, contentType, parameters, + context); + } + + /** + * Restart a code package instance of a service replica or instance. This is a potentially destabilizing operation + * that should be used with immense care. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for restarting a deployed code package. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginRestartDeployedCodePackageAsync(String resourceGroupName, + String clusterName, String applicationName, RestartDeployedCodePackageRequest parameters) { + Mono>> mono + = restartDeployedCodePackageWithResponseAsync(resourceGroupName, clusterName, applicationName, parameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Restart a code package instance of a service replica or instance. This is a potentially destabilizing operation + * that should be used with immense care. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for restarting a deployed code package. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginRestartDeployedCodePackage(String resourceGroupName, + String clusterName, String applicationName, RestartDeployedCodePackageRequest parameters) { + Response response + = restartDeployedCodePackageWithResponse(resourceGroupName, clusterName, applicationName, parameters); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Restart a code package instance of a service replica or instance. This is a potentially destabilizing operation + * that should be used with immense care. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for restarting a deployed code package. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginRestartDeployedCodePackage(String resourceGroupName, + String clusterName, String applicationName, RestartDeployedCodePackageRequest parameters, Context context) { + Response response = restartDeployedCodePackageWithResponse(resourceGroupName, clusterName, + applicationName, parameters, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Restart a code package instance of a service replica or instance. This is a potentially destabilizing operation + * that should be used with immense care. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for restarting a deployed code package. + * @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 A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono restartDeployedCodePackageAsync(String resourceGroupName, String clusterName, + String applicationName, RestartDeployedCodePackageRequest parameters) { + return beginRestartDeployedCodePackageAsync(resourceGroupName, clusterName, applicationName, parameters).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Restart a code package instance of a service replica or instance. This is a potentially destabilizing operation + * that should be used with immense care. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for restarting a deployed code package. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void restartDeployedCodePackage(String resourceGroupName, String clusterName, String applicationName, + RestartDeployedCodePackageRequest parameters) { + beginRestartDeployedCodePackage(resourceGroupName, clusterName, applicationName, parameters).getFinalResult(); + } + + /** + * Restart a code package instance of a service replica or instance. This is a potentially destabilizing operation + * that should be used with immense care. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for restarting a deployed code package. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void restartDeployedCodePackage(String resourceGroupName, String clusterName, String applicationName, + RestartDeployedCodePackageRequest parameters, Context context) { + beginRestartDeployedCodePackage(resourceGroupName, clusterName, applicationName, parameters, context) + .getFinalResult(); + } + /** * Get the next page of items. * diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationsImpl.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationsImpl.java index 0754e8b6959d..9f29662a261e 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationsImpl.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationsImpl.java @@ -11,9 +11,12 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient; import com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ApplicationResourceInner; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationFetchHealthRequest; import com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationResource; import com.azure.resourcemanager.servicefabricmanagedclusters.models.Applications; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RestartDeployedCodePackageRequest; import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeResumeApplicationUpgradeParameters; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeUpdateApplicationUpgradeParameters; public final class ApplicationsImpl implements Applications { private static final ClientLogger LOGGER = new ClientLogger(ApplicationsImpl.class); @@ -94,6 +97,37 @@ public void startRollback(String resourceGroupName, String clusterName, String a this.serviceClient().startRollback(resourceGroupName, clusterName, applicationName, context); } + public void updateUpgrade(String resourceGroupName, String clusterName, String applicationName, + RuntimeUpdateApplicationUpgradeParameters parameters) { + this.serviceClient().updateUpgrade(resourceGroupName, clusterName, applicationName, parameters); + } + + public void updateUpgrade(String resourceGroupName, String clusterName, String applicationName, + RuntimeUpdateApplicationUpgradeParameters parameters, Context context) { + this.serviceClient().updateUpgrade(resourceGroupName, clusterName, applicationName, parameters, context); + } + + public void fetchHealth(String resourceGroupName, String clusterName, String applicationName, + ApplicationFetchHealthRequest parameters) { + this.serviceClient().fetchHealth(resourceGroupName, clusterName, applicationName, parameters); + } + + public void fetchHealth(String resourceGroupName, String clusterName, String applicationName, + ApplicationFetchHealthRequest parameters, Context context) { + this.serviceClient().fetchHealth(resourceGroupName, clusterName, applicationName, parameters, context); + } + + public void restartDeployedCodePackage(String resourceGroupName, String clusterName, String applicationName, + RestartDeployedCodePackageRequest parameters) { + this.serviceClient().restartDeployedCodePackage(resourceGroupName, clusterName, applicationName, parameters); + } + + public void restartDeployedCodePackage(String resourceGroupName, String clusterName, String applicationName, + RestartDeployedCodePackageRequest parameters, Context context) { + this.serviceClient() + .restartDeployedCodePackage(resourceGroupName, clusterName, applicationName, parameters, context); + } + public ApplicationResource getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedClusterImpl.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedClusterImpl.java index 64ef33d05d29..6643c6a27b2d 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedClusterImpl.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedClusterImpl.java @@ -356,16 +356,14 @@ public ManagedClusterImpl update() { public ManagedCluster apply() { this.innerObject = serviceManager.serviceClient() .getManagedClusters() - .updateWithResponse(resourceGroupName, clusterName, updateParameters, Context.NONE) - .getValue(); + .update(resourceGroupName, clusterName, updateParameters, Context.NONE); return this; } public ManagedCluster apply(Context context) { this.innerObject = serviceManager.serviceClient() .getManagedClusters() - .updateWithResponse(resourceGroupName, clusterName, updateParameters, context) - .getValue(); + .update(resourceGroupName, clusterName, updateParameters, context); return this; } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedClustersClientImpl.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedClustersClientImpl.java index 58acf59180cd..09e59ea0c8ba 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedClustersClientImpl.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedClustersClientImpl.java @@ -115,18 +115,18 @@ Response createOrUpdateSync(@HostParam("endpoint") String endpoint, @BodyParam("application/json") ManagedClusterInner parameters, Context context); @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}") - @ExpectedResponses({ 200 }) + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update(@HostParam("endpoint") String endpoint, + Mono>> update(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, @BodyParam("application/json") ManagedClusterUpdateParameters parameters, Context context); @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}") - @ExpectedResponses({ 200 }) + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("endpoint") String endpoint, + Response updateSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, @@ -576,7 +576,7 @@ public ManagedClusterInner createOrUpdate(String resourceGroupName, String clust * @return the managed cluster resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync(String resourceGroupName, String clusterName, + private Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, ManagedClusterUpdateParameters parameters) { final String contentType = "application/json"; final String accept = "application/json"; @@ -594,13 +594,16 @@ private Mono> updateWithResponseAsync(String resou * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed cluster resource on successful completion of {@link Mono}. + * @return the managed cluster resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String clusterName, + private Response updateWithResponse(String resourceGroupName, String clusterName, ManagedClusterUpdateParameters parameters) { - return updateWithResponseAsync(resourceGroupName, clusterName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, contentType, accept, parameters, + Context.NONE); } /** @@ -616,7 +619,7 @@ private Mono updateAsync(String resourceGroupName, String c * @return the managed cluster resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse(String resourceGroupName, String clusterName, + private Response updateWithResponse(String resourceGroupName, String clusterName, ManagedClusterUpdateParameters parameters, Context context) { final String contentType = "application/json"; final String accept = "application/json"; @@ -624,6 +627,82 @@ public Response updateWithResponse(String resourceGroupName this.client.getSubscriptionId(), resourceGroupName, clusterName, contentType, accept, parameters, context); } + /** + * Update the tags of of a Service Fabric managed cluster resource with the specified name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param parameters The managed cluster resource updated tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the managed cluster resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ManagedClusterInner> beginUpdateAsync(String resourceGroupName, + String clusterName, ManagedClusterUpdateParameters parameters) { + Mono>> mono = updateWithResponseAsync(resourceGroupName, clusterName, parameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + ManagedClusterInner.class, ManagedClusterInner.class, this.client.getContext()); + } + + /** + * Update the tags of of a Service Fabric managed cluster resource with the specified name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param parameters The managed cluster resource updated tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the managed cluster resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ManagedClusterInner> beginUpdate(String resourceGroupName, + String clusterName, ManagedClusterUpdateParameters parameters) { + Response response = updateWithResponse(resourceGroupName, clusterName, parameters); + return this.client.getLroResult(response, ManagedClusterInner.class, + ManagedClusterInner.class, Context.NONE); + } + + /** + * Update the tags of of a Service Fabric managed cluster resource with the specified name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param parameters The managed cluster resource updated tags. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the managed cluster resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ManagedClusterInner> beginUpdate(String resourceGroupName, + String clusterName, ManagedClusterUpdateParameters parameters, Context context) { + Response response = updateWithResponse(resourceGroupName, clusterName, parameters, context); + return this.client.getLroResult(response, ManagedClusterInner.class, + ManagedClusterInner.class, context); + } + + /** + * Update the tags of of a Service Fabric managed cluster resource with the specified name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param parameters The managed cluster resource updated tags. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the managed cluster resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String clusterName, + ManagedClusterUpdateParameters parameters) { + return beginUpdateAsync(resourceGroupName, clusterName, parameters).last() + .flatMap(this.client::getLroFinalResultOrError); + } + /** * Update the tags of of a Service Fabric managed cluster resource with the specified name. * @@ -638,7 +717,25 @@ public Response updateWithResponse(String resourceGroupName @ServiceMethod(returns = ReturnType.SINGLE) public ManagedClusterInner update(String resourceGroupName, String clusterName, ManagedClusterUpdateParameters parameters) { - return updateWithResponse(resourceGroupName, clusterName, parameters, Context.NONE).getValue(); + return beginUpdate(resourceGroupName, clusterName, parameters).getFinalResult(); + } + + /** + * Update the tags of of a Service Fabric managed cluster resource with the specified name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param parameters The managed cluster resource updated tags. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the managed cluster resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ManagedClusterInner update(String resourceGroupName, String clusterName, + ManagedClusterUpdateParameters parameters, Context context) { + return beginUpdate(resourceGroupName, clusterName, parameters, context).getFinalResult(); } /** diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/NodeTypesClientImpl.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/NodeTypesClientImpl.java index 569461b5ba16..4ad520fb18a7 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/NodeTypesClientImpl.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/NodeTypesClientImpl.java @@ -676,7 +676,7 @@ public NodeTypeInner createOrUpdate(String resourceGroupName, String clusterName } /** - * Update the configuration of a node type of a given managed cluster, only updating tags. + * Update the configuration of a node type of a given managed cluster, only updating tags or capacity. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. @@ -701,7 +701,7 @@ private Mono>> updateWithResponseAsync(String resource } /** - * Update the configuration of a node type of a given managed cluster, only updating tags. + * Update the configuration of a node type of a given managed cluster, only updating tags or capacity. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. @@ -724,7 +724,7 @@ private Response updateWithResponse(String resourceGroupName, String } /** - * Update the configuration of a node type of a given managed cluster, only updating tags. + * Update the configuration of a node type of a given managed cluster, only updating tags or capacity. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. @@ -748,7 +748,7 @@ private Response updateWithResponse(String resourceGroupName, String } /** - * Update the configuration of a node type of a given managed cluster, only updating tags. + * Update the configuration of a node type of a given managed cluster, only updating tags or capacity. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. @@ -770,7 +770,7 @@ private PollerFlux, NodeTypeInner> beginUpdateAsync(St } /** - * Update the configuration of a node type of a given managed cluster, only updating tags. + * Update the configuration of a node type of a given managed cluster, only updating tags or capacity. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. @@ -791,7 +791,7 @@ public SyncPoller, NodeTypeInner> beginUpdate(String r } /** - * Update the configuration of a node type of a given managed cluster, only updating tags. + * Update the configuration of a node type of a given managed cluster, only updating tags or capacity. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. @@ -814,7 +814,7 @@ public SyncPoller, NodeTypeInner> beginUpdate(String r } /** - * Update the configuration of a node type of a given managed cluster, only updating tags. + * Update the configuration of a node type of a given managed cluster, only updating tags or capacity. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. @@ -834,7 +834,7 @@ private Mono updateAsync(String resourceGroupName, String cluster } /** - * Update the configuration of a node type of a given managed cluster, only updating tags. + * Update the configuration of a node type of a given managed cluster, only updating tags or capacity. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. @@ -852,7 +852,7 @@ public NodeTypeInner update(String resourceGroupName, String clusterName, String } /** - * Update the configuration of a node type of a given managed cluster, only updating tags. + * Update the configuration of a node type of a given managed cluster, only updating tags or capacity. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ServiceFabricManagedClustersMgmtClientImpl.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ServiceFabricManagedClustersMgmtClientImpl.java index 0a9a84413d99..414fe9078395 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ServiceFabricManagedClustersMgmtClientImpl.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ServiceFabricManagedClustersMgmtClientImpl.java @@ -337,7 +337,7 @@ public NodeTypeSkusClient getNodeTypeSkus() { this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2025-06-01-preview"; + this.apiVersion = "2025-10-01-preview"; this.operations = new OperationsClientImpl(this); this.applications = new ApplicationsClientImpl(this); this.applicationTypes = new ApplicationTypesClientImpl(this); diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ServiceResourceImpl.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ServiceResourceImpl.java index ba396666eb02..757868522a3d 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ServiceResourceImpl.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ServiceResourceImpl.java @@ -8,6 +8,7 @@ import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ServiceResourceInner; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RestartReplicaRequest; import com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceResource; import com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceResourceProperties; import com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceUpdateParameters; @@ -160,6 +161,16 @@ public ServiceResource refresh(Context context) { return this; } + public void restartReplica(RestartReplicaRequest parameters) { + serviceManager.services() + .restartReplica(resourceGroupName, clusterName, applicationName, serviceName, parameters); + } + + public void restartReplica(RestartReplicaRequest parameters, Context context) { + serviceManager.services() + .restartReplica(resourceGroupName, clusterName, applicationName, serviceName, parameters, context); + } + public ServiceResourceImpl withRegion(Region location) { this.innerModel().withLocation(location.toString()); return this; diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ServicesClientImpl.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ServicesClientImpl.java index 2a6a31084ee7..b9d79cd49ac1 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ServicesClientImpl.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ServicesClientImpl.java @@ -14,6 +14,7 @@ import com.azure.core.annotation.HostParam; import com.azure.core.annotation.Patch; import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; import com.azure.core.annotation.Put; import com.azure.core.annotation.QueryParam; import com.azure.core.annotation.ReturnType; @@ -36,6 +37,7 @@ import com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient; import com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ServiceResourceInner; import com.azure.resourcemanager.servicefabricmanagedclusters.implementation.models.ServiceResourceList; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RestartReplicaRequest; import com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceUpdateParameters; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -172,6 +174,28 @@ Response listByApplicationsSync(@HostParam("endpoint") Stri @PathParam("applicationName") String applicationName, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Accept: application/json;q=0.9" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}/services/{serviceName}/restartReplica") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> restartReplica(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("applicationName") String applicationName, @PathParam("serviceName") String serviceName, + @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") RestartReplicaRequest parameters, Context context); + + @Headers({ "Accept: application/json;q=0.9" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}/services/{serviceName}/restartReplica") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response restartReplicaSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("applicationName") String applicationName, @PathParam("serviceName") String serviceName, + @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") RestartReplicaRequest parameters, Context context); + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -882,6 +906,198 @@ public PagedIterable listByApplications(String resourceGro nextLink -> listByApplicationsNextSinglePage(nextLink, context)); } + /** + * A long-running resource action. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param serviceName The name of the service resource in the format of {applicationName}~{serviceName}. + * @param parameters The parameters for restarting replicas. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> restartReplicaWithResponseAsync(String resourceGroupName, + String clusterName, String applicationName, String serviceName, RestartReplicaRequest parameters) { + final String contentType = "application/json"; + return FluxUtil + .withContext(context -> service.restartReplica(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, applicationName, serviceName, + contentType, parameters, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * A long-running resource action. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param serviceName The name of the service resource in the format of {applicationName}~{serviceName}. + * @param parameters The parameters for restarting replicas. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response restartReplicaWithResponse(String resourceGroupName, String clusterName, + String applicationName, String serviceName, RestartReplicaRequest parameters) { + final String contentType = "application/json"; + return service.restartReplicaSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, applicationName, serviceName, contentType, + parameters, Context.NONE); + } + + /** + * A long-running resource action. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param serviceName The name of the service resource in the format of {applicationName}~{serviceName}. + * @param parameters The parameters for restarting replicas. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response restartReplicaWithResponse(String resourceGroupName, String clusterName, + String applicationName, String serviceName, RestartReplicaRequest parameters, Context context) { + final String contentType = "application/json"; + return service.restartReplicaSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, applicationName, serviceName, contentType, + parameters, context); + } + + /** + * A long-running resource action. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param serviceName The name of the service resource in the format of {applicationName}~{serviceName}. + * @param parameters The parameters for restarting replicas. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginRestartReplicaAsync(String resourceGroupName, String clusterName, + String applicationName, String serviceName, RestartReplicaRequest parameters) { + Mono>> mono + = restartReplicaWithResponseAsync(resourceGroupName, clusterName, applicationName, serviceName, parameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * A long-running resource action. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param serviceName The name of the service resource in the format of {applicationName}~{serviceName}. + * @param parameters The parameters for restarting replicas. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginRestartReplica(String resourceGroupName, String clusterName, + String applicationName, String serviceName, RestartReplicaRequest parameters) { + Response response + = restartReplicaWithResponse(resourceGroupName, clusterName, applicationName, serviceName, parameters); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * A long-running resource action. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param serviceName The name of the service resource in the format of {applicationName}~{serviceName}. + * @param parameters The parameters for restarting replicas. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginRestartReplica(String resourceGroupName, String clusterName, + String applicationName, String serviceName, RestartReplicaRequest parameters, Context context) { + Response response = restartReplicaWithResponse(resourceGroupName, clusterName, applicationName, + serviceName, parameters, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * A long-running resource action. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param serviceName The name of the service resource in the format of {applicationName}~{serviceName}. + * @param parameters The parameters for restarting replicas. + * @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 A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono restartReplicaAsync(String resourceGroupName, String clusterName, String applicationName, + String serviceName, RestartReplicaRequest parameters) { + return beginRestartReplicaAsync(resourceGroupName, clusterName, applicationName, serviceName, parameters).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * A long-running resource action. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param serviceName The name of the service resource in the format of {applicationName}~{serviceName}. + * @param parameters The parameters for restarting replicas. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void restartReplica(String resourceGroupName, String clusterName, String applicationName, String serviceName, + RestartReplicaRequest parameters) { + beginRestartReplica(resourceGroupName, clusterName, applicationName, serviceName, parameters).getFinalResult(); + } + + /** + * A long-running resource action. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param serviceName The name of the service resource in the format of {applicationName}~{serviceName}. + * @param parameters The parameters for restarting replicas. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void restartReplica(String resourceGroupName, String clusterName, String applicationName, String serviceName, + RestartReplicaRequest parameters, Context context) { + beginRestartReplica(resourceGroupName, clusterName, applicationName, serviceName, parameters, context) + .getFinalResult(); + } + /** * Get the next page of items. * diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ServicesImpl.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ServicesImpl.java index 40c3afe21a72..93fd30986ec3 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ServicesImpl.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ServicesImpl.java @@ -11,6 +11,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient; import com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ServiceResourceInner; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RestartReplicaRequest; import com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceResource; import com.azure.resourcemanager.servicefabricmanagedclusters.models.Services; @@ -73,6 +74,17 @@ public PagedIterable listByApplications(String resourceGroupNam return ResourceManagerUtils.mapPage(inner, inner1 -> new ServiceResourceImpl(inner1, this.manager())); } + public void restartReplica(String resourceGroupName, String clusterName, String applicationName, String serviceName, + RestartReplicaRequest parameters) { + this.serviceClient().restartReplica(resourceGroupName, clusterName, applicationName, serviceName, parameters); + } + + public void restartReplica(String resourceGroupName, String clusterName, String applicationName, String serviceName, + RestartReplicaRequest parameters, Context context) { + this.serviceClient() + .restartReplica(resourceGroupName, clusterName, applicationName, serviceName, parameters, context); + } + public ServiceResource getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationFetchHealthRequest.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationFetchHealthRequest.java new file mode 100644 index 000000000000..82d6d228b5cc --- /dev/null +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationFetchHealthRequest.java @@ -0,0 +1,221 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.servicefabricmanagedclusters.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Parameters for fetching the health of an application. + */ +@Fluent +public final class ApplicationFetchHealthRequest implements JsonSerializable { + /* + * Allows filtering of the health events returned in the response based on health state. + */ + private HealthFilter eventsHealthStateFilter; + + /* + * Allows filtering of the deployed applications health state objects returned in the result of application health + * query based on their health state. + */ + private HealthFilter deployedApplicationsHealthStateFilter; + + /* + * Allows filtering of the services health state objects returned in the result of services health query based on + * their health state. + */ + private HealthFilter servicesHealthStateFilter; + + /* + * Indicates whether the health statistics should be returned as part of the query result. False by default. The + * statistics show the number of children entities in health state Ok, Warning, and Error. + */ + private Boolean excludeHealthStatistics; + + /* + * Request timeout for the health query in seconds. The default value is 60 seconds. + */ + private Long timeout; + + /** + * Creates an instance of ApplicationFetchHealthRequest class. + */ + public ApplicationFetchHealthRequest() { + } + + /** + * Get the eventsHealthStateFilter property: Allows filtering of the health events returned in the response based on + * health state. + * + * @return the eventsHealthStateFilter value. + */ + public HealthFilter eventsHealthStateFilter() { + return this.eventsHealthStateFilter; + } + + /** + * Set the eventsHealthStateFilter property: Allows filtering of the health events returned in the response based on + * health state. + * + * @param eventsHealthStateFilter the eventsHealthStateFilter value to set. + * @return the ApplicationFetchHealthRequest object itself. + */ + public ApplicationFetchHealthRequest withEventsHealthStateFilter(HealthFilter eventsHealthStateFilter) { + this.eventsHealthStateFilter = eventsHealthStateFilter; + return this; + } + + /** + * Get the deployedApplicationsHealthStateFilter property: Allows filtering of the deployed applications health + * state objects returned in the result of application health query based on their health state. + * + * @return the deployedApplicationsHealthStateFilter value. + */ + public HealthFilter deployedApplicationsHealthStateFilter() { + return this.deployedApplicationsHealthStateFilter; + } + + /** + * Set the deployedApplicationsHealthStateFilter property: Allows filtering of the deployed applications health + * state objects returned in the result of application health query based on their health state. + * + * @param deployedApplicationsHealthStateFilter the deployedApplicationsHealthStateFilter value to set. + * @return the ApplicationFetchHealthRequest object itself. + */ + public ApplicationFetchHealthRequest + withDeployedApplicationsHealthStateFilter(HealthFilter deployedApplicationsHealthStateFilter) { + this.deployedApplicationsHealthStateFilter = deployedApplicationsHealthStateFilter; + return this; + } + + /** + * Get the servicesHealthStateFilter property: Allows filtering of the services health state objects returned in the + * result of services health query based on their health state. + * + * @return the servicesHealthStateFilter value. + */ + public HealthFilter servicesHealthStateFilter() { + return this.servicesHealthStateFilter; + } + + /** + * Set the servicesHealthStateFilter property: Allows filtering of the services health state objects returned in the + * result of services health query based on their health state. + * + * @param servicesHealthStateFilter the servicesHealthStateFilter value to set. + * @return the ApplicationFetchHealthRequest object itself. + */ + public ApplicationFetchHealthRequest withServicesHealthStateFilter(HealthFilter servicesHealthStateFilter) { + this.servicesHealthStateFilter = servicesHealthStateFilter; + return this; + } + + /** + * Get the excludeHealthStatistics property: Indicates whether the health statistics should be returned as part of + * the query result. False by default. The statistics show the number of children entities in health state Ok, + * Warning, and Error. + * + * @return the excludeHealthStatistics value. + */ + public Boolean excludeHealthStatistics() { + return this.excludeHealthStatistics; + } + + /** + * Set the excludeHealthStatistics property: Indicates whether the health statistics should be returned as part of + * the query result. False by default. The statistics show the number of children entities in health state Ok, + * Warning, and Error. + * + * @param excludeHealthStatistics the excludeHealthStatistics value to set. + * @return the ApplicationFetchHealthRequest object itself. + */ + public ApplicationFetchHealthRequest withExcludeHealthStatistics(Boolean excludeHealthStatistics) { + this.excludeHealthStatistics = excludeHealthStatistics; + return this; + } + + /** + * Get the timeout property: Request timeout for the health query in seconds. The default value is 60 seconds. + * + * @return the timeout value. + */ + public Long timeout() { + return this.timeout; + } + + /** + * Set the timeout property: Request timeout for the health query in seconds. The default value is 60 seconds. + * + * @param timeout the timeout value to set. + * @return the ApplicationFetchHealthRequest object itself. + */ + public ApplicationFetchHealthRequest withTimeout(Long timeout) { + this.timeout = timeout; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("eventsHealthStateFilter", + this.eventsHealthStateFilter == null ? null : this.eventsHealthStateFilter.toString()); + jsonWriter.writeStringField("deployedApplicationsHealthStateFilter", + this.deployedApplicationsHealthStateFilter == null + ? null + : this.deployedApplicationsHealthStateFilter.toString()); + jsonWriter.writeStringField("servicesHealthStateFilter", + this.servicesHealthStateFilter == null ? null : this.servicesHealthStateFilter.toString()); + jsonWriter.writeBooleanField("excludeHealthStatistics", this.excludeHealthStatistics); + jsonWriter.writeNumberField("timeout", this.timeout); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ApplicationFetchHealthRequest from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ApplicationFetchHealthRequest 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 ApplicationFetchHealthRequest. + */ + public static ApplicationFetchHealthRequest fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ApplicationFetchHealthRequest deserializedApplicationFetchHealthRequest + = new ApplicationFetchHealthRequest(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("eventsHealthStateFilter".equals(fieldName)) { + deserializedApplicationFetchHealthRequest.eventsHealthStateFilter + = HealthFilter.fromString(reader.getString()); + } else if ("deployedApplicationsHealthStateFilter".equals(fieldName)) { + deserializedApplicationFetchHealthRequest.deployedApplicationsHealthStateFilter + = HealthFilter.fromString(reader.getString()); + } else if ("servicesHealthStateFilter".equals(fieldName)) { + deserializedApplicationFetchHealthRequest.servicesHealthStateFilter + = HealthFilter.fromString(reader.getString()); + } else if ("excludeHealthStatistics".equals(fieldName)) { + deserializedApplicationFetchHealthRequest.excludeHealthStatistics + = reader.getNullable(JsonReader::getBoolean); + } else if ("timeout".equals(fieldName)) { + deserializedApplicationFetchHealthRequest.timeout = reader.getNullable(JsonReader::getLong); + } else { + reader.skipChildren(); + } + } + + return deserializedApplicationFetchHealthRequest; + }); + } +} diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationResource.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationResource.java index 24de821e8ec1..dc075d8bd72f 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationResource.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationResource.java @@ -303,7 +303,7 @@ interface WithUpgradePolicy { /** * The template for ApplicationResource update. */ - interface Update extends UpdateStages.WithTags { + interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties { /** * Executes the update request. * @@ -336,6 +336,19 @@ interface WithTags { */ Update withTags(Map tags); } + + /** + * The stage of the ApplicationResource update allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: Application update parameters properties.. + * + * @param properties Application update parameters properties. + * @return the next definition stage. + */ + Update withProperties(ApplicationUpdateParametersProperties properties); + } } /** @@ -415,4 +428,71 @@ interface WithTags { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ void startRollback(Context context); + + /** + * Send a request to update the current application upgrade. + * + * @param parameters The parameters for updating an application upgrade. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void updateUpgrade(RuntimeUpdateApplicationUpgradeParameters parameters); + + /** + * Send a request to update the current application upgrade. + * + * @param parameters The parameters for updating an application upgrade. + * @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. + */ + void updateUpgrade(RuntimeUpdateApplicationUpgradeParameters parameters, Context context); + + /** + * Get the status of the deployed application health. It will query the cluster to find the health of the deployed + * application. + * + * @param parameters The parameters for fetching the health of a deployed application. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void fetchHealth(ApplicationFetchHealthRequest parameters); + + /** + * Get the status of the deployed application health. It will query the cluster to find the health of the deployed + * application. + * + * @param parameters The parameters for fetching the health of a deployed application. + * @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. + */ + void fetchHealth(ApplicationFetchHealthRequest parameters, Context context); + + /** + * Restart a code package instance of a service replica or instance. This is a potentially destabilizing operation + * that should be used with immense care. + * + * @param parameters The parameters for restarting a deployed code package. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void restartDeployedCodePackage(RestartDeployedCodePackageRequest parameters); + + /** + * Restart a code package instance of a service replica or instance. This is a potentially destabilizing operation + * that should be used with immense care. + * + * @param parameters The parameters for restarting a deployed code package. + * @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. + */ + void restartDeployedCodePackage(RestartDeployedCodePackageRequest parameters, Context context); } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationUpdateParameters.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationUpdateParameters.java index 19f7e04d836f..0cacd002bf76 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationUpdateParameters.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationUpdateParameters.java @@ -22,6 +22,11 @@ public final class ApplicationUpdateParameters implements JsonSerializable tags; + /* + * Application update parameters properties. + */ + private ApplicationUpdateParametersProperties properties; + /** * Creates an instance of ApplicationUpdateParameters class. */ @@ -48,6 +53,26 @@ public ApplicationUpdateParameters withTags(Map tags) { return this; } + /** + * Get the properties property: Application update parameters properties. + * + * @return the properties value. + */ + public ApplicationUpdateParametersProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Application update parameters properties. + * + * @param properties the properties value to set. + * @return the ApplicationUpdateParameters object itself. + */ + public ApplicationUpdateParameters withProperties(ApplicationUpdateParametersProperties properties) { + this.properties = properties; + return this; + } + /** * {@inheritDoc} */ @@ -55,6 +80,7 @@ public ApplicationUpdateParameters withTags(Map tags) { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.properties); return jsonWriter.writeEndObject(); } @@ -76,6 +102,9 @@ public static ApplicationUpdateParameters fromJson(JsonReader jsonReader) throws if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); deserializedApplicationUpdateParameters.tags = tags; + } else if ("properties".equals(fieldName)) { + deserializedApplicationUpdateParameters.properties + = ApplicationUpdateParametersProperties.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationUpdateParametersProperties.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationUpdateParametersProperties.java new file mode 100644 index 000000000000..332ea296bf02 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationUpdateParametersProperties.java @@ -0,0 +1,92 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.servicefabricmanagedclusters.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.Map; + +/** + * Properties for application update request. + */ +@Fluent +public final class ApplicationUpdateParametersProperties + implements JsonSerializable { + /* + * List of application parameters with overridden values from their default values specified in the application + * manifest. + */ + private Map parameters; + + /** + * Creates an instance of ApplicationUpdateParametersProperties class. + */ + public ApplicationUpdateParametersProperties() { + } + + /** + * Get the parameters property: List of application parameters with overridden values from their default values + * specified in the application manifest. + * + * @return the parameters value. + */ + public Map parameters() { + return this.parameters; + } + + /** + * Set the parameters property: List of application parameters with overridden values from their default values + * specified in the application manifest. + * + * @param parameters the parameters value to set. + * @return the ApplicationUpdateParametersProperties object itself. + */ + public ApplicationUpdateParametersProperties withParameters(Map parameters) { + this.parameters = parameters; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeMapField("parameters", this.parameters, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ApplicationUpdateParametersProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ApplicationUpdateParametersProperties 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 ApplicationUpdateParametersProperties. + */ + public static ApplicationUpdateParametersProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ApplicationUpdateParametersProperties deserializedApplicationUpdateParametersProperties + = new ApplicationUpdateParametersProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("parameters".equals(fieldName)) { + Map parameters = reader.readMap(reader1 -> reader1.getString()); + deserializedApplicationUpdateParametersProperties.parameters = parameters; + } else { + reader.skipChildren(); + } + } + + return deserializedApplicationUpdateParametersProperties; + }); + } +} diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/Applications.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/Applications.java index 158e1bcaa514..7871d7f36dd9 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/Applications.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/Applications.java @@ -183,6 +183,97 @@ void resumeUpgrade(String resourceGroupName, String clusterName, String applicat */ void startRollback(String resourceGroupName, String clusterName, String applicationName, Context context); + /** + * Send a request to update the current application upgrade. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for updating an application upgrade. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void updateUpgrade(String resourceGroupName, String clusterName, String applicationName, + RuntimeUpdateApplicationUpgradeParameters parameters); + + /** + * Send a request to update the current application upgrade. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for updating an application upgrade. + * @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. + */ + void updateUpgrade(String resourceGroupName, String clusterName, String applicationName, + RuntimeUpdateApplicationUpgradeParameters parameters, Context context); + + /** + * Get the status of the deployed application health. It will query the cluster to find the health of the deployed + * application. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for fetching the health of a deployed application. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void fetchHealth(String resourceGroupName, String clusterName, String applicationName, + ApplicationFetchHealthRequest parameters); + + /** + * Get the status of the deployed application health. It will query the cluster to find the health of the deployed + * application. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for fetching the health of a deployed application. + * @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. + */ + void fetchHealth(String resourceGroupName, String clusterName, String applicationName, + ApplicationFetchHealthRequest parameters, Context context); + + /** + * Restart a code package instance of a service replica or instance. This is a potentially destabilizing operation + * that should be used with immense care. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for restarting a deployed code package. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void restartDeployedCodePackage(String resourceGroupName, String clusterName, String applicationName, + RestartDeployedCodePackageRequest parameters); + + /** + * Restart a code package instance of a service replica or instance. This is a potentially destabilizing operation + * that should be used with immense care. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The parameters for restarting a deployed code package. + * @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. + */ + void restartDeployedCodePackage(String resourceGroupName, String clusterName, String applicationName, + RestartDeployedCodePackageRequest parameters, Context context); + /** * Get a Service Fabric managed application resource created or in the process of being created in the Service * Fabric cluster resource. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/HealthFilter.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/HealthFilter.java new file mode 100644 index 000000000000..698180e3a4eb --- /dev/null +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/HealthFilter.java @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.servicefabricmanagedclusters.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Enum for filtering health events. + */ +public final class HealthFilter extends ExpandableStringEnum { + /** + * Default value. Matches any health state. + */ + public static final HealthFilter DEFAULT = fromString("Default"); + + /** + * Filter that doesn't match any health state. Used to return no results on a given collection of health entities. + */ + public static final HealthFilter NONE = fromString("None"); + + /** + * Filter for health state Ok. + */ + public static final HealthFilter OK = fromString("Ok"); + + /** + * Filter for health state Warning. + */ + public static final HealthFilter WARNING = fromString("Warning"); + + /** + * Filter for health state Error. + */ + public static final HealthFilter ERROR = fromString("Error"); + + /** + * Filter that matches input with any health state. + */ + public static final HealthFilter ALL = fromString("All"); + + /** + * Creates a new instance of HealthFilter value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public HealthFilter() { + } + + /** + * Creates or finds a HealthFilter from its string representation. + * + * @param name a name to look for. + * @return the corresponding HealthFilter. + */ + public static HealthFilter fromString(String name) { + return fromString(name, HealthFilter.class); + } + + /** + * Gets known HealthFilter values. + * + * @return known HealthFilter values. + */ + public static Collection values() { + return values(HealthFilter.class); + } +} diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RestartDeployedCodePackageRequest.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RestartDeployedCodePackageRequest.java new file mode 100644 index 000000000000..fc298f4f0e49 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RestartDeployedCodePackageRequest.java @@ -0,0 +1,227 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.servicefabricmanagedclusters.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Parameters for restarting a deployed code package. + */ +@Fluent +public final class RestartDeployedCodePackageRequest implements JsonSerializable { + /* + * The name of the node where the code package needs to be restarted. Use '*' to restart on all nodes where the code + * package is running. + */ + private String nodeName; + + /* + * The name of the service manifest as specified in the code package. + */ + private String serviceManifestName; + + /* + * The name of the code package as specified in the service manifest. + */ + private String codePackageName; + + /* + * The instance ID for currently running entry point. For a code package setup entry point (if specified) runs first + * and after it finishes main entry point is started. Each time entry point executable is run, its instance ID will + * change. If 0 is passed in as the code package instance ID, the API will restart the code package with whatever + * instance ID it is currently running. If an instance ID other than 0 is passed in, the API will restart the code + * package only if the current Instance ID matches the passed in instance ID. Note, passing in the exact instance ID + * (not 0) in the API is safer, because if ensures at most one restart of the code package. + */ + private String codePackageInstanceId; + + /* + * The activation id of a deployed service package. If ServicePackageActivationMode specified at the time of + * creating the service is 'SharedProcess' (or if it is not specified, in which case it defaults to + * 'SharedProcess'), then value of ServicePackageActivationId is always an empty string. + */ + private String servicePackageActivationId; + + /** + * Creates an instance of RestartDeployedCodePackageRequest class. + */ + public RestartDeployedCodePackageRequest() { + } + + /** + * Get the nodeName property: The name of the node where the code package needs to be restarted. Use '*' to restart + * on all nodes where the code package is running. + * + * @return the nodeName value. + */ + public String nodeName() { + return this.nodeName; + } + + /** + * Set the nodeName property: The name of the node where the code package needs to be restarted. Use '*' to restart + * on all nodes where the code package is running. + * + * @param nodeName the nodeName value to set. + * @return the RestartDeployedCodePackageRequest object itself. + */ + public RestartDeployedCodePackageRequest withNodeName(String nodeName) { + this.nodeName = nodeName; + return this; + } + + /** + * Get the serviceManifestName property: The name of the service manifest as specified in the code package. + * + * @return the serviceManifestName value. + */ + public String serviceManifestName() { + return this.serviceManifestName; + } + + /** + * Set the serviceManifestName property: The name of the service manifest as specified in the code package. + * + * @param serviceManifestName the serviceManifestName value to set. + * @return the RestartDeployedCodePackageRequest object itself. + */ + public RestartDeployedCodePackageRequest withServiceManifestName(String serviceManifestName) { + this.serviceManifestName = serviceManifestName; + return this; + } + + /** + * Get the codePackageName property: The name of the code package as specified in the service manifest. + * + * @return the codePackageName value. + */ + public String codePackageName() { + return this.codePackageName; + } + + /** + * Set the codePackageName property: The name of the code package as specified in the service manifest. + * + * @param codePackageName the codePackageName value to set. + * @return the RestartDeployedCodePackageRequest object itself. + */ + public RestartDeployedCodePackageRequest withCodePackageName(String codePackageName) { + this.codePackageName = codePackageName; + return this; + } + + /** + * Get the codePackageInstanceId property: The instance ID for currently running entry point. For a code package + * setup entry point (if specified) runs first and after it finishes main entry point is started. Each time entry + * point executable is run, its instance ID will change. If 0 is passed in as the code package instance ID, the API + * will restart the code package with whatever instance ID it is currently running. If an instance ID other than 0 + * is passed in, the API will restart the code package only if the current Instance ID matches the passed in + * instance ID. Note, passing in the exact instance ID (not 0) in the API is safer, because if ensures at most one + * restart of the code package. + * + * @return the codePackageInstanceId value. + */ + public String codePackageInstanceId() { + return this.codePackageInstanceId; + } + + /** + * Set the codePackageInstanceId property: The instance ID for currently running entry point. For a code package + * setup entry point (if specified) runs first and after it finishes main entry point is started. Each time entry + * point executable is run, its instance ID will change. If 0 is passed in as the code package instance ID, the API + * will restart the code package with whatever instance ID it is currently running. If an instance ID other than 0 + * is passed in, the API will restart the code package only if the current Instance ID matches the passed in + * instance ID. Note, passing in the exact instance ID (not 0) in the API is safer, because if ensures at most one + * restart of the code package. + * + * @param codePackageInstanceId the codePackageInstanceId value to set. + * @return the RestartDeployedCodePackageRequest object itself. + */ + public RestartDeployedCodePackageRequest withCodePackageInstanceId(String codePackageInstanceId) { + this.codePackageInstanceId = codePackageInstanceId; + return this; + } + + /** + * Get the servicePackageActivationId property: The activation id of a deployed service package. If + * ServicePackageActivationMode specified at the time of creating the service is 'SharedProcess' (or if it is not + * specified, in which case it defaults to 'SharedProcess'), then value of ServicePackageActivationId is always an + * empty string. + * + * @return the servicePackageActivationId value. + */ + public String servicePackageActivationId() { + return this.servicePackageActivationId; + } + + /** + * Set the servicePackageActivationId property: The activation id of a deployed service package. If + * ServicePackageActivationMode specified at the time of creating the service is 'SharedProcess' (or if it is not + * specified, in which case it defaults to 'SharedProcess'), then value of ServicePackageActivationId is always an + * empty string. + * + * @param servicePackageActivationId the servicePackageActivationId value to set. + * @return the RestartDeployedCodePackageRequest object itself. + */ + public RestartDeployedCodePackageRequest withServicePackageActivationId(String servicePackageActivationId) { + this.servicePackageActivationId = servicePackageActivationId; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nodeName", this.nodeName); + jsonWriter.writeStringField("serviceManifestName", this.serviceManifestName); + jsonWriter.writeStringField("codePackageName", this.codePackageName); + jsonWriter.writeStringField("codePackageInstanceId", this.codePackageInstanceId); + jsonWriter.writeStringField("servicePackageActivationId", this.servicePackageActivationId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RestartDeployedCodePackageRequest from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RestartDeployedCodePackageRequest 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 RestartDeployedCodePackageRequest. + */ + public static RestartDeployedCodePackageRequest fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RestartDeployedCodePackageRequest deserializedRestartDeployedCodePackageRequest + = new RestartDeployedCodePackageRequest(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nodeName".equals(fieldName)) { + deserializedRestartDeployedCodePackageRequest.nodeName = reader.getString(); + } else if ("serviceManifestName".equals(fieldName)) { + deserializedRestartDeployedCodePackageRequest.serviceManifestName = reader.getString(); + } else if ("codePackageName".equals(fieldName)) { + deserializedRestartDeployedCodePackageRequest.codePackageName = reader.getString(); + } else if ("codePackageInstanceId".equals(fieldName)) { + deserializedRestartDeployedCodePackageRequest.codePackageInstanceId = reader.getString(); + } else if ("servicePackageActivationId".equals(fieldName)) { + deserializedRestartDeployedCodePackageRequest.servicePackageActivationId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedRestartDeployedCodePackageRequest; + }); + } +} diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RestartKind.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RestartKind.java new file mode 100644 index 000000000000..dd7bcd25b64d --- /dev/null +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RestartKind.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.servicefabricmanagedclusters.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The kind of restart to perform. + */ +public final class RestartKind extends ExpandableStringEnum { + /** + * Restart all listed replicas at the same time. + */ + public static final RestartKind SIMULTANEOUS = fromString("Simultaneous"); + + /** + * Creates a new instance of RestartKind value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public RestartKind() { + } + + /** + * Creates or finds a RestartKind from its string representation. + * + * @param name a name to look for. + * @return the corresponding RestartKind. + */ + public static RestartKind fromString(String name) { + return fromString(name, RestartKind.class); + } + + /** + * Gets known RestartKind values. + * + * @return known RestartKind values. + */ + public static Collection values() { + return values(RestartKind.class); + } +} diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RestartReplicaRequest.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RestartReplicaRequest.java new file mode 100644 index 000000000000..22fcc9c0a368 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RestartReplicaRequest.java @@ -0,0 +1,208 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.servicefabricmanagedclusters.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Request to restart a replica. + */ +@Fluent +public final class RestartReplicaRequest implements JsonSerializable { + /* + * The ID of the partition. + */ + private String partitionId; + + /* + * The IDs of the replicas to be restarted. + */ + private List replicaIds; + + /* + * The kind of restart to perform. + */ + private RestartKind restartKind; + + /* + * If true, the restart operation will be forced. Use this option with care, as it may cause data loss. + */ + private Boolean forceRestart; + + /* + * The server timeout for performing the operation in seconds. This timeout specifies the time duration that the + * client is willing to wait for the requested operation to complete. The default value for this parameter is 60 + * seconds. + */ + private Long timeout; + + /** + * Creates an instance of RestartReplicaRequest class. + */ + public RestartReplicaRequest() { + } + + /** + * Get the partitionId property: The ID of the partition. + * + * @return the partitionId value. + */ + public String partitionId() { + return this.partitionId; + } + + /** + * Set the partitionId property: The ID of the partition. + * + * @param partitionId the partitionId value to set. + * @return the RestartReplicaRequest object itself. + */ + public RestartReplicaRequest withPartitionId(String partitionId) { + this.partitionId = partitionId; + return this; + } + + /** + * Get the replicaIds property: The IDs of the replicas to be restarted. + * + * @return the replicaIds value. + */ + public List replicaIds() { + return this.replicaIds; + } + + /** + * Set the replicaIds property: The IDs of the replicas to be restarted. + * + * @param replicaIds the replicaIds value to set. + * @return the RestartReplicaRequest object itself. + */ + public RestartReplicaRequest withReplicaIds(List replicaIds) { + this.replicaIds = replicaIds; + return this; + } + + /** + * Get the restartKind property: The kind of restart to perform. + * + * @return the restartKind value. + */ + public RestartKind restartKind() { + return this.restartKind; + } + + /** + * Set the restartKind property: The kind of restart to perform. + * + * @param restartKind the restartKind value to set. + * @return the RestartReplicaRequest object itself. + */ + public RestartReplicaRequest withRestartKind(RestartKind restartKind) { + this.restartKind = restartKind; + return this; + } + + /** + * Get the forceRestart property: If true, the restart operation will be forced. Use this option with care, as it + * may cause data loss. + * + * @return the forceRestart value. + */ + public Boolean forceRestart() { + return this.forceRestart; + } + + /** + * Set the forceRestart property: If true, the restart operation will be forced. Use this option with care, as it + * may cause data loss. + * + * @param forceRestart the forceRestart value to set. + * @return the RestartReplicaRequest object itself. + */ + public RestartReplicaRequest withForceRestart(Boolean forceRestart) { + this.forceRestart = forceRestart; + return this; + } + + /** + * Get the timeout property: The server timeout for performing the operation in seconds. This timeout specifies the + * time duration that the client is willing to wait for the requested operation to complete. The default value for + * this parameter is 60 seconds. + * + * @return the timeout value. + */ + public Long timeout() { + return this.timeout; + } + + /** + * Set the timeout property: The server timeout for performing the operation in seconds. This timeout specifies the + * time duration that the client is willing to wait for the requested operation to complete. The default value for + * this parameter is 60 seconds. + * + * @param timeout the timeout value to set. + * @return the RestartReplicaRequest object itself. + */ + public RestartReplicaRequest withTimeout(Long timeout) { + this.timeout = timeout; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("partitionId", this.partitionId); + jsonWriter.writeArrayField("replicaIds", this.replicaIds, (writer, element) -> writer.writeLong(element)); + jsonWriter.writeStringField("restartKind", this.restartKind == null ? null : this.restartKind.toString()); + jsonWriter.writeBooleanField("forceRestart", this.forceRestart); + jsonWriter.writeNumberField("timeout", this.timeout); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RestartReplicaRequest from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RestartReplicaRequest 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 RestartReplicaRequest. + */ + public static RestartReplicaRequest fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RestartReplicaRequest deserializedRestartReplicaRequest = new RestartReplicaRequest(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("partitionId".equals(fieldName)) { + deserializedRestartReplicaRequest.partitionId = reader.getString(); + } else if ("replicaIds".equals(fieldName)) { + List replicaIds = reader.readArray(reader1 -> reader1.getLong()); + deserializedRestartReplicaRequest.replicaIds = replicaIds; + } else if ("restartKind".equals(fieldName)) { + deserializedRestartReplicaRequest.restartKind = RestartKind.fromString(reader.getString()); + } else if ("forceRestart".equals(fieldName)) { + deserializedRestartReplicaRequest.forceRestart = reader.getNullable(JsonReader::getBoolean); + } else if ("timeout".equals(fieldName)) { + deserializedRestartReplicaRequest.timeout = reader.getNullable(JsonReader::getLong); + } else { + reader.skipChildren(); + } + } + + return deserializedRestartReplicaRequest; + }); + } +} diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RollingUpgradeMode.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RollingUpgradeMode.java index 9476ffeebaa8..63276bbc698f 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RollingUpgradeMode.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RollingUpgradeMode.java @@ -13,12 +13,11 @@ public final class RollingUpgradeMode extends ExpandableStringEnum { /** * The upgrade will stop after completing each upgrade domain and automatically monitor health before proceeding. - * The value is 0. */ public static final RollingUpgradeMode MONITORED = fromString("Monitored"); /** - * The upgrade will proceed automatically without performing any health monitoring. The value is 1. + * The upgrade will proceed automatically without performing any health monitoring. */ public static final RollingUpgradeMode UNMONITORED_AUTO = fromString("UnmonitoredAuto"); diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeApplicationHealthPolicy.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeApplicationHealthPolicy.java new file mode 100644 index 000000000000..27f755e2458a --- /dev/null +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeApplicationHealthPolicy.java @@ -0,0 +1,204 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.servicefabricmanagedclusters.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.Map; + +/** + * Cluster level definition for a health policy used to evaluate the health of an application or one of its children + * entities. + */ +@Fluent +public final class RuntimeApplicationHealthPolicy implements JsonSerializable { + /* + * Indicates whether warnings are treated with the same severity as errors. + */ + private boolean considerWarningAsError; + + /* + * The maximum allowed percentage of unhealthy deployed applications. Allowed values are Byte values from zero to + * 100. + * The percentage represents the maximum tolerated percentage of deployed applications that can be unhealthy before + * the application is considered in error. + * This is calculated by dividing the number of unhealthy deployed applications over the number of nodes where the + * application is currently deployed on in the cluster. + * The computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero. + */ + private int maxPercentUnhealthyDeployedApplications; + + /* + * The health policy used by default to evaluate the health of a service type. + */ + private RuntimeServiceTypeHealthPolicy defaultServiceTypeHealthPolicy; + + /* + * The map with service type health policy per service type name. The map is empty by default. + */ + private Map serviceTypeHealthPolicyMap; + + /** + * Creates an instance of RuntimeApplicationHealthPolicy class. + */ + public RuntimeApplicationHealthPolicy() { + } + + /** + * Get the considerWarningAsError property: Indicates whether warnings are treated with the same severity as errors. + * + * @return the considerWarningAsError value. + */ + public boolean considerWarningAsError() { + return this.considerWarningAsError; + } + + /** + * Set the considerWarningAsError property: Indicates whether warnings are treated with the same severity as errors. + * + * @param considerWarningAsError the considerWarningAsError value to set. + * @return the RuntimeApplicationHealthPolicy object itself. + */ + public RuntimeApplicationHealthPolicy withConsiderWarningAsError(boolean considerWarningAsError) { + this.considerWarningAsError = considerWarningAsError; + return this; + } + + /** + * Get the maxPercentUnhealthyDeployedApplications property: The maximum allowed percentage of unhealthy deployed + * applications. Allowed values are Byte values from zero to 100. + * The percentage represents the maximum tolerated percentage of deployed applications that can be unhealthy before + * the application is considered in error. + * This is calculated by dividing the number of unhealthy deployed applications over the number of nodes where the + * application is currently deployed on in the cluster. + * The computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero. + * + * @return the maxPercentUnhealthyDeployedApplications value. + */ + public int maxPercentUnhealthyDeployedApplications() { + return this.maxPercentUnhealthyDeployedApplications; + } + + /** + * Set the maxPercentUnhealthyDeployedApplications property: The maximum allowed percentage of unhealthy deployed + * applications. Allowed values are Byte values from zero to 100. + * The percentage represents the maximum tolerated percentage of deployed applications that can be unhealthy before + * the application is considered in error. + * This is calculated by dividing the number of unhealthy deployed applications over the number of nodes where the + * application is currently deployed on in the cluster. + * The computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero. + * + * @param maxPercentUnhealthyDeployedApplications the maxPercentUnhealthyDeployedApplications value to set. + * @return the RuntimeApplicationHealthPolicy object itself. + */ + public RuntimeApplicationHealthPolicy + withMaxPercentUnhealthyDeployedApplications(int maxPercentUnhealthyDeployedApplications) { + this.maxPercentUnhealthyDeployedApplications = maxPercentUnhealthyDeployedApplications; + return this; + } + + /** + * Get the defaultServiceTypeHealthPolicy property: The health policy used by default to evaluate the health of a + * service type. + * + * @return the defaultServiceTypeHealthPolicy value. + */ + public RuntimeServiceTypeHealthPolicy defaultServiceTypeHealthPolicy() { + return this.defaultServiceTypeHealthPolicy; + } + + /** + * Set the defaultServiceTypeHealthPolicy property: The health policy used by default to evaluate the health of a + * service type. + * + * @param defaultServiceTypeHealthPolicy the defaultServiceTypeHealthPolicy value to set. + * @return the RuntimeApplicationHealthPolicy object itself. + */ + public RuntimeApplicationHealthPolicy + withDefaultServiceTypeHealthPolicy(RuntimeServiceTypeHealthPolicy defaultServiceTypeHealthPolicy) { + this.defaultServiceTypeHealthPolicy = defaultServiceTypeHealthPolicy; + return this; + } + + /** + * Get the serviceTypeHealthPolicyMap property: The map with service type health policy per service type name. The + * map is empty by default. + * + * @return the serviceTypeHealthPolicyMap value. + */ + public Map serviceTypeHealthPolicyMap() { + return this.serviceTypeHealthPolicyMap; + } + + /** + * Set the serviceTypeHealthPolicyMap property: The map with service type health policy per service type name. The + * map is empty by default. + * + * @param serviceTypeHealthPolicyMap the serviceTypeHealthPolicyMap value to set. + * @return the RuntimeApplicationHealthPolicy object itself. + */ + public RuntimeApplicationHealthPolicy + withServiceTypeHealthPolicyMap(Map serviceTypeHealthPolicyMap) { + this.serviceTypeHealthPolicyMap = serviceTypeHealthPolicyMap; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeBooleanField("considerWarningAsError", this.considerWarningAsError); + jsonWriter.writeIntField("maxPercentUnhealthyDeployedApplications", + this.maxPercentUnhealthyDeployedApplications); + jsonWriter.writeJsonField("defaultServiceTypeHealthPolicy", this.defaultServiceTypeHealthPolicy); + jsonWriter.writeMapField("serviceTypeHealthPolicyMap", this.serviceTypeHealthPolicyMap, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RuntimeApplicationHealthPolicy from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RuntimeApplicationHealthPolicy 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 RuntimeApplicationHealthPolicy. + */ + public static RuntimeApplicationHealthPolicy fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RuntimeApplicationHealthPolicy deserializedRuntimeApplicationHealthPolicy + = new RuntimeApplicationHealthPolicy(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("considerWarningAsError".equals(fieldName)) { + deserializedRuntimeApplicationHealthPolicy.considerWarningAsError = reader.getBoolean(); + } else if ("maxPercentUnhealthyDeployedApplications".equals(fieldName)) { + deserializedRuntimeApplicationHealthPolicy.maxPercentUnhealthyDeployedApplications + = reader.getInt(); + } else if ("defaultServiceTypeHealthPolicy".equals(fieldName)) { + deserializedRuntimeApplicationHealthPolicy.defaultServiceTypeHealthPolicy + = RuntimeServiceTypeHealthPolicy.fromJson(reader); + } else if ("serviceTypeHealthPolicyMap".equals(fieldName)) { + Map serviceTypeHealthPolicyMap + = reader.readMap(reader1 -> RuntimeServiceTypeHealthPolicy.fromJson(reader1)); + deserializedRuntimeApplicationHealthPolicy.serviceTypeHealthPolicyMap = serviceTypeHealthPolicyMap; + } else { + reader.skipChildren(); + } + } + + return deserializedRuntimeApplicationHealthPolicy; + }); + } +} diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeFailureAction.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeFailureAction.java new file mode 100644 index 000000000000..239d7eb137ee --- /dev/null +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeFailureAction.java @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.servicefabricmanagedclusters.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Cluster level definition for the compensating action to perform when a Monitored upgrade encounters monitoring policy + * or health policy violations. + */ +public final class RuntimeFailureAction extends ExpandableStringEnum { + /** + * Indicates that a rollback of the upgrade will be performed by Service Fabric if the upgrade fails. + */ + public static final RuntimeFailureAction ROLLBACK = fromString("Rollback"); + + /** + * Indicates that a manual repair will need to be performed by the administrator if the upgrade fails. Service + * Fabric will not proceed to the next upgrade domain automatically. + */ + public static final RuntimeFailureAction MANUAL = fromString("Manual"); + + /** + * Creates a new instance of RuntimeFailureAction value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public RuntimeFailureAction() { + } + + /** + * Creates or finds a RuntimeFailureAction from its string representation. + * + * @param name a name to look for. + * @return the corresponding RuntimeFailureAction. + */ + public static RuntimeFailureAction fromString(String name) { + return fromString(name, RuntimeFailureAction.class); + } + + /** + * Gets known RuntimeFailureAction values. + * + * @return known RuntimeFailureAction values. + */ + public static Collection values() { + return values(RuntimeFailureAction.class); + } +} diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeRollingUpgradeMode.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeRollingUpgradeMode.java new file mode 100644 index 000000000000..6fd45e186d6f --- /dev/null +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeRollingUpgradeMode.java @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.servicefabricmanagedclusters.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Cluster level definition for the mode used to monitor health during a rolling upgrade. + */ +public final class RuntimeRollingUpgradeMode extends ExpandableStringEnum { + /** + * The upgrade will proceed automatically without performing any health monitoring. + */ + public static final RuntimeRollingUpgradeMode UNMONITORED_AUTO = fromString("UnmonitoredAuto"); + + /** + * The upgrade will stop after completing each upgrade domain, giving the opportunity to manually monitor health + * before proceeding. + */ + public static final RuntimeRollingUpgradeMode UNMONITORED_MANUAL = fromString("UnmonitoredManual"); + + /** + * The upgrade will stop after completing each upgrade domain and automatically monitor health before proceeding. + */ + public static final RuntimeRollingUpgradeMode MONITORED = fromString("Monitored"); + + /** + * Creates a new instance of RuntimeRollingUpgradeMode value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public RuntimeRollingUpgradeMode() { + } + + /** + * Creates or finds a RuntimeRollingUpgradeMode from its string representation. + * + * @param name a name to look for. + * @return the corresponding RuntimeRollingUpgradeMode. + */ + public static RuntimeRollingUpgradeMode fromString(String name) { + return fromString(name, RuntimeRollingUpgradeMode.class); + } + + /** + * Gets known RuntimeRollingUpgradeMode values. + * + * @return known RuntimeRollingUpgradeMode values. + */ + public static Collection values() { + return values(RuntimeRollingUpgradeMode.class); + } +} diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeRollingUpgradeUpdateMonitoringPolicy.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeRollingUpgradeUpdateMonitoringPolicy.java new file mode 100644 index 000000000000..22e2716dd607 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeRollingUpgradeUpdateMonitoringPolicy.java @@ -0,0 +1,424 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.servicefabricmanagedclusters.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Describes the parameters for updating a rolling upgrade of application or cluster. + */ +@Fluent +public final class RuntimeRollingUpgradeUpdateMonitoringPolicy + implements JsonSerializable { + /* + * The mode used to monitor health during a rolling upgrade. + */ + private RuntimeRollingUpgradeMode rollingUpgradeMode; + + /* + * If true, then processes are forcefully restarted during upgrade even when the code version has not changed (the + * upgrade only changes configuration or data). + */ + private Boolean forceRestart; + + /* + * The maximum amount of time to block processing of an upgrade domain and prevent loss of availability when there + * are unexpected issues. When this timeout expires, processing of the upgrade domain will proceed regardless of + * availability loss issues. The timeout is reset at the start of each upgrade domain. Valid values are between 0 + * and 42949672925 inclusive. (unsigned 32-bit integer). + */ + private Long replicaSetCheckTimeoutInMilliseconds; + + /* + * The compensating action to perform when a Monitored upgrade encounters monitoring policy or health policy + * violations. Invalid indicates the failure action is invalid. Rollback specifies that the upgrade will start + * rolling back automatically. Manual indicates that the upgrade will switch to UnmonitoredManual upgrade mode + */ + private RuntimeFailureAction failureAction; + + /* + * The amount of time to wait after completing an upgrade domain before applying health policies. It is first + * interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number + * representing the total number of milliseconds. + */ + private String healthCheckWaitDurationInMilliseconds; + + /* + * The amount of time that the application or cluster must remain healthy before the upgrade proceeds to the next + * upgrade domain. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is + * interpreted as a number representing the total number of milliseconds. + */ + private String healthCheckStableDurationInMilliseconds; + + /* + * The amount of time to retry health evaluation when the application or cluster is unhealthy before FailureAction + * is executed. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is + * interpreted as a number representing the total number of milliseconds. + */ + private String healthCheckRetryTimeoutInMilliseconds; + + /* + * The amount of time the overall upgrade has to complete before FailureAction is executed. It is first interpreted + * as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the + * total number of milliseconds. + */ + private String upgradeTimeoutInMilliseconds; + + /* + * The amount of time each upgrade domain has to complete before FailureAction is executed. It is first interpreted + * as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the + * total number of milliseconds. + */ + private String upgradeDomainTimeoutInMilliseconds; + + /* + * Duration in seconds, to wait before a stateless instance is closed, to allow the active requests to drain + * gracefully. This would be effective when the instance is closing during the application/cluster upgrade, only for + * those instances which have a non-zero delay duration configured in the service description. + */ + private Long instanceCloseDelayDurationInSeconds; + + /** + * Creates an instance of RuntimeRollingUpgradeUpdateMonitoringPolicy class. + */ + public RuntimeRollingUpgradeUpdateMonitoringPolicy() { + } + + /** + * Get the rollingUpgradeMode property: The mode used to monitor health during a rolling upgrade. + * + * @return the rollingUpgradeMode value. + */ + public RuntimeRollingUpgradeMode rollingUpgradeMode() { + return this.rollingUpgradeMode; + } + + /** + * Set the rollingUpgradeMode property: The mode used to monitor health during a rolling upgrade. + * + * @param rollingUpgradeMode the rollingUpgradeMode value to set. + * @return the RuntimeRollingUpgradeUpdateMonitoringPolicy object itself. + */ + public RuntimeRollingUpgradeUpdateMonitoringPolicy + withRollingUpgradeMode(RuntimeRollingUpgradeMode rollingUpgradeMode) { + this.rollingUpgradeMode = rollingUpgradeMode; + return this; + } + + /** + * Get the forceRestart property: If true, then processes are forcefully restarted during upgrade even when the code + * version has not changed (the upgrade only changes configuration or data). + * + * @return the forceRestart value. + */ + public Boolean forceRestart() { + return this.forceRestart; + } + + /** + * Set the forceRestart property: If true, then processes are forcefully restarted during upgrade even when the code + * version has not changed (the upgrade only changes configuration or data). + * + * @param forceRestart the forceRestart value to set. + * @return the RuntimeRollingUpgradeUpdateMonitoringPolicy object itself. + */ + public RuntimeRollingUpgradeUpdateMonitoringPolicy withForceRestart(Boolean forceRestart) { + this.forceRestart = forceRestart; + return this; + } + + /** + * Get the replicaSetCheckTimeoutInMilliseconds property: The maximum amount of time to block processing of an + * upgrade domain and prevent loss of availability when there are unexpected issues. When this timeout expires, + * processing of the upgrade domain will proceed regardless of availability loss issues. The timeout is reset at the + * start of each upgrade domain. Valid values are between 0 and 42949672925 inclusive. (unsigned 32-bit integer). + * + * @return the replicaSetCheckTimeoutInMilliseconds value. + */ + public Long replicaSetCheckTimeoutInMilliseconds() { + return this.replicaSetCheckTimeoutInMilliseconds; + } + + /** + * Set the replicaSetCheckTimeoutInMilliseconds property: The maximum amount of time to block processing of an + * upgrade domain and prevent loss of availability when there are unexpected issues. When this timeout expires, + * processing of the upgrade domain will proceed regardless of availability loss issues. The timeout is reset at the + * start of each upgrade domain. Valid values are between 0 and 42949672925 inclusive. (unsigned 32-bit integer). + * + * @param replicaSetCheckTimeoutInMilliseconds the replicaSetCheckTimeoutInMilliseconds value to set. + * @return the RuntimeRollingUpgradeUpdateMonitoringPolicy object itself. + */ + public RuntimeRollingUpgradeUpdateMonitoringPolicy + withReplicaSetCheckTimeoutInMilliseconds(Long replicaSetCheckTimeoutInMilliseconds) { + this.replicaSetCheckTimeoutInMilliseconds = replicaSetCheckTimeoutInMilliseconds; + return this; + } + + /** + * Get the failureAction property: The compensating action to perform when a Monitored upgrade encounters monitoring + * policy or health policy violations. Invalid indicates the failure action is invalid. Rollback specifies that the + * upgrade will start rolling back automatically. Manual indicates that the upgrade will switch to UnmonitoredManual + * upgrade mode. + * + * @return the failureAction value. + */ + public RuntimeFailureAction failureAction() { + return this.failureAction; + } + + /** + * Set the failureAction property: The compensating action to perform when a Monitored upgrade encounters monitoring + * policy or health policy violations. Invalid indicates the failure action is invalid. Rollback specifies that the + * upgrade will start rolling back automatically. Manual indicates that the upgrade will switch to UnmonitoredManual + * upgrade mode. + * + * @param failureAction the failureAction value to set. + * @return the RuntimeRollingUpgradeUpdateMonitoringPolicy object itself. + */ + public RuntimeRollingUpgradeUpdateMonitoringPolicy withFailureAction(RuntimeFailureAction failureAction) { + this.failureAction = failureAction; + return this; + } + + /** + * Get the healthCheckWaitDurationInMilliseconds property: The amount of time to wait after completing an upgrade + * domain before applying health policies. It is first interpreted as a string representing an ISO 8601 duration. If + * that fails, then it is interpreted as a number representing the total number of milliseconds. + * + * @return the healthCheckWaitDurationInMilliseconds value. + */ + public String healthCheckWaitDurationInMilliseconds() { + return this.healthCheckWaitDurationInMilliseconds; + } + + /** + * Set the healthCheckWaitDurationInMilliseconds property: The amount of time to wait after completing an upgrade + * domain before applying health policies. It is first interpreted as a string representing an ISO 8601 duration. If + * that fails, then it is interpreted as a number representing the total number of milliseconds. + * + * @param healthCheckWaitDurationInMilliseconds the healthCheckWaitDurationInMilliseconds value to set. + * @return the RuntimeRollingUpgradeUpdateMonitoringPolicy object itself. + */ + public RuntimeRollingUpgradeUpdateMonitoringPolicy + withHealthCheckWaitDurationInMilliseconds(String healthCheckWaitDurationInMilliseconds) { + this.healthCheckWaitDurationInMilliseconds = healthCheckWaitDurationInMilliseconds; + return this; + } + + /** + * Get the healthCheckStableDurationInMilliseconds property: The amount of time that the application or cluster must + * remain healthy before the upgrade proceeds to the next upgrade domain. It is first interpreted as a string + * representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total + * number of milliseconds. + * + * @return the healthCheckStableDurationInMilliseconds value. + */ + public String healthCheckStableDurationInMilliseconds() { + return this.healthCheckStableDurationInMilliseconds; + } + + /** + * Set the healthCheckStableDurationInMilliseconds property: The amount of time that the application or cluster must + * remain healthy before the upgrade proceeds to the next upgrade domain. It is first interpreted as a string + * representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total + * number of milliseconds. + * + * @param healthCheckStableDurationInMilliseconds the healthCheckStableDurationInMilliseconds value to set. + * @return the RuntimeRollingUpgradeUpdateMonitoringPolicy object itself. + */ + public RuntimeRollingUpgradeUpdateMonitoringPolicy + withHealthCheckStableDurationInMilliseconds(String healthCheckStableDurationInMilliseconds) { + this.healthCheckStableDurationInMilliseconds = healthCheckStableDurationInMilliseconds; + return this; + } + + /** + * Get the healthCheckRetryTimeoutInMilliseconds property: The amount of time to retry health evaluation when the + * application or cluster is unhealthy before FailureAction is executed. It is first interpreted as a string + * representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total + * number of milliseconds. + * + * @return the healthCheckRetryTimeoutInMilliseconds value. + */ + public String healthCheckRetryTimeoutInMilliseconds() { + return this.healthCheckRetryTimeoutInMilliseconds; + } + + /** + * Set the healthCheckRetryTimeoutInMilliseconds property: The amount of time to retry health evaluation when the + * application or cluster is unhealthy before FailureAction is executed. It is first interpreted as a string + * representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total + * number of milliseconds. + * + * @param healthCheckRetryTimeoutInMilliseconds the healthCheckRetryTimeoutInMilliseconds value to set. + * @return the RuntimeRollingUpgradeUpdateMonitoringPolicy object itself. + */ + public RuntimeRollingUpgradeUpdateMonitoringPolicy + withHealthCheckRetryTimeoutInMilliseconds(String healthCheckRetryTimeoutInMilliseconds) { + this.healthCheckRetryTimeoutInMilliseconds = healthCheckRetryTimeoutInMilliseconds; + return this; + } + + /** + * Get the upgradeTimeoutInMilliseconds property: The amount of time the overall upgrade has to complete before + * FailureAction is executed. It is first interpreted as a string representing an ISO 8601 duration. If that fails, + * then it is interpreted as a number representing the total number of milliseconds. + * + * @return the upgradeTimeoutInMilliseconds value. + */ + public String upgradeTimeoutInMilliseconds() { + return this.upgradeTimeoutInMilliseconds; + } + + /** + * Set the upgradeTimeoutInMilliseconds property: The amount of time the overall upgrade has to complete before + * FailureAction is executed. It is first interpreted as a string representing an ISO 8601 duration. If that fails, + * then it is interpreted as a number representing the total number of milliseconds. + * + * @param upgradeTimeoutInMilliseconds the upgradeTimeoutInMilliseconds value to set. + * @return the RuntimeRollingUpgradeUpdateMonitoringPolicy object itself. + */ + public RuntimeRollingUpgradeUpdateMonitoringPolicy + withUpgradeTimeoutInMilliseconds(String upgradeTimeoutInMilliseconds) { + this.upgradeTimeoutInMilliseconds = upgradeTimeoutInMilliseconds; + return this; + } + + /** + * Get the upgradeDomainTimeoutInMilliseconds property: The amount of time each upgrade domain has to complete + * before FailureAction is executed. It is first interpreted as a string representing an ISO 8601 duration. If that + * fails, then it is interpreted as a number representing the total number of milliseconds. + * + * @return the upgradeDomainTimeoutInMilliseconds value. + */ + public String upgradeDomainTimeoutInMilliseconds() { + return this.upgradeDomainTimeoutInMilliseconds; + } + + /** + * Set the upgradeDomainTimeoutInMilliseconds property: The amount of time each upgrade domain has to complete + * before FailureAction is executed. It is first interpreted as a string representing an ISO 8601 duration. If that + * fails, then it is interpreted as a number representing the total number of milliseconds. + * + * @param upgradeDomainTimeoutInMilliseconds the upgradeDomainTimeoutInMilliseconds value to set. + * @return the RuntimeRollingUpgradeUpdateMonitoringPolicy object itself. + */ + public RuntimeRollingUpgradeUpdateMonitoringPolicy + withUpgradeDomainTimeoutInMilliseconds(String upgradeDomainTimeoutInMilliseconds) { + this.upgradeDomainTimeoutInMilliseconds = upgradeDomainTimeoutInMilliseconds; + return this; + } + + /** + * Get the instanceCloseDelayDurationInSeconds property: Duration in seconds, to wait before a stateless instance is + * closed, to allow the active requests to drain gracefully. This would be effective when the instance is closing + * during the application/cluster upgrade, only for those instances which have a non-zero delay duration configured + * in the service description. + * + * @return the instanceCloseDelayDurationInSeconds value. + */ + public Long instanceCloseDelayDurationInSeconds() { + return this.instanceCloseDelayDurationInSeconds; + } + + /** + * Set the instanceCloseDelayDurationInSeconds property: Duration in seconds, to wait before a stateless instance is + * closed, to allow the active requests to drain gracefully. This would be effective when the instance is closing + * during the application/cluster upgrade, only for those instances which have a non-zero delay duration configured + * in the service description. + * + * @param instanceCloseDelayDurationInSeconds the instanceCloseDelayDurationInSeconds value to set. + * @return the RuntimeRollingUpgradeUpdateMonitoringPolicy object itself. + */ + public RuntimeRollingUpgradeUpdateMonitoringPolicy + withInstanceCloseDelayDurationInSeconds(Long instanceCloseDelayDurationInSeconds) { + this.instanceCloseDelayDurationInSeconds = instanceCloseDelayDurationInSeconds; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("rollingUpgradeMode", + this.rollingUpgradeMode == null ? null : this.rollingUpgradeMode.toString()); + jsonWriter.writeBooleanField("forceRestart", this.forceRestart); + jsonWriter.writeNumberField("replicaSetCheckTimeoutInMilliseconds", this.replicaSetCheckTimeoutInMilliseconds); + jsonWriter.writeStringField("failureAction", this.failureAction == null ? null : this.failureAction.toString()); + jsonWriter.writeStringField("healthCheckWaitDurationInMilliseconds", + this.healthCheckWaitDurationInMilliseconds); + jsonWriter.writeStringField("healthCheckStableDurationInMilliseconds", + this.healthCheckStableDurationInMilliseconds); + jsonWriter.writeStringField("healthCheckRetryTimeoutInMilliseconds", + this.healthCheckRetryTimeoutInMilliseconds); + jsonWriter.writeStringField("upgradeTimeoutInMilliseconds", this.upgradeTimeoutInMilliseconds); + jsonWriter.writeStringField("upgradeDomainTimeoutInMilliseconds", this.upgradeDomainTimeoutInMilliseconds); + jsonWriter.writeNumberField("instanceCloseDelayDurationInSeconds", this.instanceCloseDelayDurationInSeconds); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RuntimeRollingUpgradeUpdateMonitoringPolicy from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RuntimeRollingUpgradeUpdateMonitoringPolicy 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 RuntimeRollingUpgradeUpdateMonitoringPolicy. + */ + public static RuntimeRollingUpgradeUpdateMonitoringPolicy fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RuntimeRollingUpgradeUpdateMonitoringPolicy deserializedRuntimeRollingUpgradeUpdateMonitoringPolicy + = new RuntimeRollingUpgradeUpdateMonitoringPolicy(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("rollingUpgradeMode".equals(fieldName)) { + deserializedRuntimeRollingUpgradeUpdateMonitoringPolicy.rollingUpgradeMode + = RuntimeRollingUpgradeMode.fromString(reader.getString()); + } else if ("forceRestart".equals(fieldName)) { + deserializedRuntimeRollingUpgradeUpdateMonitoringPolicy.forceRestart + = reader.getNullable(JsonReader::getBoolean); + } else if ("replicaSetCheckTimeoutInMilliseconds".equals(fieldName)) { + deserializedRuntimeRollingUpgradeUpdateMonitoringPolicy.replicaSetCheckTimeoutInMilliseconds + = reader.getNullable(JsonReader::getLong); + } else if ("failureAction".equals(fieldName)) { + deserializedRuntimeRollingUpgradeUpdateMonitoringPolicy.failureAction + = RuntimeFailureAction.fromString(reader.getString()); + } else if ("healthCheckWaitDurationInMilliseconds".equals(fieldName)) { + deserializedRuntimeRollingUpgradeUpdateMonitoringPolicy.healthCheckWaitDurationInMilliseconds + = reader.getString(); + } else if ("healthCheckStableDurationInMilliseconds".equals(fieldName)) { + deserializedRuntimeRollingUpgradeUpdateMonitoringPolicy.healthCheckStableDurationInMilliseconds + = reader.getString(); + } else if ("healthCheckRetryTimeoutInMilliseconds".equals(fieldName)) { + deserializedRuntimeRollingUpgradeUpdateMonitoringPolicy.healthCheckRetryTimeoutInMilliseconds + = reader.getString(); + } else if ("upgradeTimeoutInMilliseconds".equals(fieldName)) { + deserializedRuntimeRollingUpgradeUpdateMonitoringPolicy.upgradeTimeoutInMilliseconds + = reader.getString(); + } else if ("upgradeDomainTimeoutInMilliseconds".equals(fieldName)) { + deserializedRuntimeRollingUpgradeUpdateMonitoringPolicy.upgradeDomainTimeoutInMilliseconds + = reader.getString(); + } else if ("instanceCloseDelayDurationInSeconds".equals(fieldName)) { + deserializedRuntimeRollingUpgradeUpdateMonitoringPolicy.instanceCloseDelayDurationInSeconds + = reader.getNullable(JsonReader::getLong); + } else { + reader.skipChildren(); + } + } + + return deserializedRuntimeRollingUpgradeUpdateMonitoringPolicy; + }); + } +} diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeServiceTypeHealthPolicy.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeServiceTypeHealthPolicy.java new file mode 100644 index 000000000000..375a08de9142 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeServiceTypeHealthPolicy.java @@ -0,0 +1,217 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.servicefabricmanagedclusters.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Cluster level definition that represents the health policy used to evaluate the health of services belonging to a + * service type. + */ +@Fluent +public final class RuntimeServiceTypeHealthPolicy implements JsonSerializable { + /* + * The maximum allowed percentage of unhealthy services. + * + * The percentage represents the maximum tolerated percentage of services that can be unhealthy before the + * application is considered in error. + * If the percentage is respected but there is at least one unhealthy service, the health is evaluated as Warning. + * This is calculated by dividing the number of unhealthy services of the specific service type over the total + * number of services of the specific service type. + * The computation rounds up to tolerate one failure on small numbers of services. + */ + private int maxPercentUnhealthyServices; + + /* + * The maximum allowed percentage of unhealthy partitions per service. + * + * The percentage represents the maximum tolerated percentage of partitions that can be unhealthy before the service + * is considered in error. + * If the percentage is respected but there is at least one unhealthy partition, the health is evaluated as Warning. + * The percentage is calculated by dividing the number of unhealthy partitions over the total number of partitions + * in the service. + * The computation rounds up to tolerate one failure on small numbers of partitions. + */ + private int maxPercentUnhealthyPartitionsPerService; + + /* + * The maximum allowed percentage of unhealthy replicas per partition. + * + * The percentage represents the maximum tolerated percentage of replicas that can be unhealthy before the partition + * is considered in error. + * If the percentage is respected but there is at least one unhealthy replica, the health is evaluated as Warning. + * The percentage is calculated by dividing the number of unhealthy replicas over the total number of replicas in + * the partition. + * The computation rounds up to tolerate one failure on small numbers of replicas. + */ + private int maxPercentUnhealthyReplicasPerPartition; + + /** + * Creates an instance of RuntimeServiceTypeHealthPolicy class. + */ + public RuntimeServiceTypeHealthPolicy() { + } + + /** + * Get the maxPercentUnhealthyServices property: The maximum allowed percentage of unhealthy services. + * + * The percentage represents the maximum tolerated percentage of services that can be unhealthy before the + * application is considered in error. + * If the percentage is respected but there is at least one unhealthy service, the health is evaluated as Warning. + * This is calculated by dividing the number of unhealthy services of the specific service type over the total + * number of services of the specific service type. + * The computation rounds up to tolerate one failure on small numbers of services. + * + * @return the maxPercentUnhealthyServices value. + */ + public int maxPercentUnhealthyServices() { + return this.maxPercentUnhealthyServices; + } + + /** + * Set the maxPercentUnhealthyServices property: The maximum allowed percentage of unhealthy services. + * + * The percentage represents the maximum tolerated percentage of services that can be unhealthy before the + * application is considered in error. + * If the percentage is respected but there is at least one unhealthy service, the health is evaluated as Warning. + * This is calculated by dividing the number of unhealthy services of the specific service type over the total + * number of services of the specific service type. + * The computation rounds up to tolerate one failure on small numbers of services. + * + * @param maxPercentUnhealthyServices the maxPercentUnhealthyServices value to set. + * @return the RuntimeServiceTypeHealthPolicy object itself. + */ + public RuntimeServiceTypeHealthPolicy withMaxPercentUnhealthyServices(int maxPercentUnhealthyServices) { + this.maxPercentUnhealthyServices = maxPercentUnhealthyServices; + return this; + } + + /** + * Get the maxPercentUnhealthyPartitionsPerService property: The maximum allowed percentage of unhealthy partitions + * per service. + * + * The percentage represents the maximum tolerated percentage of partitions that can be unhealthy before the service + * is considered in error. + * If the percentage is respected but there is at least one unhealthy partition, the health is evaluated as Warning. + * The percentage is calculated by dividing the number of unhealthy partitions over the total number of partitions + * in the service. + * The computation rounds up to tolerate one failure on small numbers of partitions. + * + * @return the maxPercentUnhealthyPartitionsPerService value. + */ + public int maxPercentUnhealthyPartitionsPerService() { + return this.maxPercentUnhealthyPartitionsPerService; + } + + /** + * Set the maxPercentUnhealthyPartitionsPerService property: The maximum allowed percentage of unhealthy partitions + * per service. + * + * The percentage represents the maximum tolerated percentage of partitions that can be unhealthy before the service + * is considered in error. + * If the percentage is respected but there is at least one unhealthy partition, the health is evaluated as Warning. + * The percentage is calculated by dividing the number of unhealthy partitions over the total number of partitions + * in the service. + * The computation rounds up to tolerate one failure on small numbers of partitions. + * + * @param maxPercentUnhealthyPartitionsPerService the maxPercentUnhealthyPartitionsPerService value to set. + * @return the RuntimeServiceTypeHealthPolicy object itself. + */ + public RuntimeServiceTypeHealthPolicy + withMaxPercentUnhealthyPartitionsPerService(int maxPercentUnhealthyPartitionsPerService) { + this.maxPercentUnhealthyPartitionsPerService = maxPercentUnhealthyPartitionsPerService; + return this; + } + + /** + * Get the maxPercentUnhealthyReplicasPerPartition property: The maximum allowed percentage of unhealthy replicas + * per partition. + * + * The percentage represents the maximum tolerated percentage of replicas that can be unhealthy before the partition + * is considered in error. + * If the percentage is respected but there is at least one unhealthy replica, the health is evaluated as Warning. + * The percentage is calculated by dividing the number of unhealthy replicas over the total number of replicas in + * the partition. + * The computation rounds up to tolerate one failure on small numbers of replicas. + * + * @return the maxPercentUnhealthyReplicasPerPartition value. + */ + public int maxPercentUnhealthyReplicasPerPartition() { + return this.maxPercentUnhealthyReplicasPerPartition; + } + + /** + * Set the maxPercentUnhealthyReplicasPerPartition property: The maximum allowed percentage of unhealthy replicas + * per partition. + * + * The percentage represents the maximum tolerated percentage of replicas that can be unhealthy before the partition + * is considered in error. + * If the percentage is respected but there is at least one unhealthy replica, the health is evaluated as Warning. + * The percentage is calculated by dividing the number of unhealthy replicas over the total number of replicas in + * the partition. + * The computation rounds up to tolerate one failure on small numbers of replicas. + * + * @param maxPercentUnhealthyReplicasPerPartition the maxPercentUnhealthyReplicasPerPartition value to set. + * @return the RuntimeServiceTypeHealthPolicy object itself. + */ + public RuntimeServiceTypeHealthPolicy + withMaxPercentUnhealthyReplicasPerPartition(int maxPercentUnhealthyReplicasPerPartition) { + this.maxPercentUnhealthyReplicasPerPartition = maxPercentUnhealthyReplicasPerPartition; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeIntField("maxPercentUnhealthyServices", this.maxPercentUnhealthyServices); + jsonWriter.writeIntField("maxPercentUnhealthyPartitionsPerService", + this.maxPercentUnhealthyPartitionsPerService); + jsonWriter.writeIntField("maxPercentUnhealthyReplicasPerPartition", + this.maxPercentUnhealthyReplicasPerPartition); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RuntimeServiceTypeHealthPolicy from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RuntimeServiceTypeHealthPolicy 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 RuntimeServiceTypeHealthPolicy. + */ + public static RuntimeServiceTypeHealthPolicy fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RuntimeServiceTypeHealthPolicy deserializedRuntimeServiceTypeHealthPolicy + = new RuntimeServiceTypeHealthPolicy(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("maxPercentUnhealthyServices".equals(fieldName)) { + deserializedRuntimeServiceTypeHealthPolicy.maxPercentUnhealthyServices = reader.getInt(); + } else if ("maxPercentUnhealthyPartitionsPerService".equals(fieldName)) { + deserializedRuntimeServiceTypeHealthPolicy.maxPercentUnhealthyPartitionsPerService + = reader.getInt(); + } else if ("maxPercentUnhealthyReplicasPerPartition".equals(fieldName)) { + deserializedRuntimeServiceTypeHealthPolicy.maxPercentUnhealthyReplicasPerPartition + = reader.getInt(); + } else { + reader.skipChildren(); + } + } + + return deserializedRuntimeServiceTypeHealthPolicy; + }); + } +} diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeUpdateApplicationUpgradeParameters.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeUpdateApplicationUpgradeParameters.java new file mode 100644 index 000000000000..f607a97ef4b7 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeUpdateApplicationUpgradeParameters.java @@ -0,0 +1,181 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.servicefabricmanagedclusters.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Parameters for the Update Upgrade action. + */ +@Fluent +public final class RuntimeUpdateApplicationUpgradeParameters + implements JsonSerializable { + /* + * The name of the application, including the 'fabric:' URI scheme. + */ + private String name; + + /* + * The kind of the upgrade. + */ + private RuntimeUpgradeKind upgradeKind; + + /* + * Defines a health policy used to evaluate the health of an application or one of its children entities. + */ + private RuntimeApplicationHealthPolicy applicationHealthPolicy; + + /* + * Describes the parameters for updating a rolling upgrade of application or cluster and a monitoring policy. + */ + private RuntimeRollingUpgradeUpdateMonitoringPolicy updateDescription; + + /** + * Creates an instance of RuntimeUpdateApplicationUpgradeParameters class. + */ + public RuntimeUpdateApplicationUpgradeParameters() { + } + + /** + * Get the name property: The name of the application, including the 'fabric:' URI scheme. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: The name of the application, including the 'fabric:' URI scheme. + * + * @param name the name value to set. + * @return the RuntimeUpdateApplicationUpgradeParameters object itself. + */ + public RuntimeUpdateApplicationUpgradeParameters withName(String name) { + this.name = name; + return this; + } + + /** + * Get the upgradeKind property: The kind of the upgrade. + * + * @return the upgradeKind value. + */ + public RuntimeUpgradeKind upgradeKind() { + return this.upgradeKind; + } + + /** + * Set the upgradeKind property: The kind of the upgrade. + * + * @param upgradeKind the upgradeKind value to set. + * @return the RuntimeUpdateApplicationUpgradeParameters object itself. + */ + public RuntimeUpdateApplicationUpgradeParameters withUpgradeKind(RuntimeUpgradeKind upgradeKind) { + this.upgradeKind = upgradeKind; + return this; + } + + /** + * Get the applicationHealthPolicy property: Defines a health policy used to evaluate the health of an application + * or one of its children entities. + * + * @return the applicationHealthPolicy value. + */ + public RuntimeApplicationHealthPolicy applicationHealthPolicy() { + return this.applicationHealthPolicy; + } + + /** + * Set the applicationHealthPolicy property: Defines a health policy used to evaluate the health of an application + * or one of its children entities. + * + * @param applicationHealthPolicy the applicationHealthPolicy value to set. + * @return the RuntimeUpdateApplicationUpgradeParameters object itself. + */ + public RuntimeUpdateApplicationUpgradeParameters + withApplicationHealthPolicy(RuntimeApplicationHealthPolicy applicationHealthPolicy) { + this.applicationHealthPolicy = applicationHealthPolicy; + return this; + } + + /** + * Get the updateDescription property: Describes the parameters for updating a rolling upgrade of application or + * cluster and a monitoring policy. + * + * @return the updateDescription value. + */ + public RuntimeRollingUpgradeUpdateMonitoringPolicy updateDescription() { + return this.updateDescription; + } + + /** + * Set the updateDescription property: Describes the parameters for updating a rolling upgrade of application or + * cluster and a monitoring policy. + * + * @param updateDescription the updateDescription value to set. + * @return the RuntimeUpdateApplicationUpgradeParameters object itself. + */ + public RuntimeUpdateApplicationUpgradeParameters + withUpdateDescription(RuntimeRollingUpgradeUpdateMonitoringPolicy updateDescription) { + this.updateDescription = updateDescription; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("upgradeKind", this.upgradeKind == null ? null : this.upgradeKind.toString()); + jsonWriter.writeJsonField("applicationHealthPolicy", this.applicationHealthPolicy); + jsonWriter.writeJsonField("updateDescription", this.updateDescription); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RuntimeUpdateApplicationUpgradeParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RuntimeUpdateApplicationUpgradeParameters 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 RuntimeUpdateApplicationUpgradeParameters. + */ + public static RuntimeUpdateApplicationUpgradeParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RuntimeUpdateApplicationUpgradeParameters deserializedRuntimeUpdateApplicationUpgradeParameters + = new RuntimeUpdateApplicationUpgradeParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedRuntimeUpdateApplicationUpgradeParameters.name = reader.getString(); + } else if ("upgradeKind".equals(fieldName)) { + deserializedRuntimeUpdateApplicationUpgradeParameters.upgradeKind + = RuntimeUpgradeKind.fromString(reader.getString()); + } else if ("applicationHealthPolicy".equals(fieldName)) { + deserializedRuntimeUpdateApplicationUpgradeParameters.applicationHealthPolicy + = RuntimeApplicationHealthPolicy.fromJson(reader); + } else if ("updateDescription".equals(fieldName)) { + deserializedRuntimeUpdateApplicationUpgradeParameters.updateDescription + = RuntimeRollingUpgradeUpdateMonitoringPolicy.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedRuntimeUpdateApplicationUpgradeParameters; + }); + } +} diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeUpgradeKind.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeUpgradeKind.java new file mode 100644 index 000000000000..f346430d945b --- /dev/null +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeUpgradeKind.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.servicefabricmanagedclusters.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Cluster level definition for the kind of upgrade. + */ +public final class RuntimeUpgradeKind extends ExpandableStringEnum { + /** + * The upgrade progresses one upgrade domain at a time. + */ + public static final RuntimeUpgradeKind ROLLING = fromString("Rolling"); + + /** + * Creates a new instance of RuntimeUpgradeKind value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public RuntimeUpgradeKind() { + } + + /** + * Creates or finds a RuntimeUpgradeKind from its string representation. + * + * @param name a name to look for. + * @return the corresponding RuntimeUpgradeKind. + */ + public static RuntimeUpgradeKind fromString(String name) { + return fromString(name, RuntimeUpgradeKind.class); + } + + /** + * Gets known RuntimeUpgradeKind values. + * + * @return known RuntimeUpgradeKind values. + */ + public static Collection values() { + return values(RuntimeUpgradeKind.class); + } +} diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceResource.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceResource.java index 15ee9e179cea..5d04d7f0d797 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceResource.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceResource.java @@ -252,4 +252,25 @@ interface WithTags { * @return the refreshed resource. */ ServiceResource refresh(Context context); + + /** + * A long-running resource action. + * + * @param parameters The parameters for restarting replicas. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void restartReplica(RestartReplicaRequest parameters); + + /** + * A long-running resource action. + * + * @param parameters The parameters for restarting replicas. + * @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. + */ + void restartReplica(RestartReplicaRequest parameters, Context context); } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/Services.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/Services.java index 525801838065..306723c06fed 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/Services.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/Services.java @@ -107,6 +107,37 @@ PagedIterable listByApplications(String resourceGroupName, Stri PagedIterable listByApplications(String resourceGroupName, String clusterName, String applicationName, Context context); + /** + * A long-running resource action. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param serviceName The name of the service resource in the format of {applicationName}~{serviceName}. + * @param parameters The parameters for restarting replicas. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void restartReplica(String resourceGroupName, String clusterName, String applicationName, String serviceName, + RestartReplicaRequest parameters); + + /** + * A long-running resource action. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param serviceName The name of the service resource in the format of {applicationName}~{serviceName}. + * @param parameters The parameters for restarting replicas. + * @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. + */ + void restartReplica(String resourceGroupName, String clusterName, String applicationName, String serviceName, + RestartReplicaRequest parameters, Context context); + /** * Get a Service Fabric service resource created or in the process of being created in the Service Fabric managed * application resource. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/resources/META-INF/azure-resourcemanager-servicefabricmanagedclusters_apiview_properties.json b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/resources/META-INF/azure-resourcemanager-servicefabricmanagedclusters_apiview_properties.json index c2ee5c0b925a..d3248ef0be3f 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/resources/META-INF/azure-resourcemanager-servicefabricmanagedclusters_apiview_properties.json +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/resources/META-INF/azure-resourcemanager-servicefabricmanagedclusters_apiview_properties.json @@ -24,19 +24,25 @@ "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient": "Microsoft.ServiceFabric.Applications", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.beginCreateOrUpdate": "Microsoft.ServiceFabric.Applications.createOrUpdate", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.beginDelete": "Microsoft.ServiceFabric.Applications.delete", + "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.beginFetchHealth": "Microsoft.ServiceFabric.Applications.fetchHealth", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.beginReadUpgrade": "Microsoft.ServiceFabric.Applications.readUpgrade", + "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.beginRestartDeployedCodePackage": "Microsoft.ServiceFabric.Applications.restartDeployedCodePackage", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.beginResumeUpgrade": "Microsoft.ServiceFabric.Applications.resumeUpgrade", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.beginStartRollback": "Microsoft.ServiceFabric.Applications.startRollback", + "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.beginUpdate": "Microsoft.ServiceFabric.Applications.update", + "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.beginUpdateUpgrade": "Microsoft.ServiceFabric.Applications.updateUpgrade", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.createOrUpdate": "Microsoft.ServiceFabric.Applications.createOrUpdate", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.delete": "Microsoft.ServiceFabric.Applications.delete", + "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.fetchHealth": "Microsoft.ServiceFabric.Applications.fetchHealth", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.get": "Microsoft.ServiceFabric.Applications.get", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.getWithResponse": "Microsoft.ServiceFabric.Applications.get", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.list": "Microsoft.ServiceFabric.Applications.list", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.readUpgrade": "Microsoft.ServiceFabric.Applications.readUpgrade", + "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.restartDeployedCodePackage": "Microsoft.ServiceFabric.Applications.restartDeployedCodePackage", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.resumeUpgrade": "Microsoft.ServiceFabric.Applications.resumeUpgrade", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.startRollback": "Microsoft.ServiceFabric.Applications.startRollback", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.update": "Microsoft.ServiceFabric.Applications.update", - "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.updateWithResponse": "Microsoft.ServiceFabric.Applications.update", + "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.updateUpgrade": "Microsoft.ServiceFabric.Applications.updateUpgrade", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedApplyMaintenanceWindowsClient": "Microsoft.ServiceFabric.ManagedApplyMaintenanceWindow", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedApplyMaintenanceWindowsClient.post": "Microsoft.ServiceFabric.ManagedApplyMaintenanceWindow.post", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedApplyMaintenanceWindowsClient.postWithResponse": "Microsoft.ServiceFabric.ManagedApplyMaintenanceWindow.post", @@ -57,6 +63,7 @@ "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.beginDelete": "Microsoft.ServiceFabric.ManagedClusters.delete", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.beginStartFaultSimulation": "Microsoft.ServiceFabric.ManagedClusters.startFaultSimulation", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.beginStopFaultSimulation": "Microsoft.ServiceFabric.ManagedClusters.stopFaultSimulation", + "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.beginUpdate": "Microsoft.ServiceFabric.ManagedClusters.update", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.createOrUpdate": "Microsoft.ServiceFabric.ManagedClusters.createOrUpdate", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.delete": "Microsoft.ServiceFabric.ManagedClusters.delete", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.getByResourceGroup": "Microsoft.ServiceFabric.ManagedClusters.get", @@ -69,7 +76,6 @@ "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.startFaultSimulation": "Microsoft.ServiceFabric.ManagedClusters.startFaultSimulation", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.stopFaultSimulation": "Microsoft.ServiceFabric.ManagedClusters.stopFaultSimulation", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.update": "Microsoft.ServiceFabric.ManagedClusters.update", - "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.updateWithResponse": "Microsoft.ServiceFabric.ManagedClusters.update", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedMaintenanceWindowStatusesClient": "Microsoft.ServiceFabric.ManagedMaintenanceWindowStatus", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedMaintenanceWindowStatusesClient.get": "Microsoft.ServiceFabric.ManagedMaintenanceWindowStatus.get", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedMaintenanceWindowStatusesClient.getWithResponse": "Microsoft.ServiceFabric.ManagedMaintenanceWindowStatus.get", @@ -114,11 +120,13 @@ "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient": "Microsoft.ServiceFabric.Services", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.beginCreateOrUpdate": "Microsoft.ServiceFabric.Services.createOrUpdate", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.beginDelete": "Microsoft.ServiceFabric.Services.delete", + "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.beginRestartReplica": "Microsoft.ServiceFabric.Services.restartReplica", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.createOrUpdate": "Microsoft.ServiceFabric.Services.createOrUpdate", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.delete": "Microsoft.ServiceFabric.Services.delete", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.get": "Microsoft.ServiceFabric.Services.get", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.getWithResponse": "Microsoft.ServiceFabric.Services.get", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.listByApplications": "Microsoft.ServiceFabric.Services.listByApplications", + "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.restartReplica": "Microsoft.ServiceFabric.Services.restartReplica", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.update": "Microsoft.ServiceFabric.Services.update", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.updateWithResponse": "Microsoft.ServiceFabric.Services.update", "com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ApplicationResourceInner": "Microsoft.ServiceFabric.ApplicationResource", @@ -155,11 +163,13 @@ "com.azure.resourcemanager.servicefabricmanagedclusters.models.Access": "Microsoft.ServiceFabric.Access", "com.azure.resourcemanager.servicefabricmanagedclusters.models.AddRemoveIncrementalNamedPartitionScalingMechanism": "Microsoft.ServiceFabric.AddRemoveIncrementalNamedPartitionScalingMechanism", "com.azure.resourcemanager.servicefabricmanagedclusters.models.AdditionalNetworkInterfaceConfiguration": "Microsoft.ServiceFabric.AdditionalNetworkInterfaceConfiguration", + "com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationFetchHealthRequest": "Microsoft.ServiceFabric.ApplicationFetchHealthRequest", "com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationHealthPolicy": "Microsoft.ServiceFabric.ApplicationHealthPolicy", "com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationTypeUpdateParameters": "Microsoft.ServiceFabric.ApplicationTypeUpdateParameters", "com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationTypeVersionUpdateParameters": "Microsoft.ServiceFabric.ApplicationTypeVersionUpdateParameters", "com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationTypeVersionsCleanupPolicy": "Microsoft.ServiceFabric.ApplicationTypeVersionsCleanupPolicy", "com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationUpdateParameters": "Microsoft.ServiceFabric.ApplicationUpdateParameters", + "com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationUpdateParametersProperties": "Microsoft.ServiceFabric.ApplicationUpdateParametersProperties", "com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationUpgradePolicy": "Microsoft.ServiceFabric.ApplicationUpgradePolicy", "com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationUserAssignedIdentity": "Microsoft.ServiceFabric.ApplicationUserAssignedIdentity", "com.azure.resourcemanager.servicefabricmanagedclusters.models.AutoGeneratedDomainNameLabelScope": "Microsoft.ServiceFabric.AutoGeneratedDomainNameLabelScope", @@ -188,6 +198,7 @@ "com.azure.resourcemanager.servicefabricmanagedclusters.models.FaultSimulationIdContent": "Microsoft.ServiceFabric.FaultSimulationIdContent", "com.azure.resourcemanager.servicefabricmanagedclusters.models.FaultSimulationStatus": "Microsoft.ServiceFabric.FaultSimulationStatus", "com.azure.resourcemanager.servicefabricmanagedclusters.models.FrontendConfiguration": "Microsoft.ServiceFabric.FrontendConfiguration", + "com.azure.resourcemanager.servicefabricmanagedclusters.models.HealthFilter": "Microsoft.ServiceFabric.HealthFilter", "com.azure.resourcemanager.servicefabricmanagedclusters.models.IpAddressType": "Microsoft.ServiceFabric.IPAddressType", "com.azure.resourcemanager.servicefabricmanagedclusters.models.IpConfiguration": "Microsoft.ServiceFabric.IpConfiguration", "com.azure.resourcemanager.servicefabricmanagedclusters.models.IpConfigurationPublicIpAddressConfiguration": "Microsoft.ServiceFabric.PublicIPAddressConfiguration", @@ -222,9 +233,19 @@ "com.azure.resourcemanager.servicefabricmanagedclusters.models.Protocol": "Microsoft.ServiceFabric.Protocol", "com.azure.resourcemanager.servicefabricmanagedclusters.models.PublicIpAddressVersion": "Microsoft.ServiceFabric.PublicIPAddressVersion", "com.azure.resourcemanager.servicefabricmanagedclusters.models.ResourceAzStatus": "Microsoft.ServiceFabric.ResourceAzStatus", + "com.azure.resourcemanager.servicefabricmanagedclusters.models.RestartDeployedCodePackageRequest": "Microsoft.ServiceFabric.RestartDeployedCodePackageRequest", + "com.azure.resourcemanager.servicefabricmanagedclusters.models.RestartKind": "Microsoft.ServiceFabric.RestartKind", + "com.azure.resourcemanager.servicefabricmanagedclusters.models.RestartReplicaRequest": "Microsoft.ServiceFabric.RestartReplicaRequest", "com.azure.resourcemanager.servicefabricmanagedclusters.models.RollingUpgradeMode": "Microsoft.ServiceFabric.RollingUpgradeMode", "com.azure.resourcemanager.servicefabricmanagedclusters.models.RollingUpgradeMonitoringPolicy": "Microsoft.ServiceFabric.RollingUpgradeMonitoringPolicy", + "com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeApplicationHealthPolicy": "Microsoft.ServiceFabric.RuntimeApplicationHealthPolicy", + "com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeFailureAction": "Microsoft.ServiceFabric.RuntimeFailureAction", "com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeResumeApplicationUpgradeParameters": "Microsoft.ServiceFabric.RuntimeResumeApplicationUpgradeParameters", + "com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeRollingUpgradeMode": "Microsoft.ServiceFabric.RuntimeRollingUpgradeMode", + "com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeRollingUpgradeUpdateMonitoringPolicy": "Microsoft.ServiceFabric.RuntimeRollingUpgradeUpdateMonitoringPolicy", + "com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeServiceTypeHealthPolicy": "Microsoft.ServiceFabric.RuntimeServiceTypeHealthPolicy", + "com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeUpdateApplicationUpgradeParameters": "Microsoft.ServiceFabric.RuntimeUpdateApplicationUpgradeParameters", + "com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeUpgradeKind": "Microsoft.ServiceFabric.RuntimeUpgradeKind", "com.azure.resourcemanager.servicefabricmanagedclusters.models.ScalingMechanism": "Microsoft.ServiceFabric.ScalingMechanism", "com.azure.resourcemanager.servicefabricmanagedclusters.models.ScalingPolicy": "Microsoft.ServiceFabric.ScalingPolicy", "com.azure.resourcemanager.servicefabricmanagedclusters.models.ScalingTrigger": "Microsoft.ServiceFabric.ScalingTrigger", diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/resources/META-INF/azure-resourcemanager-servicefabricmanagedclusters_metadata.json b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/resources/META-INF/azure-resourcemanager-servicefabricmanagedclusters_metadata.json index 3054efc976b4..832c790c231d 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/resources/META-INF/azure-resourcemanager-servicefabricmanagedclusters_metadata.json +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/resources/META-INF/azure-resourcemanager-servicefabricmanagedclusters_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersion":"2025-06-01-preview","crossLanguageDefinitions":{"com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypeVersionsClient":"Microsoft.ServiceFabric.ApplicationTypeVersions","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypeVersionsClient.beginCreateOrUpdate":"Microsoft.ServiceFabric.ApplicationTypeVersions.createOrUpdate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypeVersionsClient.beginDelete":"Microsoft.ServiceFabric.ApplicationTypeVersions.delete","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypeVersionsClient.createOrUpdate":"Microsoft.ServiceFabric.ApplicationTypeVersions.createOrUpdate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypeVersionsClient.delete":"Microsoft.ServiceFabric.ApplicationTypeVersions.delete","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypeVersionsClient.get":"Microsoft.ServiceFabric.ApplicationTypeVersions.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypeVersionsClient.getWithResponse":"Microsoft.ServiceFabric.ApplicationTypeVersions.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypeVersionsClient.listByApplicationTypes":"Microsoft.ServiceFabric.ApplicationTypeVersions.listByApplicationTypes","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypeVersionsClient.update":"Microsoft.ServiceFabric.ApplicationTypeVersions.update","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypeVersionsClient.updateWithResponse":"Microsoft.ServiceFabric.ApplicationTypeVersions.update","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypesClient":"Microsoft.ServiceFabric.ApplicationTypes","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypesClient.beginDelete":"Microsoft.ServiceFabric.ApplicationTypes.delete","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypesClient.createOrUpdate":"Microsoft.ServiceFabric.ApplicationTypes.createOrUpdate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypesClient.createOrUpdateWithResponse":"Microsoft.ServiceFabric.ApplicationTypes.createOrUpdate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypesClient.delete":"Microsoft.ServiceFabric.ApplicationTypes.delete","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypesClient.get":"Microsoft.ServiceFabric.ApplicationTypes.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypesClient.getWithResponse":"Microsoft.ServiceFabric.ApplicationTypes.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypesClient.list":"Microsoft.ServiceFabric.ApplicationTypes.list","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypesClient.update":"Microsoft.ServiceFabric.ApplicationTypes.update","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypesClient.updateWithResponse":"Microsoft.ServiceFabric.ApplicationTypes.update","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient":"Microsoft.ServiceFabric.Applications","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.beginCreateOrUpdate":"Microsoft.ServiceFabric.Applications.createOrUpdate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.beginDelete":"Microsoft.ServiceFabric.Applications.delete","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.beginReadUpgrade":"Microsoft.ServiceFabric.Applications.readUpgrade","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.beginResumeUpgrade":"Microsoft.ServiceFabric.Applications.resumeUpgrade","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.beginStartRollback":"Microsoft.ServiceFabric.Applications.startRollback","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.createOrUpdate":"Microsoft.ServiceFabric.Applications.createOrUpdate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.delete":"Microsoft.ServiceFabric.Applications.delete","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.get":"Microsoft.ServiceFabric.Applications.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.getWithResponse":"Microsoft.ServiceFabric.Applications.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.list":"Microsoft.ServiceFabric.Applications.list","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.readUpgrade":"Microsoft.ServiceFabric.Applications.readUpgrade","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.resumeUpgrade":"Microsoft.ServiceFabric.Applications.resumeUpgrade","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.startRollback":"Microsoft.ServiceFabric.Applications.startRollback","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.update":"Microsoft.ServiceFabric.Applications.update","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.updateWithResponse":"Microsoft.ServiceFabric.Applications.update","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedApplyMaintenanceWindowsClient":"Microsoft.ServiceFabric.ManagedApplyMaintenanceWindow","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedApplyMaintenanceWindowsClient.post":"Microsoft.ServiceFabric.ManagedApplyMaintenanceWindow.post","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedApplyMaintenanceWindowsClient.postWithResponse":"Microsoft.ServiceFabric.ManagedApplyMaintenanceWindow.post","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedAzResiliencyStatusesClient":"Microsoft.ServiceFabric.ManagedAzResiliencyStatus","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedAzResiliencyStatusesClient.get":"Microsoft.ServiceFabric.ManagedAzResiliencyStatus.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedAzResiliencyStatusesClient.getWithResponse":"Microsoft.ServiceFabric.ManagedAzResiliencyStatus.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClusterVersionsClient":"Microsoft.ServiceFabric.ManagedClusterVersion","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClusterVersionsClient.get":"Microsoft.ServiceFabric.ManagedClusterVersion.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClusterVersionsClient.getByEnvironment":"Microsoft.ServiceFabric.ManagedClusterVersion.getByEnvironment","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClusterVersionsClient.getByEnvironmentWithResponse":"Microsoft.ServiceFabric.ManagedClusterVersion.getByEnvironment","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClusterVersionsClient.getWithResponse":"Microsoft.ServiceFabric.ManagedClusterVersion.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClusterVersionsClient.list":"Microsoft.ServiceFabric.ManagedClusterVersion.list","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClusterVersionsClient.listByEnvironment":"Microsoft.ServiceFabric.ManagedClusterVersion.listByEnvironment","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClusterVersionsClient.listByEnvironmentWithResponse":"Microsoft.ServiceFabric.ManagedClusterVersion.listByEnvironment","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClusterVersionsClient.listWithResponse":"Microsoft.ServiceFabric.ManagedClusterVersion.list","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient":"Microsoft.ServiceFabric.ManagedClusters","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.beginCreateOrUpdate":"Microsoft.ServiceFabric.ManagedClusters.createOrUpdate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.beginDelete":"Microsoft.ServiceFabric.ManagedClusters.delete","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.beginStartFaultSimulation":"Microsoft.ServiceFabric.ManagedClusters.startFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.beginStopFaultSimulation":"Microsoft.ServiceFabric.ManagedClusters.stopFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.createOrUpdate":"Microsoft.ServiceFabric.ManagedClusters.createOrUpdate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.delete":"Microsoft.ServiceFabric.ManagedClusters.delete","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.getByResourceGroup":"Microsoft.ServiceFabric.ManagedClusters.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.getByResourceGroupWithResponse":"Microsoft.ServiceFabric.ManagedClusters.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.getFaultSimulation":"Microsoft.ServiceFabric.ManagedClusters.getFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.getFaultSimulationWithResponse":"Microsoft.ServiceFabric.ManagedClusters.getFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.list":"Microsoft.ServiceFabric.ManagedClusters.listBySubscription","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.listByResourceGroup":"Microsoft.ServiceFabric.ManagedClusters.listByResourceGroup","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.listFaultSimulation":"Microsoft.ServiceFabric.ManagedClusters.listFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.startFaultSimulation":"Microsoft.ServiceFabric.ManagedClusters.startFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.stopFaultSimulation":"Microsoft.ServiceFabric.ManagedClusters.stopFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.update":"Microsoft.ServiceFabric.ManagedClusters.update","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.updateWithResponse":"Microsoft.ServiceFabric.ManagedClusters.update","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedMaintenanceWindowStatusesClient":"Microsoft.ServiceFabric.ManagedMaintenanceWindowStatus","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedMaintenanceWindowStatusesClient.get":"Microsoft.ServiceFabric.ManagedMaintenanceWindowStatus.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedMaintenanceWindowStatusesClient.getWithResponse":"Microsoft.ServiceFabric.ManagedMaintenanceWindowStatus.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedUnsupportedVMSizesClient":"Microsoft.ServiceFabric.ManagedUnsupportedVMSizes","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedUnsupportedVMSizesClient.get":"Microsoft.ServiceFabric.ManagedUnsupportedVMSizes.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedUnsupportedVMSizesClient.getWithResponse":"Microsoft.ServiceFabric.ManagedUnsupportedVMSizes.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedUnsupportedVMSizesClient.list":"Microsoft.ServiceFabric.ManagedUnsupportedVMSizes.list","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypeSkusClient":"Microsoft.ServiceFabric.NodeTypeSkus","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypeSkusClient.list":"Microsoft.ServiceFabric.NodeTypeSkus.list","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient":"Microsoft.ServiceFabric.NodeTypes","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.beginCreateOrUpdate":"Microsoft.ServiceFabric.NodeTypes.createOrUpdate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.beginDeallocate":"Microsoft.ServiceFabric.NodeTypes.deallocate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.beginDelete":"Microsoft.ServiceFabric.NodeTypes.delete","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.beginDeleteNode":"Microsoft.ServiceFabric.NodeTypes.deleteNode","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.beginRedeploy":"Microsoft.ServiceFabric.NodeTypes.redeploy","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.beginReimage":"Microsoft.ServiceFabric.NodeTypes.reimage","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.beginRestart":"Microsoft.ServiceFabric.NodeTypes.restart","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.beginStart":"Microsoft.ServiceFabric.NodeTypes.start","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.beginStartFaultSimulation":"Microsoft.ServiceFabric.NodeTypes.startFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.beginStopFaultSimulation":"Microsoft.ServiceFabric.NodeTypes.stopFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.beginUpdate":"Microsoft.ServiceFabric.NodeTypes.update","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.createOrUpdate":"Microsoft.ServiceFabric.NodeTypes.createOrUpdate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.deallocate":"Microsoft.ServiceFabric.NodeTypes.deallocate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.delete":"Microsoft.ServiceFabric.NodeTypes.delete","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.deleteNode":"Microsoft.ServiceFabric.NodeTypes.deleteNode","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.get":"Microsoft.ServiceFabric.NodeTypes.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.getFaultSimulation":"Microsoft.ServiceFabric.NodeTypes.getFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.getFaultSimulationWithResponse":"Microsoft.ServiceFabric.NodeTypes.getFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.getWithResponse":"Microsoft.ServiceFabric.NodeTypes.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.listByManagedClusters":"Microsoft.ServiceFabric.NodeTypes.listByManagedClusters","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.listFaultSimulation":"Microsoft.ServiceFabric.NodeTypes.listFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.redeploy":"Microsoft.ServiceFabric.NodeTypes.redeploy","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.reimage":"Microsoft.ServiceFabric.NodeTypes.reimage","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.restart":"Microsoft.ServiceFabric.NodeTypes.restart","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.start":"Microsoft.ServiceFabric.NodeTypes.start","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.startFaultSimulation":"Microsoft.ServiceFabric.NodeTypes.startFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.stopFaultSimulation":"Microsoft.ServiceFabric.NodeTypes.stopFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.update":"Microsoft.ServiceFabric.NodeTypes.update","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.OperationsClient":"Microsoft.ServiceFabric.Operations","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.OperationsClient.list":"Microsoft.ServiceFabric.Operations.list","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServiceFabricManagedClustersMgmtClient":"Microsoft.ServiceFabric","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient":"Microsoft.ServiceFabric.Services","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.beginCreateOrUpdate":"Microsoft.ServiceFabric.Services.createOrUpdate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.beginDelete":"Microsoft.ServiceFabric.Services.delete","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.createOrUpdate":"Microsoft.ServiceFabric.Services.createOrUpdate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.delete":"Microsoft.ServiceFabric.Services.delete","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.get":"Microsoft.ServiceFabric.Services.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.getWithResponse":"Microsoft.ServiceFabric.Services.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.listByApplications":"Microsoft.ServiceFabric.Services.listByApplications","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.update":"Microsoft.ServiceFabric.Services.update","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.updateWithResponse":"Microsoft.ServiceFabric.Services.update","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ApplicationResourceInner":"Microsoft.ServiceFabric.ApplicationResource","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ApplicationResourceProperties":"Microsoft.ServiceFabric.ApplicationResourceProperties","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ApplicationTypeResourceInner":"Microsoft.ServiceFabric.ApplicationTypeResource","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ApplicationTypeResourceProperties":"Microsoft.ServiceFabric.ApplicationTypeResourceProperties","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ApplicationTypeVersionResourceInner":"Microsoft.ServiceFabric.ApplicationTypeVersionResource","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ApplicationTypeVersionResourceProperties":"Microsoft.ServiceFabric.ApplicationTypeVersionResourceProperties","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.FaultSimulationInner":"Microsoft.ServiceFabric.FaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ManagedAzResiliencyStatusInner":"Microsoft.ServiceFabric.ManagedAzResiliencyStatusContent","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ManagedClusterCodeVersionResultInner":"Microsoft.ServiceFabric.ManagedClusterCodeVersionResult","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ManagedClusterInner":"Microsoft.ServiceFabric.ManagedCluster","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ManagedClusterProperties":"Microsoft.ServiceFabric.ManagedClusterProperties","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ManagedClusterVersionDetails":"Microsoft.ServiceFabric.ManagedClusterVersionDetails","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ManagedMaintenanceWindowStatusInner":"Microsoft.ServiceFabric.ManagedMaintenanceWindowStatusContent","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ManagedVMSizeInner":"Microsoft.ServiceFabric.ManagedVMSize","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.NodeTypeAvailableSkuInner":"Microsoft.ServiceFabric.NodeTypeAvailableSku","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.NodeTypeInner":"Microsoft.ServiceFabric.NodeType","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.NodeTypeProperties":"Microsoft.ServiceFabric.NodeTypeProperties","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.OperationResultInner":"Microsoft.ServiceFabric.OperationResult","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ServiceResourceInner":"Microsoft.ServiceFabric.ServiceResource","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.VMSSExtensionProperties":"Microsoft.ServiceFabric.VMSSExtensionProperties","com.azure.resourcemanager.servicefabricmanagedclusters.implementation.ServiceFabricManagedClustersMgmtClientBuilder":"Microsoft.ServiceFabric","com.azure.resourcemanager.servicefabricmanagedclusters.implementation.models.ApplicationResourceList":"Microsoft.ServiceFabric.ApplicationResourceList","com.azure.resourcemanager.servicefabricmanagedclusters.implementation.models.ApplicationTypeResourceList":"Microsoft.ServiceFabric.ApplicationTypeResourceList","com.azure.resourcemanager.servicefabricmanagedclusters.implementation.models.ApplicationTypeVersionResourceList":"Microsoft.ServiceFabric.ApplicationTypeVersionResourceList","com.azure.resourcemanager.servicefabricmanagedclusters.implementation.models.FaultSimulationListResult":"Microsoft.ServiceFabric.FaultSimulationListResult","com.azure.resourcemanager.servicefabricmanagedclusters.implementation.models.ManagedClusterListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.servicefabricmanagedclusters.implementation.models.ManagedVMSizesResult":"Microsoft.ServiceFabric.ManagedVMSizesResult","com.azure.resourcemanager.servicefabricmanagedclusters.implementation.models.NodeTypeListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.servicefabricmanagedclusters.implementation.models.NodeTypeListSkuResult":"Microsoft.ServiceFabric.NodeTypeListSkuResult","com.azure.resourcemanager.servicefabricmanagedclusters.implementation.models.OperationListResult":"Microsoft.ServiceFabric.OperationListResult","com.azure.resourcemanager.servicefabricmanagedclusters.implementation.models.ServiceResourceList":"Microsoft.ServiceFabric.ServiceResourceList","com.azure.resourcemanager.servicefabricmanagedclusters.models.Access":"Microsoft.ServiceFabric.Access","com.azure.resourcemanager.servicefabricmanagedclusters.models.AddRemoveIncrementalNamedPartitionScalingMechanism":"Microsoft.ServiceFabric.AddRemoveIncrementalNamedPartitionScalingMechanism","com.azure.resourcemanager.servicefabricmanagedclusters.models.AdditionalNetworkInterfaceConfiguration":"Microsoft.ServiceFabric.AdditionalNetworkInterfaceConfiguration","com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationHealthPolicy":"Microsoft.ServiceFabric.ApplicationHealthPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationTypeUpdateParameters":"Microsoft.ServiceFabric.ApplicationTypeUpdateParameters","com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationTypeVersionUpdateParameters":"Microsoft.ServiceFabric.ApplicationTypeVersionUpdateParameters","com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationTypeVersionsCleanupPolicy":"Microsoft.ServiceFabric.ApplicationTypeVersionsCleanupPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationUpdateParameters":"Microsoft.ServiceFabric.ApplicationUpdateParameters","com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationUpgradePolicy":"Microsoft.ServiceFabric.ApplicationUpgradePolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationUserAssignedIdentity":"Microsoft.ServiceFabric.ApplicationUserAssignedIdentity","com.azure.resourcemanager.servicefabricmanagedclusters.models.AutoGeneratedDomainNameLabelScope":"Microsoft.ServiceFabric.AutoGeneratedDomainNameLabelScope","com.azure.resourcemanager.servicefabricmanagedclusters.models.AvailableOperationDisplay":"Microsoft.ServiceFabric.AvailableOperationDisplay","com.azure.resourcemanager.servicefabricmanagedclusters.models.AveragePartitionLoadScalingTrigger":"Microsoft.ServiceFabric.AveragePartitionLoadScalingTrigger","com.azure.resourcemanager.servicefabricmanagedclusters.models.AverageServiceLoadScalingTrigger":"Microsoft.ServiceFabric.AverageServiceLoadScalingTrigger","com.azure.resourcemanager.servicefabricmanagedclusters.models.AzureActiveDirectory":"Microsoft.ServiceFabric.AzureActiveDirectory","com.azure.resourcemanager.servicefabricmanagedclusters.models.ClientCertificate":"Microsoft.ServiceFabric.ClientCertificate","com.azure.resourcemanager.servicefabricmanagedclusters.models.ClusterHealthPolicy":"Microsoft.ServiceFabric.ClusterHealthPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ClusterMonitoringPolicy":"Microsoft.ServiceFabric.ClusterMonitoringPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ClusterState":"Microsoft.ServiceFabric.ClusterState","com.azure.resourcemanager.servicefabricmanagedclusters.models.ClusterUpgradeCadence":"Microsoft.ServiceFabric.ClusterUpgradeCadence","com.azure.resourcemanager.servicefabricmanagedclusters.models.ClusterUpgradeDeltaHealthPolicy":"Microsoft.ServiceFabric.ClusterUpgradeDeltaHealthPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ClusterUpgradeMode":"Microsoft.ServiceFabric.ClusterUpgradeMode","com.azure.resourcemanager.servicefabricmanagedclusters.models.ClusterUpgradePolicy":"Microsoft.ServiceFabric.ClusterUpgradePolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.Direction":"Microsoft.ServiceFabric.Direction","com.azure.resourcemanager.servicefabricmanagedclusters.models.DiskType":"Microsoft.ServiceFabric.DiskType","com.azure.resourcemanager.servicefabricmanagedclusters.models.EndpointRangeDescription":"Microsoft.ServiceFabric.EndpointRangeDescription","com.azure.resourcemanager.servicefabricmanagedclusters.models.EvictionPolicyType":"Microsoft.ServiceFabric.EvictionPolicyType","com.azure.resourcemanager.servicefabricmanagedclusters.models.FailureAction":"Microsoft.ServiceFabric.FailureAction","com.azure.resourcemanager.servicefabricmanagedclusters.models.FaultKind":"Microsoft.ServiceFabric.FaultKind","com.azure.resourcemanager.servicefabricmanagedclusters.models.FaultSimulationConstraints":"Microsoft.ServiceFabric.FaultSimulationConstraints","com.azure.resourcemanager.servicefabricmanagedclusters.models.FaultSimulationContent":"Microsoft.ServiceFabric.FaultSimulationContent","com.azure.resourcemanager.servicefabricmanagedclusters.models.FaultSimulationContentWrapper":"Microsoft.ServiceFabric.FaultSimulationContentWrapper","com.azure.resourcemanager.servicefabricmanagedclusters.models.FaultSimulationDetails":"Microsoft.ServiceFabric.FaultSimulationDetails","com.azure.resourcemanager.servicefabricmanagedclusters.models.FaultSimulationIdContent":"Microsoft.ServiceFabric.FaultSimulationIdContent","com.azure.resourcemanager.servicefabricmanagedclusters.models.FaultSimulationStatus":"Microsoft.ServiceFabric.FaultSimulationStatus","com.azure.resourcemanager.servicefabricmanagedclusters.models.FrontendConfiguration":"Microsoft.ServiceFabric.FrontendConfiguration","com.azure.resourcemanager.servicefabricmanagedclusters.models.IpAddressType":"Microsoft.ServiceFabric.IPAddressType","com.azure.resourcemanager.servicefabricmanagedclusters.models.IpConfiguration":"Microsoft.ServiceFabric.IpConfiguration","com.azure.resourcemanager.servicefabricmanagedclusters.models.IpConfigurationPublicIpAddressConfiguration":"Microsoft.ServiceFabric.PublicIPAddressConfiguration","com.azure.resourcemanager.servicefabricmanagedclusters.models.IpTag":"Microsoft.ServiceFabric.IpTag","com.azure.resourcemanager.servicefabricmanagedclusters.models.LoadBalancingRule":"Microsoft.ServiceFabric.LoadBalancingRule","com.azure.resourcemanager.servicefabricmanagedclusters.models.ManagedClusterAddOnFeature":"Microsoft.ServiceFabric.ManagedClusterAddOnFeature","com.azure.resourcemanager.servicefabricmanagedclusters.models.ManagedClusterUpdateParameters":"Microsoft.ServiceFabric.ManagedClusterUpdateParameters","com.azure.resourcemanager.servicefabricmanagedclusters.models.ManagedClusterVersionEnvironment":"Microsoft.ServiceFabric.ManagedClusterVersionEnvironment","com.azure.resourcemanager.servicefabricmanagedclusters.models.ManagedIdentity":"Microsoft.ServiceFabric.ManagedIdentity","com.azure.resourcemanager.servicefabricmanagedclusters.models.ManagedIdentityType":"Microsoft.ServiceFabric.ManagedIdentityType","com.azure.resourcemanager.servicefabricmanagedclusters.models.ManagedResourceProvisioningState":"Microsoft.ServiceFabric.ManagedResourceProvisioningState","com.azure.resourcemanager.servicefabricmanagedclusters.models.MoveCost":"Microsoft.ServiceFabric.MoveCost","com.azure.resourcemanager.servicefabricmanagedclusters.models.NamedPartitionScheme":"Microsoft.ServiceFabric.NamedPartitionScheme","com.azure.resourcemanager.servicefabricmanagedclusters.models.NetworkSecurityRule":"Microsoft.ServiceFabric.NetworkSecurityRule","com.azure.resourcemanager.servicefabricmanagedclusters.models.NodeTypeActionParameters":"Microsoft.ServiceFabric.NodeTypeActionParameters","com.azure.resourcemanager.servicefabricmanagedclusters.models.NodeTypeFaultSimulation":"Microsoft.ServiceFabric.NodeTypeFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.models.NodeTypeNatConfig":"Microsoft.ServiceFabric.NodeTypeNatConfig","com.azure.resourcemanager.servicefabricmanagedclusters.models.NodeTypeSku":"Microsoft.ServiceFabric.NodeTypeSku","com.azure.resourcemanager.servicefabricmanagedclusters.models.NodeTypeSkuCapacity":"Microsoft.ServiceFabric.NodeTypeSkuCapacity","com.azure.resourcemanager.servicefabricmanagedclusters.models.NodeTypeSkuScaleType":"Microsoft.ServiceFabric.NodeTypeSkuScaleType","com.azure.resourcemanager.servicefabricmanagedclusters.models.NodeTypeSupportedSku":"Microsoft.ServiceFabric.NodeTypeSupportedSku","com.azure.resourcemanager.servicefabricmanagedclusters.models.NodeTypeUpdateParameters":"Microsoft.ServiceFabric.NodeTypeUpdateParameters","com.azure.resourcemanager.servicefabricmanagedclusters.models.NsgProtocol":"Microsoft.ServiceFabric.NsgProtocol","com.azure.resourcemanager.servicefabricmanagedclusters.models.OsType":"Microsoft.ServiceFabric.OsType","com.azure.resourcemanager.servicefabricmanagedclusters.models.Partition":"Microsoft.ServiceFabric.Partition","com.azure.resourcemanager.servicefabricmanagedclusters.models.PartitionInstanceCountScaleMechanism":"Microsoft.ServiceFabric.PartitionInstanceCountScaleMechanism","com.azure.resourcemanager.servicefabricmanagedclusters.models.PartitionScheme":"Microsoft.ServiceFabric.PartitionScheme","com.azure.resourcemanager.servicefabricmanagedclusters.models.PrivateEndpointNetworkPolicies":"Microsoft.ServiceFabric.PrivateEndpointNetworkPolicies","com.azure.resourcemanager.servicefabricmanagedclusters.models.PrivateIpAddressVersion":"Microsoft.ServiceFabric.PrivateIPAddressVersion","com.azure.resourcemanager.servicefabricmanagedclusters.models.PrivateLinkServiceNetworkPolicies":"Microsoft.ServiceFabric.PrivateLinkServiceNetworkPolicies","com.azure.resourcemanager.servicefabricmanagedclusters.models.ProbeProtocol":"Microsoft.ServiceFabric.ProbeProtocol","com.azure.resourcemanager.servicefabricmanagedclusters.models.Protocol":"Microsoft.ServiceFabric.Protocol","com.azure.resourcemanager.servicefabricmanagedclusters.models.PublicIpAddressVersion":"Microsoft.ServiceFabric.PublicIPAddressVersion","com.azure.resourcemanager.servicefabricmanagedclusters.models.ResourceAzStatus":"Microsoft.ServiceFabric.ResourceAzStatus","com.azure.resourcemanager.servicefabricmanagedclusters.models.RollingUpgradeMode":"Microsoft.ServiceFabric.RollingUpgradeMode","com.azure.resourcemanager.servicefabricmanagedclusters.models.RollingUpgradeMonitoringPolicy":"Microsoft.ServiceFabric.RollingUpgradeMonitoringPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeResumeApplicationUpgradeParameters":"Microsoft.ServiceFabric.RuntimeResumeApplicationUpgradeParameters","com.azure.resourcemanager.servicefabricmanagedclusters.models.ScalingMechanism":"Microsoft.ServiceFabric.ScalingMechanism","com.azure.resourcemanager.servicefabricmanagedclusters.models.ScalingPolicy":"Microsoft.ServiceFabric.ScalingPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ScalingTrigger":"Microsoft.ServiceFabric.ScalingTrigger","com.azure.resourcemanager.servicefabricmanagedclusters.models.SecurityEncryptionType":"Microsoft.ServiceFabric.SecurityEncryptionType","com.azure.resourcemanager.servicefabricmanagedclusters.models.SecurityType":"Microsoft.ServiceFabric.SecurityType","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceCorrelation":"Microsoft.ServiceFabric.ServiceCorrelation","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceCorrelationScheme":"Microsoft.ServiceFabric.ServiceCorrelationScheme","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceEndpoint":"Microsoft.ServiceFabric.ServiceEndpoint","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceKind":"Microsoft.ServiceFabric.ServiceKind","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceLoadMetric":"Microsoft.ServiceFabric.ServiceLoadMetric","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceLoadMetricWeight":"Microsoft.ServiceFabric.ServiceLoadMetricWeight","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServicePackageActivationMode":"Microsoft.ServiceFabric.ServicePackageActivationMode","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServicePlacementInvalidDomainPolicy":"Microsoft.ServiceFabric.ServicePlacementInvalidDomainPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServicePlacementNonPartiallyPlaceServicePolicy":"Microsoft.ServiceFabric.ServicePlacementNonPartiallyPlaceServicePolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServicePlacementPolicy":"Microsoft.ServiceFabric.ServicePlacementPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServicePlacementPolicyType":"Microsoft.ServiceFabric.ServicePlacementPolicyType","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServicePlacementPreferPrimaryDomainPolicy":"Microsoft.ServiceFabric.ServicePlacementPreferPrimaryDomainPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServicePlacementRequireDomainDistributionPolicy":"Microsoft.ServiceFabric.ServicePlacementRequireDomainDistributionPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServicePlacementRequiredDomainPolicy":"Microsoft.ServiceFabric.ServicePlacementRequiredDomainPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceResourceProperties":"Microsoft.ServiceFabric.ServiceResourceProperties","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceResourcePropertiesBase":"Microsoft.ServiceFabric.ServiceResourcePropertiesBase","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceScalingMechanismKind":"Microsoft.ServiceFabric.ServiceScalingMechanismKind","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceScalingTriggerKind":"Microsoft.ServiceFabric.ServiceScalingTriggerKind","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceTypeHealthPolicy":"Microsoft.ServiceFabric.ServiceTypeHealthPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceUpdateParameters":"Microsoft.ServiceFabric.ServiceUpdateParameters","com.azure.resourcemanager.servicefabricmanagedclusters.models.SettingsParameterDescription":"Microsoft.ServiceFabric.SettingsParameterDescription","com.azure.resourcemanager.servicefabricmanagedclusters.models.SettingsSectionDescription":"Microsoft.ServiceFabric.SettingsSectionDescription","com.azure.resourcemanager.servicefabricmanagedclusters.models.SfmcOperationStatus":"Microsoft.ServiceFabric.SfmcOperationStatus","com.azure.resourcemanager.servicefabricmanagedclusters.models.SingletonPartitionScheme":"Microsoft.ServiceFabric.SingletonPartitionScheme","com.azure.resourcemanager.servicefabricmanagedclusters.models.Sku":"Microsoft.ServiceFabric.Sku","com.azure.resourcemanager.servicefabricmanagedclusters.models.SkuName":"Microsoft.ServiceFabric.SkuName","com.azure.resourcemanager.servicefabricmanagedclusters.models.StatefulServiceProperties":"Microsoft.ServiceFabric.StatefulServiceProperties","com.azure.resourcemanager.servicefabricmanagedclusters.models.StatelessServiceProperties":"Microsoft.ServiceFabric.StatelessServiceProperties","com.azure.resourcemanager.servicefabricmanagedclusters.models.Subnet":"Microsoft.ServiceFabric.Subnet","com.azure.resourcemanager.servicefabricmanagedclusters.models.UniformInt64RangePartitionScheme":"Microsoft.ServiceFabric.UniformInt64RangePartitionScheme","com.azure.resourcemanager.servicefabricmanagedclusters.models.UpdateType":"Microsoft.ServiceFabric.UpdateType","com.azure.resourcemanager.servicefabricmanagedclusters.models.UserAssignedIdentity":"Microsoft.ServiceFabric.UserAssignedIdentity","com.azure.resourcemanager.servicefabricmanagedclusters.models.VMSize":"Microsoft.ServiceFabric.VMSize","com.azure.resourcemanager.servicefabricmanagedclusters.models.VaultCertificate":"Microsoft.ServiceFabric.VaultCertificate","com.azure.resourcemanager.servicefabricmanagedclusters.models.VaultSecretGroup":"Microsoft.ServiceFabric.VaultSecretGroup","com.azure.resourcemanager.servicefabricmanagedclusters.models.VmApplication":"Microsoft.ServiceFabric.VmApplication","com.azure.resourcemanager.servicefabricmanagedclusters.models.VmImagePlan":"Microsoft.ServiceFabric.VmImagePlan","com.azure.resourcemanager.servicefabricmanagedclusters.models.VmManagedIdentity":"Microsoft.ServiceFabric.VmManagedIdentity","com.azure.resourcemanager.servicefabricmanagedclusters.models.VmSetupAction":"Microsoft.ServiceFabric.VmSetupAction","com.azure.resourcemanager.servicefabricmanagedclusters.models.VmssDataDisk":"Microsoft.ServiceFabric.VmssDataDisk","com.azure.resourcemanager.servicefabricmanagedclusters.models.VmssExtension":"Microsoft.ServiceFabric.VMSSExtension","com.azure.resourcemanager.servicefabricmanagedclusters.models.VmssExtensionSetupOrder":"Microsoft.ServiceFabric.VmssExtensionSetupOrder","com.azure.resourcemanager.servicefabricmanagedclusters.models.ZonalUpdateMode":"Microsoft.ServiceFabric.ZonalUpdateMode","com.azure.resourcemanager.servicefabricmanagedclusters.models.ZoneFaultSimulationContent":"Microsoft.ServiceFabric.ZoneFaultSimulationContent"},"generatedFiles":["src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/ServiceFabricManagedClustersManager.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ApplicationTypeVersionsClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ApplicationTypesClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ApplicationsClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ManagedApplyMaintenanceWindowsClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ManagedAzResiliencyStatusesClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ManagedClusterVersionsClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ManagedClustersClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ManagedMaintenanceWindowStatusesClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ManagedUnsupportedVMSizesClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/NodeTypeSkusClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/NodeTypesClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ServiceFabricManagedClustersMgmtClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ServicesClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ApplicationResourceInner.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ApplicationResourceProperties.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ApplicationTypeResourceInner.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ApplicationTypeResourceProperties.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ApplicationTypeVersionResourceInner.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ApplicationTypeVersionResourceProperties.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/FaultSimulationInner.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ManagedAzResiliencyStatusInner.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ManagedClusterCodeVersionResultInner.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ManagedClusterInner.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ManagedClusterProperties.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ManagedClusterVersionDetails.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ManagedMaintenanceWindowStatusInner.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ManagedVMSizeInner.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/NodeTypeAvailableSkuInner.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/NodeTypeInner.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/NodeTypeProperties.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/OperationResultInner.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ServiceResourceInner.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/VMSSExtensionProperties.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/package-info.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationResourceImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationTypeResourceImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationTypeVersionResourceImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationTypeVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationTypeVersionsImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationTypesClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationTypesImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationsClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationsImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/FaultSimulationImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedApplyMaintenanceWindowsClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedApplyMaintenanceWindowsImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedAzResiliencyStatusImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedAzResiliencyStatusesClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedAzResiliencyStatusesImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedClusterCodeVersionResultImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedClusterImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedClusterVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedClusterVersionsImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedClustersClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedClustersImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedMaintenanceWindowStatusImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedMaintenanceWindowStatusesClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedMaintenanceWindowStatusesImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedUnsupportedVMSizesClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedUnsupportedVMSizesImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedVMSizeImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/NodeTypeAvailableSkuImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/NodeTypeImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/NodeTypeSkusClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/NodeTypeSkusImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/NodeTypesClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/NodeTypesImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/OperationResultImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ServiceFabricManagedClustersMgmtClientBuilder.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ServiceFabricManagedClustersMgmtClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ServiceResourceImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ServicesClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ServicesImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/models/ApplicationResourceList.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/models/ApplicationTypeResourceList.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/models/ApplicationTypeVersionResourceList.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/models/FaultSimulationListResult.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/models/ManagedClusterListResult.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/models/ManagedVMSizesResult.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/models/NodeTypeListResult.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/models/NodeTypeListSkuResult.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/models/ServiceResourceList.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/package-info.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/Access.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/AddRemoveIncrementalNamedPartitionScalingMechanism.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/AdditionalNetworkInterfaceConfiguration.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationHealthPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationResource.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationTypeResource.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationTypeUpdateParameters.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationTypeVersionResource.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationTypeVersionUpdateParameters.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationTypeVersions.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationTypeVersionsCleanupPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationTypes.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationUpdateParameters.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationUpgradePolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationUserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/Applications.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/AutoGeneratedDomainNameLabelScope.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/AvailableOperationDisplay.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/AveragePartitionLoadScalingTrigger.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/AverageServiceLoadScalingTrigger.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/AzureActiveDirectory.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ClientCertificate.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ClusterHealthPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ClusterMonitoringPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ClusterState.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ClusterUpgradeCadence.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ClusterUpgradeDeltaHealthPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ClusterUpgradeMode.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ClusterUpgradePolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/Direction.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/DiskType.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/EndpointRangeDescription.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/EvictionPolicyType.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/FailureAction.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/FaultKind.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/FaultSimulation.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/FaultSimulationConstraints.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/FaultSimulationContent.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/FaultSimulationContentWrapper.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/FaultSimulationDetails.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/FaultSimulationIdContent.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/FaultSimulationStatus.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/FrontendConfiguration.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/IpAddressType.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/IpConfiguration.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/IpConfigurationPublicIpAddressConfiguration.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/IpTag.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/LoadBalancingRule.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedApplyMaintenanceWindows.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedAzResiliencyStatus.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedAzResiliencyStatuses.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedCluster.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedClusterAddOnFeature.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedClusterCodeVersionResult.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedClusterUpdateParameters.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedClusterVersionEnvironment.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedClusterVersions.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedClusters.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedIdentity.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedIdentityType.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedMaintenanceWindowStatus.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedMaintenanceWindowStatuses.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedResourceProvisioningState.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedUnsupportedVMSizes.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedVMSize.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/MoveCost.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NamedPartitionScheme.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NetworkSecurityRule.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NodeType.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NodeTypeActionParameters.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NodeTypeAvailableSku.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NodeTypeFaultSimulation.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NodeTypeNatConfig.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NodeTypeSku.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NodeTypeSkuCapacity.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NodeTypeSkuScaleType.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NodeTypeSkus.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NodeTypeSupportedSku.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NodeTypeUpdateParameters.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NodeTypes.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NsgProtocol.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/OperationResult.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/Operations.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/OsType.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/Partition.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/PartitionInstanceCountScaleMechanism.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/PartitionScheme.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/PrivateEndpointNetworkPolicies.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/PrivateIpAddressVersion.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/PrivateLinkServiceNetworkPolicies.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ProbeProtocol.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/Protocol.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/PublicIpAddressVersion.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ResourceAzStatus.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RollingUpgradeMode.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RollingUpgradeMonitoringPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeResumeApplicationUpgradeParameters.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ScalingMechanism.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ScalingPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ScalingTrigger.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/SecurityEncryptionType.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/SecurityType.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceCorrelation.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceCorrelationScheme.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceEndpoint.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceKind.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceLoadMetric.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceLoadMetricWeight.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServicePackageActivationMode.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServicePlacementInvalidDomainPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServicePlacementNonPartiallyPlaceServicePolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServicePlacementPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServicePlacementPolicyType.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServicePlacementPreferPrimaryDomainPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServicePlacementRequireDomainDistributionPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServicePlacementRequiredDomainPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceResource.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceResourceProperties.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceResourcePropertiesBase.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceScalingMechanismKind.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceScalingTriggerKind.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceTypeHealthPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceUpdateParameters.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/Services.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/SettingsParameterDescription.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/SettingsSectionDescription.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/SfmcOperationStatus.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/SingletonPartitionScheme.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/Sku.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/SkuName.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/StatefulServiceProperties.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/StatelessServiceProperties.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/Subnet.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/UniformInt64RangePartitionScheme.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/UpdateType.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/VMSize.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/VaultCertificate.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/VaultSecretGroup.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/VmApplication.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/VmImagePlan.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/VmManagedIdentity.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/VmSetupAction.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/VmssDataDisk.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/VmssExtension.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/VmssExtensionSetupOrder.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ZonalUpdateMode.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ZoneFaultSimulationContent.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/package-info.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersion":"2025-10-01-preview","crossLanguageDefinitions":{"com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypeVersionsClient":"Microsoft.ServiceFabric.ApplicationTypeVersions","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypeVersionsClient.beginCreateOrUpdate":"Microsoft.ServiceFabric.ApplicationTypeVersions.createOrUpdate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypeVersionsClient.beginDelete":"Microsoft.ServiceFabric.ApplicationTypeVersions.delete","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypeVersionsClient.createOrUpdate":"Microsoft.ServiceFabric.ApplicationTypeVersions.createOrUpdate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypeVersionsClient.delete":"Microsoft.ServiceFabric.ApplicationTypeVersions.delete","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypeVersionsClient.get":"Microsoft.ServiceFabric.ApplicationTypeVersions.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypeVersionsClient.getWithResponse":"Microsoft.ServiceFabric.ApplicationTypeVersions.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypeVersionsClient.listByApplicationTypes":"Microsoft.ServiceFabric.ApplicationTypeVersions.listByApplicationTypes","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypeVersionsClient.update":"Microsoft.ServiceFabric.ApplicationTypeVersions.update","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypeVersionsClient.updateWithResponse":"Microsoft.ServiceFabric.ApplicationTypeVersions.update","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypesClient":"Microsoft.ServiceFabric.ApplicationTypes","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypesClient.beginDelete":"Microsoft.ServiceFabric.ApplicationTypes.delete","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypesClient.createOrUpdate":"Microsoft.ServiceFabric.ApplicationTypes.createOrUpdate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypesClient.createOrUpdateWithResponse":"Microsoft.ServiceFabric.ApplicationTypes.createOrUpdate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypesClient.delete":"Microsoft.ServiceFabric.ApplicationTypes.delete","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypesClient.get":"Microsoft.ServiceFabric.ApplicationTypes.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypesClient.getWithResponse":"Microsoft.ServiceFabric.ApplicationTypes.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypesClient.list":"Microsoft.ServiceFabric.ApplicationTypes.list","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypesClient.update":"Microsoft.ServiceFabric.ApplicationTypes.update","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationTypesClient.updateWithResponse":"Microsoft.ServiceFabric.ApplicationTypes.update","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient":"Microsoft.ServiceFabric.Applications","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.beginCreateOrUpdate":"Microsoft.ServiceFabric.Applications.createOrUpdate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.beginDelete":"Microsoft.ServiceFabric.Applications.delete","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.beginFetchHealth":"Microsoft.ServiceFabric.Applications.fetchHealth","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.beginReadUpgrade":"Microsoft.ServiceFabric.Applications.readUpgrade","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.beginRestartDeployedCodePackage":"Microsoft.ServiceFabric.Applications.restartDeployedCodePackage","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.beginResumeUpgrade":"Microsoft.ServiceFabric.Applications.resumeUpgrade","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.beginStartRollback":"Microsoft.ServiceFabric.Applications.startRollback","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.beginUpdate":"Microsoft.ServiceFabric.Applications.update","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.beginUpdateUpgrade":"Microsoft.ServiceFabric.Applications.updateUpgrade","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.createOrUpdate":"Microsoft.ServiceFabric.Applications.createOrUpdate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.delete":"Microsoft.ServiceFabric.Applications.delete","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.fetchHealth":"Microsoft.ServiceFabric.Applications.fetchHealth","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.get":"Microsoft.ServiceFabric.Applications.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.getWithResponse":"Microsoft.ServiceFabric.Applications.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.list":"Microsoft.ServiceFabric.Applications.list","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.readUpgrade":"Microsoft.ServiceFabric.Applications.readUpgrade","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.restartDeployedCodePackage":"Microsoft.ServiceFabric.Applications.restartDeployedCodePackage","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.resumeUpgrade":"Microsoft.ServiceFabric.Applications.resumeUpgrade","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.startRollback":"Microsoft.ServiceFabric.Applications.startRollback","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.update":"Microsoft.ServiceFabric.Applications.update","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ApplicationsClient.updateUpgrade":"Microsoft.ServiceFabric.Applications.updateUpgrade","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedApplyMaintenanceWindowsClient":"Microsoft.ServiceFabric.ManagedApplyMaintenanceWindow","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedApplyMaintenanceWindowsClient.post":"Microsoft.ServiceFabric.ManagedApplyMaintenanceWindow.post","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedApplyMaintenanceWindowsClient.postWithResponse":"Microsoft.ServiceFabric.ManagedApplyMaintenanceWindow.post","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedAzResiliencyStatusesClient":"Microsoft.ServiceFabric.ManagedAzResiliencyStatus","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedAzResiliencyStatusesClient.get":"Microsoft.ServiceFabric.ManagedAzResiliencyStatus.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedAzResiliencyStatusesClient.getWithResponse":"Microsoft.ServiceFabric.ManagedAzResiliencyStatus.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClusterVersionsClient":"Microsoft.ServiceFabric.ManagedClusterVersion","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClusterVersionsClient.get":"Microsoft.ServiceFabric.ManagedClusterVersion.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClusterVersionsClient.getByEnvironment":"Microsoft.ServiceFabric.ManagedClusterVersion.getByEnvironment","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClusterVersionsClient.getByEnvironmentWithResponse":"Microsoft.ServiceFabric.ManagedClusterVersion.getByEnvironment","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClusterVersionsClient.getWithResponse":"Microsoft.ServiceFabric.ManagedClusterVersion.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClusterVersionsClient.list":"Microsoft.ServiceFabric.ManagedClusterVersion.list","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClusterVersionsClient.listByEnvironment":"Microsoft.ServiceFabric.ManagedClusterVersion.listByEnvironment","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClusterVersionsClient.listByEnvironmentWithResponse":"Microsoft.ServiceFabric.ManagedClusterVersion.listByEnvironment","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClusterVersionsClient.listWithResponse":"Microsoft.ServiceFabric.ManagedClusterVersion.list","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient":"Microsoft.ServiceFabric.ManagedClusters","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.beginCreateOrUpdate":"Microsoft.ServiceFabric.ManagedClusters.createOrUpdate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.beginDelete":"Microsoft.ServiceFabric.ManagedClusters.delete","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.beginStartFaultSimulation":"Microsoft.ServiceFabric.ManagedClusters.startFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.beginStopFaultSimulation":"Microsoft.ServiceFabric.ManagedClusters.stopFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.beginUpdate":"Microsoft.ServiceFabric.ManagedClusters.update","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.createOrUpdate":"Microsoft.ServiceFabric.ManagedClusters.createOrUpdate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.delete":"Microsoft.ServiceFabric.ManagedClusters.delete","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.getByResourceGroup":"Microsoft.ServiceFabric.ManagedClusters.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.getByResourceGroupWithResponse":"Microsoft.ServiceFabric.ManagedClusters.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.getFaultSimulation":"Microsoft.ServiceFabric.ManagedClusters.getFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.getFaultSimulationWithResponse":"Microsoft.ServiceFabric.ManagedClusters.getFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.list":"Microsoft.ServiceFabric.ManagedClusters.listBySubscription","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.listByResourceGroup":"Microsoft.ServiceFabric.ManagedClusters.listByResourceGroup","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.listFaultSimulation":"Microsoft.ServiceFabric.ManagedClusters.listFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.startFaultSimulation":"Microsoft.ServiceFabric.ManagedClusters.startFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.stopFaultSimulation":"Microsoft.ServiceFabric.ManagedClusters.stopFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedClustersClient.update":"Microsoft.ServiceFabric.ManagedClusters.update","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedMaintenanceWindowStatusesClient":"Microsoft.ServiceFabric.ManagedMaintenanceWindowStatus","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedMaintenanceWindowStatusesClient.get":"Microsoft.ServiceFabric.ManagedMaintenanceWindowStatus.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedMaintenanceWindowStatusesClient.getWithResponse":"Microsoft.ServiceFabric.ManagedMaintenanceWindowStatus.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedUnsupportedVMSizesClient":"Microsoft.ServiceFabric.ManagedUnsupportedVMSizes","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedUnsupportedVMSizesClient.get":"Microsoft.ServiceFabric.ManagedUnsupportedVMSizes.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedUnsupportedVMSizesClient.getWithResponse":"Microsoft.ServiceFabric.ManagedUnsupportedVMSizes.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ManagedUnsupportedVMSizesClient.list":"Microsoft.ServiceFabric.ManagedUnsupportedVMSizes.list","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypeSkusClient":"Microsoft.ServiceFabric.NodeTypeSkus","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypeSkusClient.list":"Microsoft.ServiceFabric.NodeTypeSkus.list","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient":"Microsoft.ServiceFabric.NodeTypes","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.beginCreateOrUpdate":"Microsoft.ServiceFabric.NodeTypes.createOrUpdate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.beginDeallocate":"Microsoft.ServiceFabric.NodeTypes.deallocate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.beginDelete":"Microsoft.ServiceFabric.NodeTypes.delete","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.beginDeleteNode":"Microsoft.ServiceFabric.NodeTypes.deleteNode","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.beginRedeploy":"Microsoft.ServiceFabric.NodeTypes.redeploy","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.beginReimage":"Microsoft.ServiceFabric.NodeTypes.reimage","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.beginRestart":"Microsoft.ServiceFabric.NodeTypes.restart","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.beginStart":"Microsoft.ServiceFabric.NodeTypes.start","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.beginStartFaultSimulation":"Microsoft.ServiceFabric.NodeTypes.startFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.beginStopFaultSimulation":"Microsoft.ServiceFabric.NodeTypes.stopFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.beginUpdate":"Microsoft.ServiceFabric.NodeTypes.update","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.createOrUpdate":"Microsoft.ServiceFabric.NodeTypes.createOrUpdate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.deallocate":"Microsoft.ServiceFabric.NodeTypes.deallocate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.delete":"Microsoft.ServiceFabric.NodeTypes.delete","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.deleteNode":"Microsoft.ServiceFabric.NodeTypes.deleteNode","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.get":"Microsoft.ServiceFabric.NodeTypes.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.getFaultSimulation":"Microsoft.ServiceFabric.NodeTypes.getFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.getFaultSimulationWithResponse":"Microsoft.ServiceFabric.NodeTypes.getFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.getWithResponse":"Microsoft.ServiceFabric.NodeTypes.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.listByManagedClusters":"Microsoft.ServiceFabric.NodeTypes.listByManagedClusters","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.listFaultSimulation":"Microsoft.ServiceFabric.NodeTypes.listFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.redeploy":"Microsoft.ServiceFabric.NodeTypes.redeploy","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.reimage":"Microsoft.ServiceFabric.NodeTypes.reimage","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.restart":"Microsoft.ServiceFabric.NodeTypes.restart","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.start":"Microsoft.ServiceFabric.NodeTypes.start","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.startFaultSimulation":"Microsoft.ServiceFabric.NodeTypes.startFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.stopFaultSimulation":"Microsoft.ServiceFabric.NodeTypes.stopFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.NodeTypesClient.update":"Microsoft.ServiceFabric.NodeTypes.update","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.OperationsClient":"Microsoft.ServiceFabric.Operations","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.OperationsClient.list":"Microsoft.ServiceFabric.Operations.list","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServiceFabricManagedClustersMgmtClient":"Microsoft.ServiceFabric","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient":"Microsoft.ServiceFabric.Services","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.beginCreateOrUpdate":"Microsoft.ServiceFabric.Services.createOrUpdate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.beginDelete":"Microsoft.ServiceFabric.Services.delete","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.beginRestartReplica":"Microsoft.ServiceFabric.Services.restartReplica","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.createOrUpdate":"Microsoft.ServiceFabric.Services.createOrUpdate","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.delete":"Microsoft.ServiceFabric.Services.delete","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.get":"Microsoft.ServiceFabric.Services.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.getWithResponse":"Microsoft.ServiceFabric.Services.get","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.listByApplications":"Microsoft.ServiceFabric.Services.listByApplications","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.restartReplica":"Microsoft.ServiceFabric.Services.restartReplica","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.update":"Microsoft.ServiceFabric.Services.update","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.ServicesClient.updateWithResponse":"Microsoft.ServiceFabric.Services.update","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ApplicationResourceInner":"Microsoft.ServiceFabric.ApplicationResource","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ApplicationResourceProperties":"Microsoft.ServiceFabric.ApplicationResourceProperties","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ApplicationTypeResourceInner":"Microsoft.ServiceFabric.ApplicationTypeResource","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ApplicationTypeResourceProperties":"Microsoft.ServiceFabric.ApplicationTypeResourceProperties","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ApplicationTypeVersionResourceInner":"Microsoft.ServiceFabric.ApplicationTypeVersionResource","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ApplicationTypeVersionResourceProperties":"Microsoft.ServiceFabric.ApplicationTypeVersionResourceProperties","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.FaultSimulationInner":"Microsoft.ServiceFabric.FaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ManagedAzResiliencyStatusInner":"Microsoft.ServiceFabric.ManagedAzResiliencyStatusContent","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ManagedClusterCodeVersionResultInner":"Microsoft.ServiceFabric.ManagedClusterCodeVersionResult","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ManagedClusterInner":"Microsoft.ServiceFabric.ManagedCluster","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ManagedClusterProperties":"Microsoft.ServiceFabric.ManagedClusterProperties","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ManagedClusterVersionDetails":"Microsoft.ServiceFabric.ManagedClusterVersionDetails","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ManagedMaintenanceWindowStatusInner":"Microsoft.ServiceFabric.ManagedMaintenanceWindowStatusContent","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ManagedVMSizeInner":"Microsoft.ServiceFabric.ManagedVMSize","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.NodeTypeAvailableSkuInner":"Microsoft.ServiceFabric.NodeTypeAvailableSku","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.NodeTypeInner":"Microsoft.ServiceFabric.NodeType","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.NodeTypeProperties":"Microsoft.ServiceFabric.NodeTypeProperties","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.OperationResultInner":"Microsoft.ServiceFabric.OperationResult","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.ServiceResourceInner":"Microsoft.ServiceFabric.ServiceResource","com.azure.resourcemanager.servicefabricmanagedclusters.fluent.models.VMSSExtensionProperties":"Microsoft.ServiceFabric.VMSSExtensionProperties","com.azure.resourcemanager.servicefabricmanagedclusters.implementation.ServiceFabricManagedClustersMgmtClientBuilder":"Microsoft.ServiceFabric","com.azure.resourcemanager.servicefabricmanagedclusters.implementation.models.ApplicationResourceList":"Microsoft.ServiceFabric.ApplicationResourceList","com.azure.resourcemanager.servicefabricmanagedclusters.implementation.models.ApplicationTypeResourceList":"Microsoft.ServiceFabric.ApplicationTypeResourceList","com.azure.resourcemanager.servicefabricmanagedclusters.implementation.models.ApplicationTypeVersionResourceList":"Microsoft.ServiceFabric.ApplicationTypeVersionResourceList","com.azure.resourcemanager.servicefabricmanagedclusters.implementation.models.FaultSimulationListResult":"Microsoft.ServiceFabric.FaultSimulationListResult","com.azure.resourcemanager.servicefabricmanagedclusters.implementation.models.ManagedClusterListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.servicefabricmanagedclusters.implementation.models.ManagedVMSizesResult":"Microsoft.ServiceFabric.ManagedVMSizesResult","com.azure.resourcemanager.servicefabricmanagedclusters.implementation.models.NodeTypeListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.servicefabricmanagedclusters.implementation.models.NodeTypeListSkuResult":"Microsoft.ServiceFabric.NodeTypeListSkuResult","com.azure.resourcemanager.servicefabricmanagedclusters.implementation.models.OperationListResult":"Microsoft.ServiceFabric.OperationListResult","com.azure.resourcemanager.servicefabricmanagedclusters.implementation.models.ServiceResourceList":"Microsoft.ServiceFabric.ServiceResourceList","com.azure.resourcemanager.servicefabricmanagedclusters.models.Access":"Microsoft.ServiceFabric.Access","com.azure.resourcemanager.servicefabricmanagedclusters.models.AddRemoveIncrementalNamedPartitionScalingMechanism":"Microsoft.ServiceFabric.AddRemoveIncrementalNamedPartitionScalingMechanism","com.azure.resourcemanager.servicefabricmanagedclusters.models.AdditionalNetworkInterfaceConfiguration":"Microsoft.ServiceFabric.AdditionalNetworkInterfaceConfiguration","com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationFetchHealthRequest":"Microsoft.ServiceFabric.ApplicationFetchHealthRequest","com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationHealthPolicy":"Microsoft.ServiceFabric.ApplicationHealthPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationTypeUpdateParameters":"Microsoft.ServiceFabric.ApplicationTypeUpdateParameters","com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationTypeVersionUpdateParameters":"Microsoft.ServiceFabric.ApplicationTypeVersionUpdateParameters","com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationTypeVersionsCleanupPolicy":"Microsoft.ServiceFabric.ApplicationTypeVersionsCleanupPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationUpdateParameters":"Microsoft.ServiceFabric.ApplicationUpdateParameters","com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationUpdateParametersProperties":"Microsoft.ServiceFabric.ApplicationUpdateParametersProperties","com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationUpgradePolicy":"Microsoft.ServiceFabric.ApplicationUpgradePolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationUserAssignedIdentity":"Microsoft.ServiceFabric.ApplicationUserAssignedIdentity","com.azure.resourcemanager.servicefabricmanagedclusters.models.AutoGeneratedDomainNameLabelScope":"Microsoft.ServiceFabric.AutoGeneratedDomainNameLabelScope","com.azure.resourcemanager.servicefabricmanagedclusters.models.AvailableOperationDisplay":"Microsoft.ServiceFabric.AvailableOperationDisplay","com.azure.resourcemanager.servicefabricmanagedclusters.models.AveragePartitionLoadScalingTrigger":"Microsoft.ServiceFabric.AveragePartitionLoadScalingTrigger","com.azure.resourcemanager.servicefabricmanagedclusters.models.AverageServiceLoadScalingTrigger":"Microsoft.ServiceFabric.AverageServiceLoadScalingTrigger","com.azure.resourcemanager.servicefabricmanagedclusters.models.AzureActiveDirectory":"Microsoft.ServiceFabric.AzureActiveDirectory","com.azure.resourcemanager.servicefabricmanagedclusters.models.ClientCertificate":"Microsoft.ServiceFabric.ClientCertificate","com.azure.resourcemanager.servicefabricmanagedclusters.models.ClusterHealthPolicy":"Microsoft.ServiceFabric.ClusterHealthPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ClusterMonitoringPolicy":"Microsoft.ServiceFabric.ClusterMonitoringPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ClusterState":"Microsoft.ServiceFabric.ClusterState","com.azure.resourcemanager.servicefabricmanagedclusters.models.ClusterUpgradeCadence":"Microsoft.ServiceFabric.ClusterUpgradeCadence","com.azure.resourcemanager.servicefabricmanagedclusters.models.ClusterUpgradeDeltaHealthPolicy":"Microsoft.ServiceFabric.ClusterUpgradeDeltaHealthPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ClusterUpgradeMode":"Microsoft.ServiceFabric.ClusterUpgradeMode","com.azure.resourcemanager.servicefabricmanagedclusters.models.ClusterUpgradePolicy":"Microsoft.ServiceFabric.ClusterUpgradePolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.Direction":"Microsoft.ServiceFabric.Direction","com.azure.resourcemanager.servicefabricmanagedclusters.models.DiskType":"Microsoft.ServiceFabric.DiskType","com.azure.resourcemanager.servicefabricmanagedclusters.models.EndpointRangeDescription":"Microsoft.ServiceFabric.EndpointRangeDescription","com.azure.resourcemanager.servicefabricmanagedclusters.models.EvictionPolicyType":"Microsoft.ServiceFabric.EvictionPolicyType","com.azure.resourcemanager.servicefabricmanagedclusters.models.FailureAction":"Microsoft.ServiceFabric.FailureAction","com.azure.resourcemanager.servicefabricmanagedclusters.models.FaultKind":"Microsoft.ServiceFabric.FaultKind","com.azure.resourcemanager.servicefabricmanagedclusters.models.FaultSimulationConstraints":"Microsoft.ServiceFabric.FaultSimulationConstraints","com.azure.resourcemanager.servicefabricmanagedclusters.models.FaultSimulationContent":"Microsoft.ServiceFabric.FaultSimulationContent","com.azure.resourcemanager.servicefabricmanagedclusters.models.FaultSimulationContentWrapper":"Microsoft.ServiceFabric.FaultSimulationContentWrapper","com.azure.resourcemanager.servicefabricmanagedclusters.models.FaultSimulationDetails":"Microsoft.ServiceFabric.FaultSimulationDetails","com.azure.resourcemanager.servicefabricmanagedclusters.models.FaultSimulationIdContent":"Microsoft.ServiceFabric.FaultSimulationIdContent","com.azure.resourcemanager.servicefabricmanagedclusters.models.FaultSimulationStatus":"Microsoft.ServiceFabric.FaultSimulationStatus","com.azure.resourcemanager.servicefabricmanagedclusters.models.FrontendConfiguration":"Microsoft.ServiceFabric.FrontendConfiguration","com.azure.resourcemanager.servicefabricmanagedclusters.models.HealthFilter":"Microsoft.ServiceFabric.HealthFilter","com.azure.resourcemanager.servicefabricmanagedclusters.models.IpAddressType":"Microsoft.ServiceFabric.IPAddressType","com.azure.resourcemanager.servicefabricmanagedclusters.models.IpConfiguration":"Microsoft.ServiceFabric.IpConfiguration","com.azure.resourcemanager.servicefabricmanagedclusters.models.IpConfigurationPublicIpAddressConfiguration":"Microsoft.ServiceFabric.PublicIPAddressConfiguration","com.azure.resourcemanager.servicefabricmanagedclusters.models.IpTag":"Microsoft.ServiceFabric.IpTag","com.azure.resourcemanager.servicefabricmanagedclusters.models.LoadBalancingRule":"Microsoft.ServiceFabric.LoadBalancingRule","com.azure.resourcemanager.servicefabricmanagedclusters.models.ManagedClusterAddOnFeature":"Microsoft.ServiceFabric.ManagedClusterAddOnFeature","com.azure.resourcemanager.servicefabricmanagedclusters.models.ManagedClusterUpdateParameters":"Microsoft.ServiceFabric.ManagedClusterUpdateParameters","com.azure.resourcemanager.servicefabricmanagedclusters.models.ManagedClusterVersionEnvironment":"Microsoft.ServiceFabric.ManagedClusterVersionEnvironment","com.azure.resourcemanager.servicefabricmanagedclusters.models.ManagedIdentity":"Microsoft.ServiceFabric.ManagedIdentity","com.azure.resourcemanager.servicefabricmanagedclusters.models.ManagedIdentityType":"Microsoft.ServiceFabric.ManagedIdentityType","com.azure.resourcemanager.servicefabricmanagedclusters.models.ManagedResourceProvisioningState":"Microsoft.ServiceFabric.ManagedResourceProvisioningState","com.azure.resourcemanager.servicefabricmanagedclusters.models.MoveCost":"Microsoft.ServiceFabric.MoveCost","com.azure.resourcemanager.servicefabricmanagedclusters.models.NamedPartitionScheme":"Microsoft.ServiceFabric.NamedPartitionScheme","com.azure.resourcemanager.servicefabricmanagedclusters.models.NetworkSecurityRule":"Microsoft.ServiceFabric.NetworkSecurityRule","com.azure.resourcemanager.servicefabricmanagedclusters.models.NodeTypeActionParameters":"Microsoft.ServiceFabric.NodeTypeActionParameters","com.azure.resourcemanager.servicefabricmanagedclusters.models.NodeTypeFaultSimulation":"Microsoft.ServiceFabric.NodeTypeFaultSimulation","com.azure.resourcemanager.servicefabricmanagedclusters.models.NodeTypeNatConfig":"Microsoft.ServiceFabric.NodeTypeNatConfig","com.azure.resourcemanager.servicefabricmanagedclusters.models.NodeTypeSku":"Microsoft.ServiceFabric.NodeTypeSku","com.azure.resourcemanager.servicefabricmanagedclusters.models.NodeTypeSkuCapacity":"Microsoft.ServiceFabric.NodeTypeSkuCapacity","com.azure.resourcemanager.servicefabricmanagedclusters.models.NodeTypeSkuScaleType":"Microsoft.ServiceFabric.NodeTypeSkuScaleType","com.azure.resourcemanager.servicefabricmanagedclusters.models.NodeTypeSupportedSku":"Microsoft.ServiceFabric.NodeTypeSupportedSku","com.azure.resourcemanager.servicefabricmanagedclusters.models.NodeTypeUpdateParameters":"Microsoft.ServiceFabric.NodeTypeUpdateParameters","com.azure.resourcemanager.servicefabricmanagedclusters.models.NsgProtocol":"Microsoft.ServiceFabric.NsgProtocol","com.azure.resourcemanager.servicefabricmanagedclusters.models.OsType":"Microsoft.ServiceFabric.OsType","com.azure.resourcemanager.servicefabricmanagedclusters.models.Partition":"Microsoft.ServiceFabric.Partition","com.azure.resourcemanager.servicefabricmanagedclusters.models.PartitionInstanceCountScaleMechanism":"Microsoft.ServiceFabric.PartitionInstanceCountScaleMechanism","com.azure.resourcemanager.servicefabricmanagedclusters.models.PartitionScheme":"Microsoft.ServiceFabric.PartitionScheme","com.azure.resourcemanager.servicefabricmanagedclusters.models.PrivateEndpointNetworkPolicies":"Microsoft.ServiceFabric.PrivateEndpointNetworkPolicies","com.azure.resourcemanager.servicefabricmanagedclusters.models.PrivateIpAddressVersion":"Microsoft.ServiceFabric.PrivateIPAddressVersion","com.azure.resourcemanager.servicefabricmanagedclusters.models.PrivateLinkServiceNetworkPolicies":"Microsoft.ServiceFabric.PrivateLinkServiceNetworkPolicies","com.azure.resourcemanager.servicefabricmanagedclusters.models.ProbeProtocol":"Microsoft.ServiceFabric.ProbeProtocol","com.azure.resourcemanager.servicefabricmanagedclusters.models.Protocol":"Microsoft.ServiceFabric.Protocol","com.azure.resourcemanager.servicefabricmanagedclusters.models.PublicIpAddressVersion":"Microsoft.ServiceFabric.PublicIPAddressVersion","com.azure.resourcemanager.servicefabricmanagedclusters.models.ResourceAzStatus":"Microsoft.ServiceFabric.ResourceAzStatus","com.azure.resourcemanager.servicefabricmanagedclusters.models.RestartDeployedCodePackageRequest":"Microsoft.ServiceFabric.RestartDeployedCodePackageRequest","com.azure.resourcemanager.servicefabricmanagedclusters.models.RestartKind":"Microsoft.ServiceFabric.RestartKind","com.azure.resourcemanager.servicefabricmanagedclusters.models.RestartReplicaRequest":"Microsoft.ServiceFabric.RestartReplicaRequest","com.azure.resourcemanager.servicefabricmanagedclusters.models.RollingUpgradeMode":"Microsoft.ServiceFabric.RollingUpgradeMode","com.azure.resourcemanager.servicefabricmanagedclusters.models.RollingUpgradeMonitoringPolicy":"Microsoft.ServiceFabric.RollingUpgradeMonitoringPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeApplicationHealthPolicy":"Microsoft.ServiceFabric.RuntimeApplicationHealthPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeFailureAction":"Microsoft.ServiceFabric.RuntimeFailureAction","com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeResumeApplicationUpgradeParameters":"Microsoft.ServiceFabric.RuntimeResumeApplicationUpgradeParameters","com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeRollingUpgradeMode":"Microsoft.ServiceFabric.RuntimeRollingUpgradeMode","com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeRollingUpgradeUpdateMonitoringPolicy":"Microsoft.ServiceFabric.RuntimeRollingUpgradeUpdateMonitoringPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeServiceTypeHealthPolicy":"Microsoft.ServiceFabric.RuntimeServiceTypeHealthPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeUpdateApplicationUpgradeParameters":"Microsoft.ServiceFabric.RuntimeUpdateApplicationUpgradeParameters","com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeUpgradeKind":"Microsoft.ServiceFabric.RuntimeUpgradeKind","com.azure.resourcemanager.servicefabricmanagedclusters.models.ScalingMechanism":"Microsoft.ServiceFabric.ScalingMechanism","com.azure.resourcemanager.servicefabricmanagedclusters.models.ScalingPolicy":"Microsoft.ServiceFabric.ScalingPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ScalingTrigger":"Microsoft.ServiceFabric.ScalingTrigger","com.azure.resourcemanager.servicefabricmanagedclusters.models.SecurityEncryptionType":"Microsoft.ServiceFabric.SecurityEncryptionType","com.azure.resourcemanager.servicefabricmanagedclusters.models.SecurityType":"Microsoft.ServiceFabric.SecurityType","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceCorrelation":"Microsoft.ServiceFabric.ServiceCorrelation","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceCorrelationScheme":"Microsoft.ServiceFabric.ServiceCorrelationScheme","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceEndpoint":"Microsoft.ServiceFabric.ServiceEndpoint","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceKind":"Microsoft.ServiceFabric.ServiceKind","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceLoadMetric":"Microsoft.ServiceFabric.ServiceLoadMetric","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceLoadMetricWeight":"Microsoft.ServiceFabric.ServiceLoadMetricWeight","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServicePackageActivationMode":"Microsoft.ServiceFabric.ServicePackageActivationMode","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServicePlacementInvalidDomainPolicy":"Microsoft.ServiceFabric.ServicePlacementInvalidDomainPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServicePlacementNonPartiallyPlaceServicePolicy":"Microsoft.ServiceFabric.ServicePlacementNonPartiallyPlaceServicePolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServicePlacementPolicy":"Microsoft.ServiceFabric.ServicePlacementPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServicePlacementPolicyType":"Microsoft.ServiceFabric.ServicePlacementPolicyType","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServicePlacementPreferPrimaryDomainPolicy":"Microsoft.ServiceFabric.ServicePlacementPreferPrimaryDomainPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServicePlacementRequireDomainDistributionPolicy":"Microsoft.ServiceFabric.ServicePlacementRequireDomainDistributionPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServicePlacementRequiredDomainPolicy":"Microsoft.ServiceFabric.ServicePlacementRequiredDomainPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceResourceProperties":"Microsoft.ServiceFabric.ServiceResourceProperties","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceResourcePropertiesBase":"Microsoft.ServiceFabric.ServiceResourcePropertiesBase","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceScalingMechanismKind":"Microsoft.ServiceFabric.ServiceScalingMechanismKind","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceScalingTriggerKind":"Microsoft.ServiceFabric.ServiceScalingTriggerKind","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceTypeHealthPolicy":"Microsoft.ServiceFabric.ServiceTypeHealthPolicy","com.azure.resourcemanager.servicefabricmanagedclusters.models.ServiceUpdateParameters":"Microsoft.ServiceFabric.ServiceUpdateParameters","com.azure.resourcemanager.servicefabricmanagedclusters.models.SettingsParameterDescription":"Microsoft.ServiceFabric.SettingsParameterDescription","com.azure.resourcemanager.servicefabricmanagedclusters.models.SettingsSectionDescription":"Microsoft.ServiceFabric.SettingsSectionDescription","com.azure.resourcemanager.servicefabricmanagedclusters.models.SfmcOperationStatus":"Microsoft.ServiceFabric.SfmcOperationStatus","com.azure.resourcemanager.servicefabricmanagedclusters.models.SingletonPartitionScheme":"Microsoft.ServiceFabric.SingletonPartitionScheme","com.azure.resourcemanager.servicefabricmanagedclusters.models.Sku":"Microsoft.ServiceFabric.Sku","com.azure.resourcemanager.servicefabricmanagedclusters.models.SkuName":"Microsoft.ServiceFabric.SkuName","com.azure.resourcemanager.servicefabricmanagedclusters.models.StatefulServiceProperties":"Microsoft.ServiceFabric.StatefulServiceProperties","com.azure.resourcemanager.servicefabricmanagedclusters.models.StatelessServiceProperties":"Microsoft.ServiceFabric.StatelessServiceProperties","com.azure.resourcemanager.servicefabricmanagedclusters.models.Subnet":"Microsoft.ServiceFabric.Subnet","com.azure.resourcemanager.servicefabricmanagedclusters.models.UniformInt64RangePartitionScheme":"Microsoft.ServiceFabric.UniformInt64RangePartitionScheme","com.azure.resourcemanager.servicefabricmanagedclusters.models.UpdateType":"Microsoft.ServiceFabric.UpdateType","com.azure.resourcemanager.servicefabricmanagedclusters.models.UserAssignedIdentity":"Microsoft.ServiceFabric.UserAssignedIdentity","com.azure.resourcemanager.servicefabricmanagedclusters.models.VMSize":"Microsoft.ServiceFabric.VMSize","com.azure.resourcemanager.servicefabricmanagedclusters.models.VaultCertificate":"Microsoft.ServiceFabric.VaultCertificate","com.azure.resourcemanager.servicefabricmanagedclusters.models.VaultSecretGroup":"Microsoft.ServiceFabric.VaultSecretGroup","com.azure.resourcemanager.servicefabricmanagedclusters.models.VmApplication":"Microsoft.ServiceFabric.VmApplication","com.azure.resourcemanager.servicefabricmanagedclusters.models.VmImagePlan":"Microsoft.ServiceFabric.VmImagePlan","com.azure.resourcemanager.servicefabricmanagedclusters.models.VmManagedIdentity":"Microsoft.ServiceFabric.VmManagedIdentity","com.azure.resourcemanager.servicefabricmanagedclusters.models.VmSetupAction":"Microsoft.ServiceFabric.VmSetupAction","com.azure.resourcemanager.servicefabricmanagedclusters.models.VmssDataDisk":"Microsoft.ServiceFabric.VmssDataDisk","com.azure.resourcemanager.servicefabricmanagedclusters.models.VmssExtension":"Microsoft.ServiceFabric.VMSSExtension","com.azure.resourcemanager.servicefabricmanagedclusters.models.VmssExtensionSetupOrder":"Microsoft.ServiceFabric.VmssExtensionSetupOrder","com.azure.resourcemanager.servicefabricmanagedclusters.models.ZonalUpdateMode":"Microsoft.ServiceFabric.ZonalUpdateMode","com.azure.resourcemanager.servicefabricmanagedclusters.models.ZoneFaultSimulationContent":"Microsoft.ServiceFabric.ZoneFaultSimulationContent"},"generatedFiles":["src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/ServiceFabricManagedClustersManager.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ApplicationTypeVersionsClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ApplicationTypesClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ApplicationsClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ManagedApplyMaintenanceWindowsClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ManagedAzResiliencyStatusesClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ManagedClusterVersionsClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ManagedClustersClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ManagedMaintenanceWindowStatusesClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ManagedUnsupportedVMSizesClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/NodeTypeSkusClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/NodeTypesClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ServiceFabricManagedClustersMgmtClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/ServicesClient.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ApplicationResourceInner.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ApplicationResourceProperties.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ApplicationTypeResourceInner.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ApplicationTypeResourceProperties.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ApplicationTypeVersionResourceInner.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ApplicationTypeVersionResourceProperties.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/FaultSimulationInner.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ManagedAzResiliencyStatusInner.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ManagedClusterCodeVersionResultInner.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ManagedClusterInner.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ManagedClusterProperties.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ManagedClusterVersionDetails.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ManagedMaintenanceWindowStatusInner.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ManagedVMSizeInner.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/NodeTypeAvailableSkuInner.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/NodeTypeInner.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/NodeTypeProperties.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/OperationResultInner.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/ServiceResourceInner.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/VMSSExtensionProperties.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/fluent/package-info.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationResourceImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationTypeResourceImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationTypeVersionResourceImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationTypeVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationTypeVersionsImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationTypesClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationTypesImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationsClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ApplicationsImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/FaultSimulationImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedApplyMaintenanceWindowsClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedApplyMaintenanceWindowsImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedAzResiliencyStatusImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedAzResiliencyStatusesClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedAzResiliencyStatusesImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedClusterCodeVersionResultImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedClusterImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedClusterVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedClusterVersionsImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedClustersClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedClustersImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedMaintenanceWindowStatusImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedMaintenanceWindowStatusesClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedMaintenanceWindowStatusesImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedUnsupportedVMSizesClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedUnsupportedVMSizesImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ManagedVMSizeImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/NodeTypeAvailableSkuImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/NodeTypeImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/NodeTypeSkusClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/NodeTypeSkusImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/NodeTypesClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/NodeTypesImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/OperationResultImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ServiceFabricManagedClustersMgmtClientBuilder.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ServiceFabricManagedClustersMgmtClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ServiceResourceImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ServicesClientImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/ServicesImpl.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/models/ApplicationResourceList.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/models/ApplicationTypeResourceList.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/models/ApplicationTypeVersionResourceList.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/models/FaultSimulationListResult.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/models/ManagedClusterListResult.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/models/ManagedVMSizesResult.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/models/NodeTypeListResult.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/models/NodeTypeListSkuResult.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/models/ServiceResourceList.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/implementation/package-info.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/Access.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/AddRemoveIncrementalNamedPartitionScalingMechanism.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/AdditionalNetworkInterfaceConfiguration.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationFetchHealthRequest.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationHealthPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationResource.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationTypeResource.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationTypeUpdateParameters.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationTypeVersionResource.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationTypeVersionUpdateParameters.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationTypeVersions.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationTypeVersionsCleanupPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationTypes.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationUpdateParameters.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationUpdateParametersProperties.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationUpgradePolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ApplicationUserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/Applications.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/AutoGeneratedDomainNameLabelScope.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/AvailableOperationDisplay.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/AveragePartitionLoadScalingTrigger.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/AverageServiceLoadScalingTrigger.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/AzureActiveDirectory.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ClientCertificate.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ClusterHealthPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ClusterMonitoringPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ClusterState.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ClusterUpgradeCadence.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ClusterUpgradeDeltaHealthPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ClusterUpgradeMode.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ClusterUpgradePolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/Direction.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/DiskType.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/EndpointRangeDescription.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/EvictionPolicyType.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/FailureAction.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/FaultKind.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/FaultSimulation.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/FaultSimulationConstraints.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/FaultSimulationContent.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/FaultSimulationContentWrapper.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/FaultSimulationDetails.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/FaultSimulationIdContent.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/FaultSimulationStatus.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/FrontendConfiguration.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/HealthFilter.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/IpAddressType.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/IpConfiguration.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/IpConfigurationPublicIpAddressConfiguration.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/IpTag.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/LoadBalancingRule.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedApplyMaintenanceWindows.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedAzResiliencyStatus.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedAzResiliencyStatuses.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedCluster.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedClusterAddOnFeature.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedClusterCodeVersionResult.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedClusterUpdateParameters.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedClusterVersionEnvironment.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedClusterVersions.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedClusters.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedIdentity.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedIdentityType.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedMaintenanceWindowStatus.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedMaintenanceWindowStatuses.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedResourceProvisioningState.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedUnsupportedVMSizes.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ManagedVMSize.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/MoveCost.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NamedPartitionScheme.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NetworkSecurityRule.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NodeType.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NodeTypeActionParameters.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NodeTypeAvailableSku.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NodeTypeFaultSimulation.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NodeTypeNatConfig.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NodeTypeSku.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NodeTypeSkuCapacity.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NodeTypeSkuScaleType.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NodeTypeSkus.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NodeTypeSupportedSku.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NodeTypeUpdateParameters.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NodeTypes.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/NsgProtocol.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/OperationResult.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/Operations.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/OsType.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/Partition.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/PartitionInstanceCountScaleMechanism.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/PartitionScheme.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/PrivateEndpointNetworkPolicies.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/PrivateIpAddressVersion.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/PrivateLinkServiceNetworkPolicies.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ProbeProtocol.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/Protocol.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/PublicIpAddressVersion.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ResourceAzStatus.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RestartDeployedCodePackageRequest.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RestartKind.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RestartReplicaRequest.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RollingUpgradeMode.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RollingUpgradeMonitoringPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeApplicationHealthPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeFailureAction.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeResumeApplicationUpgradeParameters.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeRollingUpgradeMode.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeRollingUpgradeUpdateMonitoringPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeServiceTypeHealthPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeUpdateApplicationUpgradeParameters.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/RuntimeUpgradeKind.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ScalingMechanism.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ScalingPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ScalingTrigger.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/SecurityEncryptionType.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/SecurityType.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceCorrelation.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceCorrelationScheme.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceEndpoint.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceKind.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceLoadMetric.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceLoadMetricWeight.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServicePackageActivationMode.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServicePlacementInvalidDomainPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServicePlacementNonPartiallyPlaceServicePolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServicePlacementPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServicePlacementPolicyType.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServicePlacementPreferPrimaryDomainPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServicePlacementRequireDomainDistributionPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServicePlacementRequiredDomainPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceResource.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceResourceProperties.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceResourcePropertiesBase.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceScalingMechanismKind.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceScalingTriggerKind.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceTypeHealthPolicy.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ServiceUpdateParameters.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/Services.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/SettingsParameterDescription.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/SettingsSectionDescription.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/SfmcOperationStatus.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/SingletonPartitionScheme.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/Sku.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/SkuName.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/StatefulServiceProperties.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/StatelessServiceProperties.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/Subnet.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/UniformInt64RangePartitionScheme.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/UpdateType.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/VMSize.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/VaultCertificate.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/VaultSecretGroup.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/VmApplication.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/VmImagePlan.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/VmManagedIdentity.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/VmSetupAction.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/VmssDataDisk.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/VmssExtension.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/VmssExtensionSetupOrder.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ZonalUpdateMode.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/ZoneFaultSimulationContent.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/package-info.java","src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsCreateOrUpdateSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsCreateOrUpdateSamples.java index ecca1394e4ae..8ff0129b1815 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsCreateOrUpdateSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsCreateOrUpdateSamples.java @@ -9,7 +9,7 @@ */ public final class ApplicationTypeVersionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationTypeVersionPutOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationTypeVersionPutOperation_example.json */ /** * Sample code: Put an application type version. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsDeleteSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsDeleteSamples.java index 39abad1f1999..28a122530222 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsDeleteSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ApplicationTypeVersionsDeleteSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationTypeVersionDeleteOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationTypeVersionDeleteOperation_example.json */ /** * Sample code: Delete an application type version. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsGetSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsGetSamples.java index 139033fb9922..21465e4a54c0 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsGetSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsGetSamples.java @@ -9,7 +9,7 @@ */ public final class ApplicationTypeVersionsGetSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationTypeVersionGetOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationTypeVersionGetOperation_example.json */ /** * Sample code: Get an application type version. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsListByApplicationTypeSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsListByApplicationTypeSamples.java index 8426f472339e..60c38de2b357 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsListByApplicationTypeSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsListByApplicationTypeSamples.java @@ -9,7 +9,7 @@ */ public final class ApplicationTypeVersionsListByApplicationTypeSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationTypeVersionListOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationTypeVersionListOperation_example.json */ /** * Sample code: Get a list of application type version resources. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsUpdateSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsUpdateSamples.java index 545feab5ebb1..9bc50989ecb2 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsUpdateSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class ApplicationTypeVersionsUpdateSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationTypeVersionPatchOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationTypeVersionPatchOperation_example.json */ /** * Sample code: Patch an application type version. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesCreateOrUpdateSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesCreateOrUpdateSamples.java index 0c0488cd8362..3555f8663472 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesCreateOrUpdateSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesCreateOrUpdateSamples.java @@ -9,7 +9,7 @@ */ public final class ApplicationTypesCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationTypeNamePutOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationTypeNamePutOperation_example.json */ /** * Sample code: Put an application type. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesDeleteSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesDeleteSamples.java index 20902a9a25c0..cf61fc68451b 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesDeleteSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ApplicationTypesDeleteSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationTypeNameDeleteOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationTypeNameDeleteOperation_example.json */ /** * Sample code: Delete an application type. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesGetSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesGetSamples.java index 104580efd708..00e4c128726a 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesGetSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesGetSamples.java @@ -9,7 +9,7 @@ */ public final class ApplicationTypesGetSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationTypeNameGetOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationTypeNameGetOperation_example.json */ /** * Sample code: Get an application type. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesListSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesListSamples.java index 0ffe80d593fd..dcb19f52d971 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesListSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesListSamples.java @@ -9,7 +9,7 @@ */ public final class ApplicationTypesListSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationTypeNameListOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationTypeNameListOperation_example.json */ /** * Sample code: Get a list of application type name resources. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesUpdateSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesUpdateSamples.java index 98293488c5a6..8a3a2f4b2048 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesUpdateSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class ApplicationTypesUpdateSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationTypeNamePatchOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationTypeNamePatchOperation_example.json */ /** * Sample code: Patch an application type. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsCreateOrUpdateSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsCreateOrUpdateSamples.java index 8eb42814021b..94510f82fbd2 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsCreateOrUpdateSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsCreateOrUpdateSamples.java @@ -18,7 +18,7 @@ */ public final class ApplicationsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationPutOperation_example_max.json + * x-ms-original-file: 2025-10-01-preview/ApplicationPutOperation_example_max.json */ /** * Sample code: Put an application with maximum parameters. @@ -61,7 +61,7 @@ public static void putAnApplicationWithMaximumParameters( } /* - * x-ms-original-file: 2025-06-01-preview/ApplicationPutOperation_example_min.json + * x-ms-original-file: 2025-10-01-preview/ApplicationPutOperation_example_min.json */ /** * Sample code: Put an application with minimum parameters. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsDeleteSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsDeleteSamples.java index 83607770c9b4..83ee31d2cd2a 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsDeleteSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ApplicationsDeleteSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationDeleteOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationDeleteOperation_example.json */ /** * Sample code: Delete an application. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsFetchHealthSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsFetchHealthSamples.java new file mode 100644 index 000000000000..33bf2d00cff7 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsFetchHealthSamples.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.servicefabricmanagedclusters.generated; + +import com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationFetchHealthRequest; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.HealthFilter; + +/** + * Samples for Applications FetchHealth. + */ +public final class ApplicationsFetchHealthSamples { + /* + * x-ms-original-file: 2025-10-01-preview/ApplicationActionFetchHealth_example.json + */ + /** + * Sample code: Fetch application health. + * + * @param manager Entry point to ServiceFabricManagedClustersManager. + */ + public static void fetchApplicationHealth( + com.azure.resourcemanager.servicefabricmanagedclusters.ServiceFabricManagedClustersManager manager) { + manager.applications() + .fetchHealth("resRg", "myCluster", "myApp", + new ApplicationFetchHealthRequest().withEventsHealthStateFilter(HealthFilter.ERROR) + .withDeployedApplicationsHealthStateFilter(HealthFilter.ERROR) + .withServicesHealthStateFilter(HealthFilter.ERROR) + .withExcludeHealthStatistics(true) + .withTimeout(30L), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsGetSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsGetSamples.java index 071a16d6c5b3..6396f3ea0ec6 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsGetSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsGetSamples.java @@ -9,7 +9,7 @@ */ public final class ApplicationsGetSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationGetOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationGetOperation_example.json */ /** * Sample code: Get an application. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsListSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsListSamples.java index fc592bae0827..9d3a38fe6440 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsListSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsListSamples.java @@ -9,7 +9,7 @@ */ public final class ApplicationsListSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationListOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationListOperation_example.json */ /** * Sample code: Get a list of application resources. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsReadUpgradeSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsReadUpgradeSamples.java index 3aff5325dbc5..4320a0914241 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsReadUpgradeSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsReadUpgradeSamples.java @@ -9,7 +9,7 @@ */ public final class ApplicationsReadUpgradeSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationActionGetUpgrade_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationActionGetUpgrade_example.json */ /** * Sample code: Get an application upgrade. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsRestartDeployedCodePackageSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsRestartDeployedCodePackageSamples.java new file mode 100644 index 000000000000..1abda62a915b --- /dev/null +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsRestartDeployedCodePackageSamples.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.servicefabricmanagedclusters.generated; + +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RestartDeployedCodePackageRequest; + +/** + * Samples for Applications RestartDeployedCodePackage. + */ +public final class ApplicationsRestartDeployedCodePackageSamples { + /* + * x-ms-original-file: 2025-10-01-preview/ApplicationActionRestartDeployedCodePackage_example.json + */ + /** + * Sample code: Restart deployed code package. + * + * @param manager Entry point to ServiceFabricManagedClustersManager. + */ + public static void restartDeployedCodePackage( + com.azure.resourcemanager.servicefabricmanagedclusters.ServiceFabricManagedClustersManager manager) { + manager.applications() + .restartDeployedCodePackage("resRg", "myCluster", "myApp", + new RestartDeployedCodePackageRequest().withNodeName("nt1_0") + .withServiceManifestName("TestPkg") + .withCodePackageName("fakeTokenPlaceholder") + .withCodePackageInstanceId("fakeTokenPlaceholder") + .withServicePackageActivationId("sharedProcess"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsResumeUpgradeSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsResumeUpgradeSamples.java index 4ad470d8868d..a7cae81d0282 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsResumeUpgradeSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsResumeUpgradeSamples.java @@ -11,7 +11,7 @@ */ public final class ApplicationsResumeUpgradeSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationActionResumeUpgrade_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationActionResumeUpgrade_example.json */ /** * Sample code: Resume upgrade. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsStartRollbackSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsStartRollbackSamples.java index d04994897e06..44d6ad34fa4d 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsStartRollbackSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsStartRollbackSamples.java @@ -9,7 +9,7 @@ */ public final class ApplicationsStartRollbackSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationActionStartRollback_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationActionStartRollback_example.json */ /** * Sample code: Start an application upgrade rollback. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsUpdateSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsUpdateSamples.java index 38936195655c..08471d5af3d6 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsUpdateSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsUpdateSamples.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.servicefabricmanagedclusters.generated; import com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationResource; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationUpdateParametersProperties; import java.util.HashMap; import java.util.Map; @@ -13,7 +14,7 @@ */ public final class ApplicationsUpdateSamples { /* - * x-ms-original-file: 2025-06-01-preview/ApplicationPatchOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ApplicationPatchOperation_example.json */ /** * Sample code: Patch an application. @@ -25,7 +26,11 @@ public static void patchAnApplication( ApplicationResource resource = manager.applications() .getWithResponse("resRg", "myCluster", "myApp", com.azure.core.util.Context.NONE) .getValue(); - resource.update().withTags(mapOf("a", "b")).apply(); + resource.update() + .withTags(mapOf("a", "b")) + .withProperties(new ApplicationUpdateParametersProperties() + .withParameters(mapOf("param1", "value1", "param2", "value2"))) + .apply(); } // Use "Map.of" if available diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsUpdateUpgradeSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsUpdateUpgradeSamples.java new file mode 100644 index 000000000000..5859cd0d88f9 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsUpdateUpgradeSamples.java @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.servicefabricmanagedclusters.generated; + +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeApplicationHealthPolicy; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeFailureAction; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeRollingUpgradeMode; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeRollingUpgradeUpdateMonitoringPolicy; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeServiceTypeHealthPolicy; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeUpdateApplicationUpgradeParameters; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeUpgradeKind; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for Applications UpdateUpgrade. + */ +public final class ApplicationsUpdateUpgradeSamples { + /* + * x-ms-original-file: 2025-10-01-preview/ApplicationActionUpdateUpgrade_example.json + */ + /** + * Sample code: Update an application upgrade. + * + * @param manager Entry point to ServiceFabricManagedClustersManager. + */ + public static void updateAnApplicationUpgrade( + com.azure.resourcemanager.servicefabricmanagedclusters.ServiceFabricManagedClustersManager manager) { + manager.applications() + .updateUpgrade("resRg", "myCluster", "myApp", + new RuntimeUpdateApplicationUpgradeParameters().withName("fabric:/Voting") + .withUpgradeKind(RuntimeUpgradeKind.ROLLING) + .withApplicationHealthPolicy(new RuntimeApplicationHealthPolicy().withConsiderWarningAsError(true) + .withMaxPercentUnhealthyDeployedApplications(10) + .withDefaultServiceTypeHealthPolicy( + new RuntimeServiceTypeHealthPolicy().withMaxPercentUnhealthyServices(12) + .withMaxPercentUnhealthyPartitionsPerService(10) + .withMaxPercentUnhealthyReplicasPerPartition(11)) + .withServiceTypeHealthPolicyMap(mapOf("VotingWeb", + new RuntimeServiceTypeHealthPolicy().withMaxPercentUnhealthyServices(15) + .withMaxPercentUnhealthyPartitionsPerService(13) + .withMaxPercentUnhealthyReplicasPerPartition(14)))) + .withUpdateDescription(new RuntimeRollingUpgradeUpdateMonitoringPolicy() + .withRollingUpgradeMode(RuntimeRollingUpgradeMode.MONITORED) + .withForceRestart(true) + .withFailureAction(RuntimeFailureAction.MANUAL) + .withHealthCheckWaitDurationInMilliseconds("PT0H0M10S") + .withHealthCheckStableDurationInMilliseconds("PT1H0M0S") + .withHealthCheckRetryTimeoutInMilliseconds("PT0H15M0S") + .withUpgradeTimeoutInMilliseconds("PT2H0M0S") + .withUpgradeDomainTimeoutInMilliseconds("PT2H0M0S")), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedApplyMaintenanceWindowPostSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedApplyMaintenanceWindowPostSamples.java index c38a9bf247db..1b0d59964f25 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedApplyMaintenanceWindowPostSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedApplyMaintenanceWindowPostSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedApplyMaintenanceWindowPostSamples { /* - * x-ms-original-file: 2025-06-01-preview/ManagedApplyMaintenanceWindowPost_example.json + * x-ms-original-file: 2025-10-01-preview/ManagedApplyMaintenanceWindowPost_example.json */ /** * Sample code: Apply Maintenance Window Status. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedAzResiliencyStatusesGetSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedAzResiliencyStatusesGetSamples.java index 7b2103850533..58cd85137723 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedAzResiliencyStatusesGetSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedAzResiliencyStatusesGetSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedAzResiliencyStatusesGetSamples { /* - * x-ms-original-file: 2025-06-01-preview/managedAzResiliencyStatusGet_example.json + * x-ms-original-file: 2025-10-01-preview/managedAzResiliencyStatusGet_example.json */ /** * Sample code: Az Resiliency status of Base Resources. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClusterVersionGetByEnvironmentSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClusterVersionGetByEnvironmentSamples.java index 56678e3fa7db..a784aaade51d 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClusterVersionGetByEnvironmentSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClusterVersionGetByEnvironmentSamples.java @@ -11,7 +11,7 @@ */ public final class ManagedClusterVersionGetByEnvironmentSamples { /* - * x-ms-original-file: 2025-06-01-preview/ManagedClusterVersionGetByEnvironment_example.json + * x-ms-original-file: 2025-10-01-preview/ManagedClusterVersionGetByEnvironment_example.json */ /** * Sample code: Get cluster version by environment. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClusterVersionGetSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClusterVersionGetSamples.java index 16c60261ac4e..de5b4711a22e 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClusterVersionGetSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClusterVersionGetSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClusterVersionGetSamples { /* - * x-ms-original-file: 2025-06-01-preview/ManagedClusterVersionGet_example.json + * x-ms-original-file: 2025-10-01-preview/ManagedClusterVersionGet_example.json */ /** * Sample code: Get cluster version. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClusterVersionListByEnvironmentSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClusterVersionListByEnvironmentSamples.java index e5c4ccd3a608..b7296523c8ab 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClusterVersionListByEnvironmentSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClusterVersionListByEnvironmentSamples.java @@ -11,7 +11,7 @@ */ public final class ManagedClusterVersionListByEnvironmentSamples { /* - * x-ms-original-file: 2025-06-01-preview/ManagedClusterVersionListByEnvironment.json + * x-ms-original-file: 2025-10-01-preview/ManagedClusterVersionListByEnvironment.json */ /** * Sample code: List cluster versions by environment. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClusterVersionListSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClusterVersionListSamples.java index 353377aa1e5c..28506e081ecf 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClusterVersionListSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClusterVersionListSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClusterVersionListSamples { /* - * x-ms-original-file: 2025-06-01-preview/ManagedClusterVersionList_example.json + * x-ms-original-file: 2025-10-01-preview/ManagedClusterVersionList_example.json */ /** * Sample code: List cluster versions. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersCreateOrUpdateSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersCreateOrUpdateSamples.java index 7dea934aa2ad..6cc3b85b1d3f 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersCreateOrUpdateSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersCreateOrUpdateSamples.java @@ -39,7 +39,7 @@ */ public final class ManagedClustersCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01-preview/ManagedClusterPutOperation_example_max.json + * x-ms-original-file: 2025-10-01-preview/ManagedClusterPutOperation_example_max.json */ /** * Sample code: Put a cluster with maximum parameters. @@ -148,7 +148,7 @@ public static void putAClusterWithMaximumParameters( } /* - * x-ms-original-file: 2025-06-01-preview/ManagedClusterPutOperation_example_min.json + * x-ms-original-file: 2025-10-01-preview/ManagedClusterPutOperation_example_min.json */ /** * Sample code: Put a cluster with minimum parameters. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersDeleteSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersDeleteSamples.java index 9b38f36dd012..ec905caaad4d 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersDeleteSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClustersDeleteSamples { /* - * x-ms-original-file: 2025-06-01-preview/ManagedClusterDeleteOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ManagedClusterDeleteOperation_example.json */ /** * Sample code: Delete a cluster. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersGetByResourceGroupSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersGetByResourceGroupSamples.java index f379ca4fd7fa..9b648bc305c2 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersGetByResourceGroupSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClustersGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01-preview/ManagedClusterGetOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ManagedClusterGetOperation_example.json */ /** * Sample code: Get a cluster. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersGetFaultSimulationSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersGetFaultSimulationSamples.java index b4074866e621..b027a820f093 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersGetFaultSimulationSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersGetFaultSimulationSamples.java @@ -11,7 +11,7 @@ */ public final class ManagedClustersGetFaultSimulationSamples { /* - * x-ms-original-file: 2025-06-01-preview/faultSimulation/ManagedClusterGetFaultSimulation_example.json + * x-ms-original-file: 2025-10-01-preview/faultSimulation/ManagedClusterGetFaultSimulation_example.json */ /** * Sample code: Get Managed Cluster Fault Simulation. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersListByResourceGroupSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersListByResourceGroupSamples.java index 7d2d18a8502a..a79f996487ff 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersListByResourceGroupSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClustersListByResourceGroupSamples { /* - * x-ms-original-file: 2025-06-01-preview/ManagedClusterListByResourceGroupOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ManagedClusterListByResourceGroupOperation_example.json */ /** * Sample code: List cluster by resource group. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersListFaultSimulationSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersListFaultSimulationSamples.java index 460a99d19c12..ae0c318b6b73 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersListFaultSimulationSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersListFaultSimulationSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClustersListFaultSimulationSamples { /* - * x-ms-original-file: 2025-06-01-preview/faultSimulation/ManagedClusterListFaultSimulation_example.json + * x-ms-original-file: 2025-10-01-preview/faultSimulation/ManagedClusterListFaultSimulation_example.json */ /** * Sample code: List Managed Cluster Fault Simulation. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersListSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersListSamples.java index 87012983694b..02de89fb0aab 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersListSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersListSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClustersListSamples { /* - * x-ms-original-file: 2025-06-01-preview/ManagedClusterListBySubscriptionOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ManagedClusterListBySubscriptionOperation_example.json */ /** * Sample code: List managed clusters. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersStartFaultSimulationSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersStartFaultSimulationSamples.java index b9b5c1873149..5c45c926e71a 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersStartFaultSimulationSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersStartFaultSimulationSamples.java @@ -13,7 +13,7 @@ */ public final class ManagedClustersStartFaultSimulationSamples { /* - * x-ms-original-file: 2025-06-01-preview/faultSimulation/ManagedClusterStartFaultSimulation_example.json + * x-ms-original-file: 2025-10-01-preview/faultSimulation/ManagedClusterStartFaultSimulation_example.json */ /** * Sample code: Start Managed Cluster Fault Simulation. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersStopFaultSimulationSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersStopFaultSimulationSamples.java index 033f84ffb3d1..ddeb03980014 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersStopFaultSimulationSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersStopFaultSimulationSamples.java @@ -11,7 +11,7 @@ */ public final class ManagedClustersStopFaultSimulationSamples { /* - * x-ms-original-file: 2025-06-01-preview/faultSimulation/ManagedClusterStopFaultSimulation_example.json + * x-ms-original-file: 2025-10-01-preview/faultSimulation/ManagedClusterStopFaultSimulation_example.json */ /** * Sample code: Stop Managed Cluster Fault Simulation. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersUpdateSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersUpdateSamples.java index 2146ff7b3bbc..3e4419301675 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersUpdateSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class ManagedClustersUpdateSamples { /* - * x-ms-original-file: 2025-06-01-preview/ManagedClusterPatchOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ManagedClusterPatchOperation_example.json */ /** * Sample code: Patch a managed cluster. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedMaintenanceWindowStatusesGetSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedMaintenanceWindowStatusesGetSamples.java index 56c838a18491..eb1ff3f7ac35 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedMaintenanceWindowStatusesGetSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedMaintenanceWindowStatusesGetSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedMaintenanceWindowStatusesGetSamples { /* - * x-ms-original-file: 2025-06-01-preview/ManagedMaintenanceWindowStatusGet_example.json + * x-ms-original-file: 2025-10-01-preview/ManagedMaintenanceWindowStatusGet_example.json */ /** * Sample code: Get Maintenance Window Status. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedUnsupportedVMSizesGetSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedUnsupportedVMSizesGetSamples.java index 92d897540521..586382b1c0bf 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedUnsupportedVMSizesGetSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedUnsupportedVMSizesGetSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedUnsupportedVMSizesGetSamples { /* - * x-ms-original-file: 2025-06-01-preview/managedUnsupportedVMSizesGet_example.json + * x-ms-original-file: 2025-10-01-preview/managedUnsupportedVMSizesGet_example.json */ /** * Sample code: Get unsupported vm sizes. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedUnsupportedVMSizesListSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedUnsupportedVMSizesListSamples.java index dcfe7faf8731..eb66d04bcd4a 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedUnsupportedVMSizesListSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedUnsupportedVMSizesListSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedUnsupportedVMSizesListSamples { /* - * x-ms-original-file: 2025-06-01-preview/managedUnsupportedVMSizesList_example.json + * x-ms-original-file: 2025-10-01-preview/managedUnsupportedVMSizesList_example.json */ /** * Sample code: List unsupported vm sizes. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeSkusListSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeSkusListSamples.java index f2bced300184..003b56a79d03 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeSkusListSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeSkusListSamples.java @@ -9,7 +9,7 @@ */ public final class NodeTypeSkusListSamples { /* - * x-ms-original-file: 2025-06-01-preview/NodeTypeSkusListOperation_example.json + * x-ms-original-file: 2025-10-01-preview/NodeTypeSkusListOperation_example.json */ /** * Sample code: List a node type SKUs. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesCreateOrUpdateSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesCreateOrUpdateSamples.java index f1678e863a57..ae5f2ef39334 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesCreateOrUpdateSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesCreateOrUpdateSamples.java @@ -37,7 +37,7 @@ */ public final class NodeTypesCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01-preview/NodeTypePutOperationStateless_example.json + * x-ms-original-file: 2025-10-01-preview/NodeTypePutOperationStateless_example.json */ /** * Sample code: Put an stateless node type with temporary disk for service fabric. @@ -72,7 +72,7 @@ public static void putAnStatelessNodeTypeWithTemporaryDiskForServiceFabric( } /* - * x-ms-original-file: 2025-06-01-preview/NodeTypePutOperation_example_max.json + * x-ms-original-file: 2025-10-01-preview/NodeTypePutOperation_example_max.json */ /** * Sample code: Put a node type with maximum parameters. @@ -188,7 +188,7 @@ public static void putANodeTypeWithMaximumParameters( } /* - * x-ms-original-file: 2025-06-01-preview/NodeTypePutOperationAutoScale_example.json + * x-ms-original-file: 2025-10-01-preview/NodeTypePutOperationAutoScale_example.json */ /** * Sample code: Put a node type with auto-scale parameters. @@ -234,7 +234,7 @@ public static void putANodeTypeWithAutoScaleParameters( } /* - * x-ms-original-file: 2025-06-01-preview/NodeTypePutOperation_example_min.json + * x-ms-original-file: 2025-10-01-preview/NodeTypePutOperation_example_min.json */ /** * Sample code: Put a node type with minimum parameters. @@ -258,7 +258,7 @@ public static void putANodeTypeWithMinimumParameters( } /* - * x-ms-original-file: 2025-06-01-preview/NodeTypePutOperationDedicatedHost_example.json + * x-ms-original-file: 2025-10-01-preview/NodeTypePutOperationDedicatedHost_example.json */ /** * Sample code: Put node type with dedicated hosts. @@ -288,7 +288,7 @@ public static void putNodeTypeWithDedicatedHosts( } /* - * x-ms-original-file: 2025-06-01-preview/NodeTypePutOperationVmImagePlan_example.json + * x-ms-original-file: 2025-10-01-preview/NodeTypePutOperationVmImagePlan_example.json */ /** * Sample code: Put node type with vm image plan. @@ -315,7 +315,7 @@ public static void putNodeTypeWithVmImagePlan( } /* - * x-ms-original-file: 2025-06-01-preview/NodeTypePutOperationCustomSharedGalleriesImage_example.json + * x-ms-original-file: 2025-10-01-preview/NodeTypePutOperationCustomSharedGalleriesImage_example.json */ /** * Sample code: Put node type with shared galleries custom vm image. @@ -337,7 +337,7 @@ public static void putNodeTypeWithSharedGalleriesCustomVmImage( } /* - * x-ms-original-file: 2025-06-01-preview/NodeTypePutOperationCustomImage_example.json + * x-ms-original-file: 2025-10-01-preview/NodeTypePutOperationCustomImage_example.json */ /** * Sample code: Put node type with custom vm image. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesDeallocateSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesDeallocateSamples.java index c9aff6ba4d09..32f89d683e6e 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesDeallocateSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesDeallocateSamples.java @@ -12,7 +12,7 @@ */ public final class NodeTypesDeallocateSamples { /* - * x-ms-original-file: 2025-06-01-preview/DeallocateNodes_example.json + * x-ms-original-file: 2025-10-01-preview/DeallocateNodes_example.json */ /** * Sample code: Deallocate nodes. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesDeleteNodeSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesDeleteNodeSamples.java index e50a2ab0b252..49c6023d748d 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesDeleteNodeSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesDeleteNodeSamples.java @@ -12,7 +12,7 @@ */ public final class NodeTypesDeleteNodeSamples { /* - * x-ms-original-file: 2025-06-01-preview/DeleteNodes_example.json + * x-ms-original-file: 2025-10-01-preview/DeleteNodes_example.json */ /** * Sample code: Delete nodes. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesDeleteSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesDeleteSamples.java index 16a1b1d425da..c9847021dbbc 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesDeleteSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class NodeTypesDeleteSamples { /* - * x-ms-original-file: 2025-06-01-preview/NodeTypeDeleteOperation_example.json + * x-ms-original-file: 2025-10-01-preview/NodeTypeDeleteOperation_example.json */ /** * Sample code: Delete a node type. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesGetFaultSimulationSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesGetFaultSimulationSamples.java index 7585b0f95a46..6abd9ea525bd 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesGetFaultSimulationSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesGetFaultSimulationSamples.java @@ -11,7 +11,7 @@ */ public final class NodeTypesGetFaultSimulationSamples { /* - * x-ms-original-file: 2025-06-01-preview/faultSimulation/NodeTypeGetFaultSimulation_example.json + * x-ms-original-file: 2025-10-01-preview/faultSimulation/NodeTypeGetFaultSimulation_example.json */ /** * Sample code: Get Node Type Fault Simulation. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesGetSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesGetSamples.java index e126f636c946..6169ac9be55d 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesGetSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesGetSamples.java @@ -9,7 +9,7 @@ */ public final class NodeTypesGetSamples { /* - * x-ms-original-file: 2025-06-01-preview/NodeTypeGetOperation_example.json + * x-ms-original-file: 2025-10-01-preview/NodeTypeGetOperation_example.json */ /** * Sample code: Get a node type. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesListByManagedClustersSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesListByManagedClustersSamples.java index 92f3f69218be..76e432b80f06 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesListByManagedClustersSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesListByManagedClustersSamples.java @@ -9,7 +9,7 @@ */ public final class NodeTypesListByManagedClustersSamples { /* - * x-ms-original-file: 2025-06-01-preview/NodeTypeListOperation_example.json + * x-ms-original-file: 2025-10-01-preview/NodeTypeListOperation_example.json */ /** * Sample code: List node type of the specified managed cluster. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesListFaultSimulationSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesListFaultSimulationSamples.java index a5023f57e6ea..b406fe14fcbe 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesListFaultSimulationSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesListFaultSimulationSamples.java @@ -9,7 +9,7 @@ */ public final class NodeTypesListFaultSimulationSamples { /* - * x-ms-original-file: 2025-06-01-preview/faultSimulation/NodeTypeListFaultSimulation_example.json + * x-ms-original-file: 2025-10-01-preview/faultSimulation/NodeTypeListFaultSimulation_example.json */ /** * Sample code: List Node Type Fault Simulation. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesRedeploySamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesRedeploySamples.java index 5bef17ee33f4..4bc82438e556 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesRedeploySamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesRedeploySamples.java @@ -13,7 +13,7 @@ */ public final class NodeTypesRedeploySamples { /* - * x-ms-original-file: 2025-06-01-preview/RedeployNodes_UD_example.json + * x-ms-original-file: 2025-10-01-preview/RedeployNodes_UD_example.json */ /** * Sample code: Redeploy all nodes by upgrade domain. @@ -29,7 +29,7 @@ public static void redeployAllNodesByUpgradeDomain( } /* - * x-ms-original-file: 2025-06-01-preview/RedeployNodes_example.json + * x-ms-original-file: 2025-10-01-preview/RedeployNodes_example.json */ /** * Sample code: Redeploy nodes. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesReimageSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesReimageSamples.java index a6354c5c7c6b..d8ef8bac081d 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesReimageSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesReimageSamples.java @@ -13,7 +13,7 @@ */ public final class NodeTypesReimageSamples { /* - * x-ms-original-file: 2025-06-01-preview/ReimageNodes_example.json + * x-ms-original-file: 2025-10-01-preview/ReimageNodes_example.json */ /** * Sample code: Reimage nodes. @@ -29,7 +29,7 @@ public static void reimageNodes( } /* - * x-ms-original-file: 2025-06-01-preview/ReimageNodes_UD_example.json + * x-ms-original-file: 2025-10-01-preview/ReimageNodes_UD_example.json */ /** * Sample code: Reimage all nodes by upgrade domain. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesRestartSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesRestartSamples.java index 0c753307bb28..a97db8b1340b 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesRestartSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesRestartSamples.java @@ -12,7 +12,7 @@ */ public final class NodeTypesRestartSamples { /* - * x-ms-original-file: 2025-06-01-preview/RestartNodes_example.json + * x-ms-original-file: 2025-10-01-preview/RestartNodes_example.json */ /** * Sample code: Restart nodes. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesStartFaultSimulationSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesStartFaultSimulationSamples.java index 9e7fbacb338f..b7cef1050444 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesStartFaultSimulationSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesStartFaultSimulationSamples.java @@ -13,7 +13,7 @@ */ public final class NodeTypesStartFaultSimulationSamples { /* - * x-ms-original-file: 2025-06-01-preview/faultSimulation/NodeTypeStartFaultSimulation_example.json + * x-ms-original-file: 2025-10-01-preview/faultSimulation/NodeTypeStartFaultSimulation_example.json */ /** * Sample code: Start Node Type Fault Simulation. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesStartSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesStartSamples.java index 0e79f6094d0f..6d25e9092cf0 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesStartSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesStartSamples.java @@ -12,7 +12,7 @@ */ public final class NodeTypesStartSamples { /* - * x-ms-original-file: 2025-06-01-preview/StartNodes_example.json + * x-ms-original-file: 2025-10-01-preview/StartNodes_example.json */ /** * Sample code: Start nodes. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesStopFaultSimulationSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesStopFaultSimulationSamples.java index b4939cf02fb9..5f820cab29a6 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesStopFaultSimulationSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesStopFaultSimulationSamples.java @@ -11,7 +11,7 @@ */ public final class NodeTypesStopFaultSimulationSamples { /* - * x-ms-original-file: 2025-06-01-preview/faultSimulation/NodeTypeStopFaultSimulation_example.json + * x-ms-original-file: 2025-10-01-preview/faultSimulation/NodeTypeStopFaultSimulation_example.json */ /** * Sample code: Stop Node Type Fault Simulation. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesUpdateSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesUpdateSamples.java index d4465dbba326..eefa42b13e08 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesUpdateSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class NodeTypesUpdateSamples { /* - * x-ms-original-file: 2025-06-01-preview/NodeTypePatchOperation_example.json + * x-ms-original-file: 2025-10-01-preview/NodeTypePatchOperation_example.json */ /** * Sample code: Patch a node type. @@ -30,7 +30,7 @@ public static void patchANodeType( } /* - * x-ms-original-file: 2025-06-01-preview/NodeTypePatchOperationAutoScale_example.json + * x-ms-original-file: 2025-10-01-preview/NodeTypePatchOperationAutoScale_example.json */ /** * Sample code: Patch a node type while auto-scaling. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/OperationsListSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/OperationsListSamples.java index d257cbb42b69..009382b77c72 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/OperationsListSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: 2025-06-01-preview/OperationsList_example.json + * x-ms-original-file: 2025-10-01-preview/OperationsList_example.json */ /** * Sample code: List the operations for the provider. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesCreateOrUpdateSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesCreateOrUpdateSamples.java index 5c6f83746fbd..075dca19fd70 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesCreateOrUpdateSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesCreateOrUpdateSamples.java @@ -25,7 +25,7 @@ */ public final class ServicesCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-06-01-preview/ServicePutOperation_example_min.json + * x-ms-original-file: 2025-10-01-preview/ServicePutOperation_example_min.json */ /** * Sample code: Put a service with minimum parameters. @@ -45,7 +45,7 @@ public static void putAServiceWithMinimumParameters( } /* - * x-ms-original-file: 2025-06-01-preview/ServicePutOperation_example_max.json + * x-ms-original-file: 2025-10-01-preview/ServicePutOperation_example_max.json */ /** * Sample code: Put a service with maximum parameters. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesDeleteSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesDeleteSamples.java index 803849fe030d..a40fcc0b6240 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesDeleteSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ServicesDeleteSamples { /* - * x-ms-original-file: 2025-06-01-preview/ServiceDeleteOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ServiceDeleteOperation_example.json */ /** * Sample code: Delete a service. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesGetSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesGetSamples.java index 32f57dcbba94..524f24f4f0de 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesGetSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesGetSamples.java @@ -9,7 +9,7 @@ */ public final class ServicesGetSamples { /* - * x-ms-original-file: 2025-06-01-preview/ServiceGetOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ServiceGetOperation_example.json */ /** * Sample code: Get a service. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesListByApplicationsSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesListByApplicationsSamples.java index 761136357a5b..dbb15499d187 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesListByApplicationsSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesListByApplicationsSamples.java @@ -9,7 +9,7 @@ */ public final class ServicesListByApplicationsSamples { /* - * x-ms-original-file: 2025-06-01-preview/ServiceListOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ServiceListOperation_example.json */ /** * Sample code: Get a list of service resources. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesRestartReplicaSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesRestartReplicaSamples.java new file mode 100644 index 000000000000..82fd5d29c5b9 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesRestartReplicaSamples.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.servicefabricmanagedclusters.generated; + +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RestartKind; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RestartReplicaRequest; +import java.util.Arrays; + +/** + * Samples for Services RestartReplica. + */ +public final class ServicesRestartReplicaSamples { + /* + * x-ms-original-file: 2025-10-01-preview/ServiceActionRestartReplica_example.json + */ + /** + * Sample code: Restart replicas. + * + * @param manager Entry point to ServiceFabricManagedClustersManager. + */ + public static void restartReplicas( + com.azure.resourcemanager.servicefabricmanagedclusters.ServiceFabricManagedClustersManager manager) { + manager.services() + .restartReplica("resRg", "myCluster", "myApp", "myService", + new RestartReplicaRequest().withPartitionId("00000000-0000-0000-0000-000000000000") + .withReplicaIds(Arrays.asList(123456789012345680L)) + .withRestartKind(RestartKind.SIMULTANEOUS) + .withForceRestart(false) + .withTimeout(60L), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesUpdateSamples.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesUpdateSamples.java index 83c3e44d9ed8..d1c733fade67 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesUpdateSamples.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/samples/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class ServicesUpdateSamples { /* - * x-ms-original-file: 2025-06-01-preview/ServicePatchOperation_example.json + * x-ms-original-file: 2025-10-01-preview/ServicePatchOperation_example.json */ /** * Sample code: Patch a service. diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/AddRemoveIncrementalNamedPartitionScalingMechanisTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/AddRemoveIncrementalNamedPartitionScalingMechanisTests.java index fce63a7b4a8d..af73ea805dd1 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/AddRemoveIncrementalNamedPartitionScalingMechanisTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/AddRemoveIncrementalNamedPartitionScalingMechanisTests.java @@ -12,22 +12,22 @@ public final class AddRemoveIncrementalNamedPartitionScalingMechanisTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AddRemoveIncrementalNamedPartitionScalingMechanism model = BinaryData.fromString( - "{\"kind\":\"AddRemoveIncrementalNamedPartition\",\"minPartitionCount\":990417532,\"maxPartitionCount\":1056372950,\"scaleIncrement\":683546621}") + "{\"kind\":\"AddRemoveIncrementalNamedPartition\",\"minPartitionCount\":983156788,\"maxPartitionCount\":1386333367,\"scaleIncrement\":452971481}") .toObject(AddRemoveIncrementalNamedPartitionScalingMechanism.class); - Assertions.assertEquals(990417532, model.minPartitionCount()); - Assertions.assertEquals(1056372950, model.maxPartitionCount()); - Assertions.assertEquals(683546621, model.scaleIncrement()); + Assertions.assertEquals(983156788, model.minPartitionCount()); + Assertions.assertEquals(1386333367, model.maxPartitionCount()); + Assertions.assertEquals(452971481, model.scaleIncrement()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AddRemoveIncrementalNamedPartitionScalingMechanism model - = new AddRemoveIncrementalNamedPartitionScalingMechanism().withMinPartitionCount(990417532) - .withMaxPartitionCount(1056372950) - .withScaleIncrement(683546621); + = new AddRemoveIncrementalNamedPartitionScalingMechanism().withMinPartitionCount(983156788) + .withMaxPartitionCount(1386333367) + .withScaleIncrement(452971481); model = BinaryData.fromObject(model).toObject(AddRemoveIncrementalNamedPartitionScalingMechanism.class); - Assertions.assertEquals(990417532, model.minPartitionCount()); - Assertions.assertEquals(1056372950, model.maxPartitionCount()); - Assertions.assertEquals(683546621, model.scaleIncrement()); + Assertions.assertEquals(983156788, model.minPartitionCount()); + Assertions.assertEquals(1386333367, model.maxPartitionCount()); + Assertions.assertEquals(452971481, model.scaleIncrement()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/AdditionalNetworkInterfaceConfigurationTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/AdditionalNetworkInterfaceConfigurationTests.java index a8535c8e27e8..46f038e1d410 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/AdditionalNetworkInterfaceConfigurationTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/AdditionalNetworkInterfaceConfigurationTests.java @@ -19,24 +19,25 @@ public final class AdditionalNetworkInterfaceConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AdditionalNetworkInterfaceConfiguration model = BinaryData.fromString( - "{\"name\":\"egxuvwzf\",\"enableAcceleratedNetworking\":true,\"dscpConfiguration\":{\"id\":\"ctlpdngitvgb\"},\"ipConfigurations\":[{\"name\":\"rixkwmyijejve\",\"applicationGatewayBackendAddressPools\":[{\"id\":\"pna\"},{\"id\":\"exccbdreaxhcexd\"},{\"id\":\"vqahqkghtpwi\"},{\"id\":\"hyjsvfycx\"}],\"loadBalancerBackendAddressPools\":[{\"id\":\"oowvrv\"},{\"id\":\"gjqppy\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"on\"},{\"id\":\"yhgfipnsx\"},{\"id\":\"cwaekrrjre\"}],\"subnet\":{\"id\":\"tsgumhj\"},\"privateIPAddressVersion\":\"IPv4\",\"publicIPAddressConfiguration\":{\"name\":\"kxw\",\"ipTags\":[{\"ipTagType\":\"lbqpvuzlmvfelf\",\"tag\":\"tgp\"}],\"publicIPAddressVersion\":\"IPv4\"}},{\"name\":\"pwjxezn\",\"applicationGatewayBackendAddressPools\":[{\"id\":\"rnjwmw\"}],\"loadBalancerBackendAddressPools\":[{\"id\":\"saz\"},{\"id\":\"joqkagfhsxt\"},{\"id\":\"ugzxnf\"},{\"id\":\"zpxdt\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"kqjjlwuenvrkp\"}],\"subnet\":{\"id\":\"aibrebqaaysjkixq\"},\"privateIPAddressVersion\":\"IPv6\",\"publicIPAddressConfiguration\":{\"name\":\"tezlwff\",\"ipTags\":[{\"ipTagType\":\"kpj\",\"tag\":\"qqmtedltmmji\"},{\"ipTagType\":\"yeozphvwauyqncy\",\"tag\":\"upkvipmdsc\"},{\"ipTagType\":\"xqupevzhf\",\"tag\":\"totxhojujb\"},{\"ipTagType\":\"pelmcuvhixbjxyf\",\"tag\":\"n\"}],\"publicIPAddressVersion\":\"IPv4\"}}]}") + "{\"name\":\"jl\",\"enableAcceleratedNetworking\":true,\"dscpConfiguration\":{\"id\":\"lwg\"},\"ipConfigurations\":[{\"name\":\"tsbwtovvtgse\",\"applicationGatewayBackendAddressPools\":[{\"id\":\"iufxqknpir\"}],\"loadBalancerBackendAddressPools\":[{\"id\":\"ttwqmsni\"},{\"id\":\"cdm\"},{\"id\":\"r\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"ijnkrxfrdd\"},{\"id\":\"ratiz\"},{\"id\":\"onasxifto\"}],\"subnet\":{\"id\":\"zh\"},\"privateIPAddressVersion\":\"IPv6\",\"publicIPAddressConfiguration\":{\"name\":\"sgogczhonnxk\",\"ipTags\":[{\"ipTagType\":\"nyhmossxkkgthr\",\"tag\":\"gh\"},{\"ipTagType\":\"jbdhqxvc\",\"tag\":\"gf\"},{\"ipTagType\":\"pdso\",\"tag\":\"bshrnsvbuswd\"}],\"publicIPAddressVersion\":\"IPv4\"}},{\"name\":\"ybycnunvj\",\"applicationGatewayBackendAddressPools\":[{\"id\":\"f\"}],\"loadBalancerBackendAddressPools\":[{\"id\":\"pqgik\"},{\"id\":\"irtx\"},{\"id\":\"uxzejntpsew\"},{\"id\":\"oi\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"rydxtqm\"}],\"subnet\":{\"id\":\"xorgg\"},\"privateIPAddressVersion\":\"IPv6\",\"publicIPAddressConfiguration\":{\"name\":\"aomtbghhavgrvkff\",\"ipTags\":[{\"ipTagType\":\"zh\",\"tag\":\"jbibg\"},{\"ipTagType\":\"mfxumvfcluyovw\",\"tag\":\"nbkfezzxscy\"},{\"ipTagType\":\"wzdgirujbzbo\",\"tag\":\"vzzbtdcq\"},{\"ipTagType\":\"pniyujviyl\",\"tag\":\"dshf\"}],\"publicIPAddressVersion\":\"IPv4\"}},{\"name\":\"rbgyefry\",\"applicationGatewayBackendAddressPools\":[{\"id\":\"ojfmwnco\"},{\"id\":\"rfh\"}],\"loadBalancerBackendAddressPools\":[{\"id\":\"ymoxoftpipiwyczu\"},{\"id\":\"a\"},{\"id\":\"qjlihhyuspska\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"mfwdgzxu\"},{\"id\":\"cvpa\"},{\"id\":\"sreuzvxurisjnh\"},{\"id\":\"txifqj\"}],\"subnet\":{\"id\":\"mrhublwpc\"},\"privateIPAddressVersion\":\"IPv4\",\"publicIPAddressConfiguration\":{\"name\":\"rgjupauut\",\"ipTags\":[{\"ipTagType\":\"qhih\",\"tag\":\"jqgwzp\"}],\"publicIPAddressVersion\":\"IPv6\"}}]}") .toObject(AdditionalNetworkInterfaceConfiguration.class); - Assertions.assertEquals("egxuvwzf", model.name()); + Assertions.assertEquals("jl", model.name()); Assertions.assertTrue(model.enableAcceleratedNetworking()); - Assertions.assertEquals("ctlpdngitvgb", model.dscpConfiguration().id()); - Assertions.assertEquals("rixkwmyijejve", model.ipConfigurations().get(0).name()); - Assertions.assertEquals("pna", + Assertions.assertEquals("lwg", model.dscpConfiguration().id()); + Assertions.assertEquals("tsbwtovvtgse", model.ipConfigurations().get(0).name()); + Assertions.assertEquals("iufxqknpir", model.ipConfigurations().get(0).applicationGatewayBackendAddressPools().get(0).id()); - Assertions.assertEquals("oowvrv", + Assertions.assertEquals("ttwqmsni", model.ipConfigurations().get(0).loadBalancerBackendAddressPools().get(0).id()); - Assertions.assertEquals("on", model.ipConfigurations().get(0).loadBalancerInboundNatPools().get(0).id()); - Assertions.assertEquals("tsgumhj", model.ipConfigurations().get(0).subnet().id()); - Assertions.assertEquals(PrivateIpAddressVersion.IPV4, + Assertions.assertEquals("ijnkrxfrdd", + model.ipConfigurations().get(0).loadBalancerInboundNatPools().get(0).id()); + Assertions.assertEquals("zh", model.ipConfigurations().get(0).subnet().id()); + Assertions.assertEquals(PrivateIpAddressVersion.IPV6, model.ipConfigurations().get(0).privateIpAddressVersion()); - Assertions.assertEquals("kxw", model.ipConfigurations().get(0).publicIpAddressConfiguration().name()); - Assertions.assertEquals("lbqpvuzlmvfelf", + Assertions.assertEquals("sgogczhonnxk", model.ipConfigurations().get(0).publicIpAddressConfiguration().name()); + Assertions.assertEquals("nyhmossxkkgthr", model.ipConfigurations().get(0).publicIpAddressConfiguration().ipTags().get(0).ipTagType()); - Assertions.assertEquals("tgp", + Assertions.assertEquals("gh", model.ipConfigurations().get(0).publicIpAddressConfiguration().ipTags().get(0).tag()); Assertions.assertEquals(PublicIpAddressVersion.IPV4, model.ipConfigurations().get(0).publicIpAddressConfiguration().publicIpAddressVersion()); @@ -44,63 +45,71 @@ public void testDeserialize() throws Exception { @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AdditionalNetworkInterfaceConfiguration model - = new AdditionalNetworkInterfaceConfiguration().withName("egxuvwzf") - .withEnableAcceleratedNetworking(true) - .withDscpConfiguration(new SubResource().withId("ctlpdngitvgb")) - .withIpConfigurations( - Arrays - .asList( - new IpConfiguration().withName("rixkwmyijejve") - .withApplicationGatewayBackendAddressPools(Arrays.asList( - new SubResource().withId("pna"), new SubResource().withId("exccbdreaxhcexd"), - new SubResource().withId("vqahqkghtpwi"), new SubResource().withId("hyjsvfycx"))) - .withLoadBalancerBackendAddressPools(Arrays.asList(new SubResource().withId("oowvrv"), - new SubResource().withId("gjqppy"))) - .withLoadBalancerInboundNatPools(Arrays.asList( - new SubResource().withId("on"), new SubResource().withId("yhgfipnsx"), - new SubResource().withId("cwaekrrjre"))) - .withSubnet(new SubResource().withId("tsgumhj")) - .withPrivateIpAddressVersion(PrivateIpAddressVersion.IPV4) - .withPublicIpAddressConfiguration(new IpConfigurationPublicIpAddressConfiguration() - .withName("kxw") - .withIpTags( - Arrays.asList(new IpTag().withIpTagType("lbqpvuzlmvfelf").withTag("tgp"))) - .withPublicIpAddressVersion(PublicIpAddressVersion.IPV4)), - new IpConfiguration().withName("pwjxezn") - .withApplicationGatewayBackendAddressPools( - Arrays.asList(new SubResource().withId("rnjwmw"))) - .withLoadBalancerBackendAddressPools(Arrays.asList( - new SubResource().withId("saz"), new SubResource().withId("joqkagfhsxt"), - new SubResource().withId("ugzxnf"), new SubResource().withId("zpxdt"))) - .withLoadBalancerInboundNatPools( - Arrays.asList(new SubResource().withId("kqjjlwuenvrkp"))) - .withSubnet(new SubResource().withId("aibrebqaaysjkixq")) - .withPrivateIpAddressVersion(PrivateIpAddressVersion.IPV6) - .withPublicIpAddressConfiguration(new IpConfigurationPublicIpAddressConfiguration() - .withName("tezlwff") - .withIpTags(Arrays.asList(new IpTag().withIpTagType("kpj").withTag("qqmtedltmmji"), - new IpTag().withIpTagType("yeozphvwauyqncy").withTag("upkvipmdsc"), - new IpTag().withIpTagType("xqupevzhf").withTag("totxhojujb"), - new IpTag().withIpTagType("pelmcuvhixbjxyf").withTag("n"))) - .withPublicIpAddressVersion(PublicIpAddressVersion.IPV4)))); + AdditionalNetworkInterfaceConfiguration model = new AdditionalNetworkInterfaceConfiguration().withName("jl") + .withEnableAcceleratedNetworking(true) + .withDscpConfiguration(new SubResource().withId("lwg")) + .withIpConfigurations(Arrays.asList( + new IpConfiguration().withName("tsbwtovvtgse") + .withApplicationGatewayBackendAddressPools(Arrays.asList(new SubResource().withId("iufxqknpir"))) + .withLoadBalancerBackendAddressPools(Arrays.asList(new SubResource().withId("ttwqmsni"), + new SubResource().withId("cdm"), new SubResource().withId("r"))) + .withLoadBalancerInboundNatPools(Arrays.asList(new SubResource().withId("ijnkrxfrdd"), + new SubResource().withId("ratiz"), new SubResource().withId("onasxifto"))) + .withSubnet(new SubResource().withId("zh")) + .withPrivateIpAddressVersion(PrivateIpAddressVersion.IPV6) + .withPublicIpAddressConfiguration( + new IpConfigurationPublicIpAddressConfiguration().withName("sgogczhonnxk") + .withIpTags(Arrays.asList(new IpTag().withIpTagType("nyhmossxkkgthr").withTag("gh"), + new IpTag().withIpTagType("jbdhqxvc").withTag("gf"), + new IpTag().withIpTagType("pdso").withTag("bshrnsvbuswd"))) + .withPublicIpAddressVersion(PublicIpAddressVersion.IPV4)), + new IpConfiguration().withName("ybycnunvj") + .withApplicationGatewayBackendAddressPools(Arrays.asList(new SubResource().withId("f"))) + .withLoadBalancerBackendAddressPools( + Arrays.asList(new SubResource().withId("pqgik"), new SubResource().withId("irtx"), + new SubResource().withId("uxzejntpsew"), new SubResource().withId("oi"))) + .withLoadBalancerInboundNatPools(Arrays.asList(new SubResource().withId("rydxtqm"))) + .withSubnet(new SubResource().withId("xorgg")) + .withPrivateIpAddressVersion(PrivateIpAddressVersion.IPV6) + .withPublicIpAddressConfiguration( + new IpConfigurationPublicIpAddressConfiguration().withName("aomtbghhavgrvkff") + .withIpTags(Arrays.asList(new IpTag().withIpTagType("zh").withTag("jbibg"), + new IpTag().withIpTagType("mfxumvfcluyovw").withTag("nbkfezzxscy"), + new IpTag().withIpTagType("wzdgirujbzbo").withTag("vzzbtdcq"), + new IpTag().withIpTagType("pniyujviyl").withTag("dshf"))) + .withPublicIpAddressVersion(PublicIpAddressVersion.IPV4)), + new IpConfiguration().withName("rbgyefry") + .withApplicationGatewayBackendAddressPools( + Arrays.asList(new SubResource().withId("ojfmwnco"), new SubResource().withId("rfh"))) + .withLoadBalancerBackendAddressPools(Arrays.asList(new SubResource().withId("ymoxoftpipiwyczu"), + new SubResource().withId("a"), new SubResource().withId("qjlihhyuspska"))) + .withLoadBalancerInboundNatPools( + Arrays.asList(new SubResource().withId("mfwdgzxu"), new SubResource().withId("cvpa"), + new SubResource().withId("sreuzvxurisjnh"), new SubResource().withId("txifqj"))) + .withSubnet(new SubResource().withId("mrhublwpc")) + .withPrivateIpAddressVersion(PrivateIpAddressVersion.IPV4) + .withPublicIpAddressConfiguration( + new IpConfigurationPublicIpAddressConfiguration().withName("rgjupauut") + .withIpTags(Arrays.asList(new IpTag().withIpTagType("qhih").withTag("jqgwzp"))) + .withPublicIpAddressVersion(PublicIpAddressVersion.IPV6)))); model = BinaryData.fromObject(model).toObject(AdditionalNetworkInterfaceConfiguration.class); - Assertions.assertEquals("egxuvwzf", model.name()); + Assertions.assertEquals("jl", model.name()); Assertions.assertTrue(model.enableAcceleratedNetworking()); - Assertions.assertEquals("ctlpdngitvgb", model.dscpConfiguration().id()); - Assertions.assertEquals("rixkwmyijejve", model.ipConfigurations().get(0).name()); - Assertions.assertEquals("pna", + Assertions.assertEquals("lwg", model.dscpConfiguration().id()); + Assertions.assertEquals("tsbwtovvtgse", model.ipConfigurations().get(0).name()); + Assertions.assertEquals("iufxqknpir", model.ipConfigurations().get(0).applicationGatewayBackendAddressPools().get(0).id()); - Assertions.assertEquals("oowvrv", + Assertions.assertEquals("ttwqmsni", model.ipConfigurations().get(0).loadBalancerBackendAddressPools().get(0).id()); - Assertions.assertEquals("on", model.ipConfigurations().get(0).loadBalancerInboundNatPools().get(0).id()); - Assertions.assertEquals("tsgumhj", model.ipConfigurations().get(0).subnet().id()); - Assertions.assertEquals(PrivateIpAddressVersion.IPV4, + Assertions.assertEquals("ijnkrxfrdd", + model.ipConfigurations().get(0).loadBalancerInboundNatPools().get(0).id()); + Assertions.assertEquals("zh", model.ipConfigurations().get(0).subnet().id()); + Assertions.assertEquals(PrivateIpAddressVersion.IPV6, model.ipConfigurations().get(0).privateIpAddressVersion()); - Assertions.assertEquals("kxw", model.ipConfigurations().get(0).publicIpAddressConfiguration().name()); - Assertions.assertEquals("lbqpvuzlmvfelf", + Assertions.assertEquals("sgogczhonnxk", model.ipConfigurations().get(0).publicIpAddressConfiguration().name()); + Assertions.assertEquals("nyhmossxkkgthr", model.ipConfigurations().get(0).publicIpAddressConfiguration().ipTags().get(0).ipTagType()); - Assertions.assertEquals("tgp", + Assertions.assertEquals("gh", model.ipConfigurations().get(0).publicIpAddressConfiguration().ipTags().get(0).tag()); Assertions.assertEquals(PublicIpAddressVersion.IPV4, model.ipConfigurations().get(0).publicIpAddressConfiguration().publicIpAddressVersion()); diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationFetchHealthRequestTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationFetchHealthRequestTests.java new file mode 100644 index 000000000000..018e81ac582f --- /dev/null +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationFetchHealthRequestTests.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.servicefabricmanagedclusters.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationFetchHealthRequest; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.HealthFilter; +import org.junit.jupiter.api.Assertions; + +public final class ApplicationFetchHealthRequestTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ApplicationFetchHealthRequest model = BinaryData.fromString( + "{\"eventsHealthStateFilter\":\"All\",\"deployedApplicationsHealthStateFilter\":\"Error\",\"servicesHealthStateFilter\":\"Warning\",\"excludeHealthStatistics\":false,\"timeout\":6902616970691402171}") + .toObject(ApplicationFetchHealthRequest.class); + Assertions.assertEquals(HealthFilter.ALL, model.eventsHealthStateFilter()); + Assertions.assertEquals(HealthFilter.ERROR, model.deployedApplicationsHealthStateFilter()); + Assertions.assertEquals(HealthFilter.WARNING, model.servicesHealthStateFilter()); + Assertions.assertFalse(model.excludeHealthStatistics()); + Assertions.assertEquals(6902616970691402171L, model.timeout()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ApplicationFetchHealthRequest model + = new ApplicationFetchHealthRequest().withEventsHealthStateFilter(HealthFilter.ALL) + .withDeployedApplicationsHealthStateFilter(HealthFilter.ERROR) + .withServicesHealthStateFilter(HealthFilter.WARNING) + .withExcludeHealthStatistics(false) + .withTimeout(6902616970691402171L); + model = BinaryData.fromObject(model).toObject(ApplicationFetchHealthRequest.class); + Assertions.assertEquals(HealthFilter.ALL, model.eventsHealthStateFilter()); + Assertions.assertEquals(HealthFilter.ERROR, model.deployedApplicationsHealthStateFilter()); + Assertions.assertEquals(HealthFilter.WARNING, model.servicesHealthStateFilter()); + Assertions.assertFalse(model.excludeHealthStatistics()); + Assertions.assertEquals(6902616970691402171L, model.timeout()); + } +} diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationResourceListTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationResourceListTests.java index e3902e8a33ac..25ec0ec408ef 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationResourceListTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationResourceListTests.java @@ -15,82 +15,82 @@ public final class ApplicationResourceListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ApplicationResourceList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"managedIdentities\":[{\"name\":\"mocpc\",\"principalId\":\"shurzafbljjgpbto\"}],\"provisioningState\":\"jmkljavbqidtqajz\",\"version\":\"l\",\"parameters\":{\"rlkhbzhfepgzgq\":\"dj\"},\"upgradePolicy\":{\"applicationHealthPolicy\":{\"considerWarningAsError\":false,\"maxPercentUnhealthyDeployedApplications\":1678385538,\"defaultServiceTypeHealthPolicy\":{\"maxPercentUnhealthyServices\":1054800376,\"maxPercentUnhealthyPartitionsPerService\":1323879070,\"maxPercentUnhealthyReplicasPerPartition\":149734817},\"serviceTypeHealthPolicyMap\":{\"hhbcsglummajtjao\":{\"maxPercentUnhealthyServices\":1853852705,\"maxPercentUnhealthyPartitionsPerService\":812550328,\"maxPercentUnhealthyReplicasPerPartition\":1450066184},\"nbdxk\":{\"maxPercentUnhealthyServices\":1291201271,\"maxPercentUnhealthyPartitionsPerService\":1555681942,\"maxPercentUnhealthyReplicasPerPartition\":2016183317}}},\"forceRestart\":false,\"rollingUpgradeMonitoringPolicy\":{\"failureAction\":\"Manual\",\"healthCheckWaitDuration\":\"ajionpimexgstxg\",\"healthCheckStableDuration\":\"po\",\"healthCheckRetryTimeout\":\"gmaajrm\",\"upgradeTimeout\":\"djwzrlov\",\"upgradeDomainTimeout\":\"clwhijcoejctbz\"},\"instanceCloseDelayDuration\":93842203637959361,\"upgradeMode\":\"Monitored\",\"upgradeReplicaSetCheckTimeout\":4015230803094049478,\"recreateApplication\":true}},\"tags\":{\"c\":\"ukdkexxppofmxa\",\"toc\":\"jpgd\",\"hvpmoue\":\"j\"},\"identity\":{\"principalId\":\"zxibqeoj\",\"tenantId\":\"qbzvddntwnd\",\"type\":\"SystemAssigned, UserAssigned\",\"userAssignedIdentities\":{\"qkwpyeicxmqc\":{\"principalId\":\"npzaoq\",\"clientId\":\"hrhcffcyddglmjth\"},\"joghmewuama\":{\"principalId\":\"q\",\"clientId\":\"khixuigdtopbo\"},\"iotkftutqxl\":{\"principalId\":\"rzayv\",\"clientId\":\"pgvdf\"},\"tthzrvqd\":{\"principalId\":\"xlefgugnxkrx\",\"clientId\":\"mi\"}}},\"location\":\"bhj\",\"id\":\"igeho\",\"name\":\"fbowskanyk\",\"type\":\"zlcuiywgqywgndrv\"},{\"properties\":{\"managedIdentities\":[{\"name\":\"gpphrcgyn\",\"principalId\":\"ocpecfvmmco\"},{\"name\":\"fsxlzevgbmqjqa\",\"principalId\":\"c\"},{\"name\":\"pmivkwlzu\",\"principalId\":\"ccfwnfnbacfion\"},{\"name\":\"ebxetqgtzxdp\",\"principalId\":\"qbqqwxr\"}],\"provisioningState\":\"eallnwsubisnj\",\"version\":\"pmng\",\"parameters\":{\"aqw\":\"c\",\"xnj\":\"ochcbonqvpkvl\"},\"upgradePolicy\":{\"applicationHealthPolicy\":{\"considerWarningAsError\":true,\"maxPercentUnhealthyDeployedApplications\":1797788548,\"defaultServiceTypeHealthPolicy\":{\"maxPercentUnhealthyServices\":1902616098,\"maxPercentUnhealthyPartitionsPerService\":495940499,\"maxPercentUnhealthyReplicasPerPartition\":1864604101},\"serviceTypeHealthPolicyMap\":{\"yyien\":{\"maxPercentUnhealthyServices\":248230839,\"maxPercentUnhealthyPartitionsPerService\":1111118193,\"maxPercentUnhealthyReplicasPerPartition\":762343473},\"wtgrhpdjpj\":{\"maxPercentUnhealthyServices\":1285754335,\"maxPercentUnhealthyPartitionsPerService\":290307035,\"maxPercentUnhealthyReplicasPerPartition\":147839675}}},\"forceRestart\":true,\"rollingUpgradeMonitoringPolicy\":{\"failureAction\":\"Manual\",\"healthCheckWaitDuration\":\"azjpqyegualhbxxh\",\"healthCheckStableDuration\":\"jj\",\"healthCheckRetryTimeout\":\"zvdudgwdslfhotwm\",\"upgradeTimeout\":\"ynpwlbj\",\"upgradeDomainTimeout\":\"pgacftadehxnlty\"},\"instanceCloseDelayDuration\":3166263548175677909,\"upgradeMode\":\"Monitored\",\"upgradeReplicaSetCheckTimeout\":5708772881134087692,\"recreateApplication\":false}},\"tags\":{\"xzdmohctb\":\"dejbavo\"},\"identity\":{\"principalId\":\"dwxdndnv\",\"tenantId\":\"gujjugwdkcglh\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"kh\":{\"principalId\":\"yggdtjixh\",\"clientId\":\"uofqwe\"},\"cibvyvdcsitynn\":{\"principalId\":\"n\",\"clientId\":\"fyexfwhy\"},\"c\":{\"principalId\":\"mdectehfiqscjey\",\"clientId\":\"hezrkgq\"}}},\"location\":\"efovgmk\",\"id\":\"leyyvx\",\"name\":\"qjpkcattpngjcrc\",\"type\":\"zsqpjhvmdajvny\"}],\"nextLink\":\"unqecanoae\"}") + "{\"value\":[{\"properties\":{\"managedIdentities\":[{\"name\":\"yulpkudjkr\",\"principalId\":\"khbzhfepgzg\"},{\"name\":\"e\",\"principalId\":\"zloc\"}],\"provisioningState\":\"c\",\"version\":\"ierhhbcsglummaj\",\"parameters\":{\"jionpimexgstxgc\":\"odxobnbdxkqpxok\",\"lovmclwhijcoe\":\"odgmaajrmvdjwz\"},\"upgradePolicy\":{\"applicationHealthPolicy\":{\"considerWarningAsError\":true,\"maxPercentUnhealthyDeployedApplications\":1252918399,\"defaultServiceTypeHealthPolicy\":{\"maxPercentUnhealthyServices\":1083194269,\"maxPercentUnhealthyPartitionsPerService\":21849341,\"maxPercentUnhealthyReplicasPerPartition\":751291073},\"serviceTypeHealthPolicyMap\":{\"bfkgukdkex\":{\"maxPercentUnhealthyServices\":1712979680,\"maxPercentUnhealthyPartitionsPerService\":934868772,\"maxPercentUnhealthyReplicasPerPartition\":1302368966}}},\"forceRestart\":false,\"rollingUpgradeMonitoringPolicy\":{\"failureAction\":\"Rollback\",\"healthCheckWaitDuration\":\"mxaxc\",\"healthCheckStableDuration\":\"jpgd\",\"healthCheckRetryTimeout\":\"toc\",\"upgradeTimeout\":\"j\",\"upgradeDomainTimeout\":\"hvpmoue\"},\"instanceCloseDelayDuration\":8357781437020373583,\"upgradeMode\":\"Monitored\",\"upgradeReplicaSetCheckTimeout\":7433658867107362465,\"recreateApplication\":true}},\"tags\":{\"icbtwnpzao\":\"qbzvddntwnd\",\"jthjqkwpyei\":\"vuhrhcffcyddgl\",\"q\":\"xmqci\"},\"identity\":{\"principalId\":\"hix\",\"tenantId\":\"gdtopbobjogh\",\"type\":\"None\",\"userAssignedIdentities\":{\"t\":{\"principalId\":\"a\",\"clientId\":\"rzayv\"}}},\"location\":\"vdfgiotk\",\"id\":\"utqxlngx\",\"name\":\"efgugnxk\",\"type\":\"xdqmidtthzrvqdra\"},{\"properties\":{\"managedIdentities\":[{\"name\":\"big\",\"principalId\":\"h\"}],\"provisioningState\":\"fbowskanyk\",\"version\":\"lcuiywgqywgndr\",\"parameters\":{\"fvm\":\"hzgpphrcgyncocpe\",\"bmqj\":\"coofsxlzev\",\"lzu\":\"abcypmivk\"},\"upgradePolicy\":{\"applicationHealthPolicy\":{\"considerWarningAsError\":false,\"maxPercentUnhealthyDeployedApplications\":1916526415,\"defaultServiceTypeHealthPolicy\":{\"maxPercentUnhealthyServices\":1023174750,\"maxPercentUnhealthyPartitionsPerService\":1351999022,\"maxPercentUnhealthyReplicasPerPartition\":1347818370},\"serviceTypeHealthPolicyMap\":{\"nlebxetqgtzxd\":{\"maxPercentUnhealthyServices\":1187016173,\"maxPercentUnhealthyPartitionsPerService\":1241894222,\"maxPercentUnhealthyReplicasPerPartition\":2055969856},\"qqwx\":{\"maxPercentUnhealthyServices\":1901976575,\"maxPercentUnhealthyPartitionsPerService\":1698686419,\"maxPercentUnhealthyReplicasPerPartition\":1802954017}}},\"forceRestart\":true,\"rollingUpgradeMonitoringPolicy\":{\"failureAction\":\"Rollback\",\"healthCheckWaitDuration\":\"llnwsubi\",\"healthCheckStableDuration\":\"njampm\",\"healthCheckRetryTimeout\":\"gnzscxaqwo\",\"upgradeTimeout\":\"chcbonqvpkvlrxnj\",\"upgradeDomainTimeout\":\"ase\"},\"instanceCloseDelayDuration\":8171673918249071507,\"upgradeMode\":\"Monitored\",\"upgradeReplicaSetCheckTimeout\":1066143336474759537,\"recreateApplication\":false}},\"tags\":{\"jp\":\"enjbdlwtgrhp\",\"e\":\"umasxazjpq\",\"zvdudgwdslfhotwm\":\"ualhbxxhejj\"},\"identity\":{\"principalId\":\"pwlbjnpg\",\"tenantId\":\"ftadehxnltyfs\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"xzdmohctb\":{\"principalId\":\"esnzwde\",\"clientId\":\"avo\"},\"zj\":{\"principalId\":\"udwxdndnvowguj\",\"clientId\":\"gwdkcglhsl\"}}},\"location\":\"ggd\",\"id\":\"ixhbkuofqweykhm\",\"name\":\"n\",\"type\":\"vfyexfw\"},{\"properties\":{\"managedIdentities\":[{\"name\":\"i\",\"principalId\":\"vyvdcs\"},{\"name\":\"tynnaamdectehfi\",\"principalId\":\"scjeypv\"},{\"name\":\"ezrkgqhcjrefo\",\"principalId\":\"gm\"},{\"name\":\"qsl\",\"principalId\":\"yyvxyqjpkcattpn\"}],\"provisioningState\":\"cr\",\"version\":\"zsqpjhvmdajvny\",\"parameters\":{\"hy\":\"nqecanoaeup\",\"cma\":\"ltrpmopj\",\"kthfui\":\"u\"},\"upgradePolicy\":{\"applicationHealthPolicy\":{\"considerWarningAsError\":true,\"maxPercentUnhealthyDeployedApplications\":1411125802,\"defaultServiceTypeHealthPolicy\":{\"maxPercentUnhealthyServices\":2105680522,\"maxPercentUnhealthyPartitionsPerService\":397485144,\"maxPercentUnhealthyReplicasPerPartition\":1099680690},\"serviceTypeHealthPolicyMap\":{\"uozmyzydagfua\":{\"maxPercentUnhealthyServices\":1076562523,\"maxPercentUnhealthyPartitionsPerService\":2084111616,\"maxPercentUnhealthyReplicasPerPartition\":720859603},\"yiuokktwh\":{\"maxPercentUnhealthyServices\":906864290,\"maxPercentUnhealthyPartitionsPerService\":1613770943,\"maxPercentUnhealthyReplicasPerPartition\":1852056449},\"zywqsmbsu\":{\"maxPercentUnhealthyServices\":2073255975,\"maxPercentUnhealthyPartitionsPerService\":291798162,\"maxPercentUnhealthyReplicasPerPartition\":334875262},\"moryocfsfksym\":{\"maxPercentUnhealthyServices\":854764023,\"maxPercentUnhealthyPartitionsPerService\":760240945,\"maxPercentUnhealthyReplicasPerPartition\":1524544291}}},\"forceRestart\":false,\"rollingUpgradeMonitoringPolicy\":{\"failureAction\":\"Rollback\",\"healthCheckWaitDuration\":\"kiiuxhqyudxor\",\"healthCheckStableDuration\":\"qn\",\"healthCheckRetryTimeout\":\"poczvyifqrvkdvjs\",\"upgradeTimeout\":\"lrmv\",\"upgradeDomainTimeout\":\"d\"},\"instanceCloseDelayDuration\":5974315112474207956,\"upgradeMode\":\"UnmonitoredAuto\",\"upgradeReplicaSetCheckTimeout\":2149411154837156311,\"recreateApplication\":true}},\"tags\":{\"ruwiqzbqjvsov\":\"bczw\",\"hzdobpxjmflbvvnc\":\"yokacspkw\",\"rsa\":\"rkcciwwzjuqk\"},\"identity\":{\"principalId\":\"ku\",\"tenantId\":\"oskg\",\"type\":\"None\",\"userAssignedIdentities\":{\"v\":{\"principalId\":\"mjmvxieduugidyjr\",\"clientId\":\"byao\"},\"gz\":{\"principalId\":\"csonpclhoco\",\"clientId\":\"lkevle\"}}},\"location\":\"u\",\"id\":\"mvfaxkffeiith\",\"name\":\"vmezy\",\"type\":\"shxmzsbbzoggigrx\"},{\"properties\":{\"managedIdentities\":[{\"name\":\"vjxxjnsp\",\"principalId\":\"dptkoenkouk\"}],\"provisioningState\":\"udwtiukbl\",\"version\":\"gkpocipazyxoe\",\"parameters\":{\"npiucgygevqznty\":\"g\"},\"upgradePolicy\":{\"applicationHealthPolicy\":{\"considerWarningAsError\":true,\"maxPercentUnhealthyDeployedApplications\":51531430,\"defaultServiceTypeHealthPolicy\":{\"maxPercentUnhealthyServices\":2033477361,\"maxPercentUnhealthyPartitionsPerService\":173387394,\"maxPercentUnhealthyReplicasPerPartition\":2078386445},\"serviceTypeHealthPolicyMap\":{\"pyd\":{\"maxPercentUnhealthyServices\":53365345,\"maxPercentUnhealthyPartitionsPerService\":1971484471,\"maxPercentUnhealthyReplicasPerPartition\":1233826604},\"xdeoejzic\":{\"maxPercentUnhealthyServices\":1342514759,\"maxPercentUnhealthyPartitionsPerService\":1305817330,\"maxPercentUnhealthyReplicasPerPartition\":1880549577},\"jttgzf\":{\"maxPercentUnhealthyServices\":1718564660,\"maxPercentUnhealthyPartitionsPerService\":746400217,\"maxPercentUnhealthyReplicasPerPartition\":764179455},\"cbkhajdeyeamdph\":{\"maxPercentUnhealthyServices\":1027327550,\"maxPercentUnhealthyPartitionsPerService\":2101457273,\"maxPercentUnhealthyReplicasPerPartition\":22083476}}},\"forceRestart\":true,\"rollingUpgradeMonitoringPolicy\":{\"failureAction\":\"Manual\",\"healthCheckWaitDuration\":\"buxwgip\",\"healthCheckStableDuration\":\"honowkgshwank\",\"healthCheckRetryTimeout\":\"xzbinjeputt\",\"upgradeTimeout\":\"rywn\",\"upgradeDomainTimeout\":\"zoqftiyqzrnkcqvy\"},\"instanceCloseDelayDuration\":3429279847863801881,\"upgradeMode\":\"UnmonitoredAuto\",\"upgradeReplicaSetCheckTimeout\":2826375712205950913,\"recreateApplication\":true}},\"tags\":{\"w\":\"qnwvlrya\"},\"identity\":{\"principalId\":\"unmmq\",\"tenantId\":\"yxzk\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"ewrmjmwvvjektc\":{\"principalId\":\"oklyaxuconuq\",\"clientId\":\"fkbey\"}}},\"location\":\"enhwlrs\",\"id\":\"rzpwvlqdqgbiq\",\"name\":\"lihkaetcktvfc\",\"type\":\"vf\"}],\"nextLink\":\"kymuctqhjfbebr\"}") .toObject(ApplicationResourceList.class); - Assertions.assertEquals("ukdkexxppofmxa", model.value().get(0).tags().get("c")); - Assertions.assertEquals(ManagedIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, - model.value().get(0).identity().type()); - Assertions.assertEquals("bhj", model.value().get(0).location()); - Assertions.assertEquals("mocpc", model.value().get(0).managedIdentities().get(0).name()); - Assertions.assertEquals("shurzafbljjgpbto", model.value().get(0).managedIdentities().get(0).principalId()); - Assertions.assertEquals("l", model.value().get(0).version()); - Assertions.assertEquals("dj", model.value().get(0).parameters().get("rlkhbzhfepgzgq")); - Assertions.assertFalse(model.value().get(0).upgradePolicy().applicationHealthPolicy().considerWarningAsError()); - Assertions.assertEquals(1678385538, + Assertions.assertEquals("qbzvddntwnd", model.value().get(0).tags().get("icbtwnpzao")); + Assertions.assertEquals(ManagedIdentityType.NONE, model.value().get(0).identity().type()); + Assertions.assertEquals("vdfgiotk", model.value().get(0).location()); + Assertions.assertEquals("yulpkudjkr", model.value().get(0).managedIdentities().get(0).name()); + Assertions.assertEquals("khbzhfepgzg", model.value().get(0).managedIdentities().get(0).principalId()); + Assertions.assertEquals("ierhhbcsglummaj", model.value().get(0).version()); + Assertions.assertEquals("odxobnbdxkqpxok", model.value().get(0).parameters().get("jionpimexgstxgc")); + Assertions.assertTrue(model.value().get(0).upgradePolicy().applicationHealthPolicy().considerWarningAsError()); + Assertions.assertEquals(1252918399, model.value().get(0).upgradePolicy().applicationHealthPolicy().maxPercentUnhealthyDeployedApplications()); - Assertions.assertEquals(1054800376, + Assertions.assertEquals(1083194269, model.value() .get(0) .upgradePolicy() .applicationHealthPolicy() .defaultServiceTypeHealthPolicy() .maxPercentUnhealthyServices()); - Assertions.assertEquals(1323879070, + Assertions.assertEquals(21849341, model.value() .get(0) .upgradePolicy() .applicationHealthPolicy() .defaultServiceTypeHealthPolicy() .maxPercentUnhealthyPartitionsPerService()); - Assertions.assertEquals(149734817, + Assertions.assertEquals(751291073, model.value() .get(0) .upgradePolicy() .applicationHealthPolicy() .defaultServiceTypeHealthPolicy() .maxPercentUnhealthyReplicasPerPartition()); - Assertions.assertEquals(1853852705, + Assertions.assertEquals(1712979680, model.value() .get(0) .upgradePolicy() .applicationHealthPolicy() .serviceTypeHealthPolicyMap() - .get("hhbcsglummajtjao") + .get("bfkgukdkex") .maxPercentUnhealthyServices()); - Assertions.assertEquals(812550328, + Assertions.assertEquals(934868772, model.value() .get(0) .upgradePolicy() .applicationHealthPolicy() .serviceTypeHealthPolicyMap() - .get("hhbcsglummajtjao") + .get("bfkgukdkex") .maxPercentUnhealthyPartitionsPerService()); - Assertions.assertEquals(1450066184, + Assertions.assertEquals(1302368966, model.value() .get(0) .upgradePolicy() .applicationHealthPolicy() .serviceTypeHealthPolicyMap() - .get("hhbcsglummajtjao") + .get("bfkgukdkex") .maxPercentUnhealthyReplicasPerPartition()); Assertions.assertFalse(model.value().get(0).upgradePolicy().forceRestart()); - Assertions.assertEquals(FailureAction.MANUAL, + Assertions.assertEquals(FailureAction.ROLLBACK, model.value().get(0).upgradePolicy().rollingUpgradeMonitoringPolicy().failureAction()); - Assertions.assertEquals("ajionpimexgstxg", + Assertions.assertEquals("mxaxc", model.value().get(0).upgradePolicy().rollingUpgradeMonitoringPolicy().healthCheckWaitDuration()); - Assertions.assertEquals("po", + Assertions.assertEquals("jpgd", model.value().get(0).upgradePolicy().rollingUpgradeMonitoringPolicy().healthCheckStableDuration()); - Assertions.assertEquals("gmaajrm", + Assertions.assertEquals("toc", model.value().get(0).upgradePolicy().rollingUpgradeMonitoringPolicy().healthCheckRetryTimeout()); - Assertions.assertEquals("djwzrlov", + Assertions.assertEquals("j", model.value().get(0).upgradePolicy().rollingUpgradeMonitoringPolicy().upgradeTimeout()); - Assertions.assertEquals("clwhijcoejctbz", + Assertions.assertEquals("hvpmoue", model.value().get(0).upgradePolicy().rollingUpgradeMonitoringPolicy().upgradeDomainTimeout()); - Assertions.assertEquals(93842203637959361L, model.value().get(0).upgradePolicy().instanceCloseDelayDuration()); + Assertions.assertEquals(8357781437020373583L, + model.value().get(0).upgradePolicy().instanceCloseDelayDuration()); Assertions.assertEquals(RollingUpgradeMode.MONITORED, model.value().get(0).upgradePolicy().upgradeMode()); - Assertions.assertEquals(4015230803094049478L, + Assertions.assertEquals(7433658867107362465L, model.value().get(0).upgradePolicy().upgradeReplicaSetCheckTimeout()); Assertions.assertTrue(model.value().get(0).upgradePolicy().recreateApplication()); - Assertions.assertEquals("unqecanoae", model.nextLink()); + Assertions.assertEquals("kymuctqhjfbebr", model.nextLink()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeResourceInnerTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeResourceInnerTests.java index 3856cbb84dcc..54453ae5347d 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeResourceInnerTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeResourceInnerTests.java @@ -14,21 +14,19 @@ public final class ApplicationTypeResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ApplicationTypeResourceInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"kthfui\"},\"tags\":{\"yzydagfuaxbezyi\":\"dsfcpkvxodpuoz\",\"ywqsmbsurexim\":\"okktwhrdxw\",\"stkiiuxhqyud\":\"ryocfsfksymdd\",\"rq\":\"o\"},\"location\":\"poczvyifqrvkdvjs\",\"id\":\"rm\",\"name\":\"vdfwatkpn\",\"type\":\"ulexxbczwtr\"}") + "{\"properties\":{\"provisioningState\":\"xdbabphlwr\"},\"tags\":{\"azt\":\"ktsthsucocmny\"},\"location\":\"twwrqp\",\"id\":\"dckzywbiexz\",\"name\":\"eyueaxibxujwb\",\"type\":\"qwalmuzyoxaepd\"}") .toObject(ApplicationTypeResourceInner.class); - Assertions.assertEquals("dsfcpkvxodpuoz", model.tags().get("yzydagfuaxbezyi")); - Assertions.assertEquals("poczvyifqrvkdvjs", model.location()); + Assertions.assertEquals("ktsthsucocmny", model.tags().get("azt")); + Assertions.assertEquals("twwrqp", model.location()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ApplicationTypeResourceInner model = new ApplicationTypeResourceInner() - .withTags(mapOf("yzydagfuaxbezyi", "dsfcpkvxodpuoz", "ywqsmbsurexim", "okktwhrdxw", "stkiiuxhqyud", - "ryocfsfksymdd", "rq", "o")) - .withLocation("poczvyifqrvkdvjs"); + ApplicationTypeResourceInner model + = new ApplicationTypeResourceInner().withTags(mapOf("azt", "ktsthsucocmny")).withLocation("twwrqp"); model = BinaryData.fromObject(model).toObject(ApplicationTypeResourceInner.class); - Assertions.assertEquals("dsfcpkvxodpuoz", model.tags().get("yzydagfuaxbezyi")); - Assertions.assertEquals("poczvyifqrvkdvjs", model.location()); + Assertions.assertEquals("ktsthsucocmny", model.tags().get("azt")); + Assertions.assertEquals("twwrqp", model.location()); } // Use "Map.of" if available diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeResourceListTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeResourceListTests.java index 455b7c1a88b4..3c2b1b047df8 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeResourceListTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeResourceListTests.java @@ -12,10 +12,10 @@ public final class ApplicationTypeResourceListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ApplicationTypeResourceList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"eduugi\"},\"tags\":{\"clhocohsl\":\"rrfbyaosvexcson\",\"eggzfb\":\"ev\",\"ithlvmezyvshxm\":\"hfmvfaxkffe\"},\"location\":\"bbzoggig\",\"id\":\"wburvjxxjnspydpt\",\"name\":\"oenkouknvudwti\",\"type\":\"kbldngkpocipa\"},{\"properties\":{\"provisioningState\":\"o\"},\"tags\":{\"iucgygevqzn\":\"kgjn\",\"rbpizc\":\"yp\",\"j\":\"r\",\"yhxdeoejzicwi\":\"dpydn\"},\"location\":\"jttgzf\",\"id\":\"shcbkhajdeyeamdp\",\"name\":\"agalpbuxwgipwhon\",\"type\":\"wkgshwa\"},{\"properties\":{\"provisioningState\":\"xzbinjeputt\"},\"tags\":{\"vyxlwhzlsicohoqq\":\"wnuzoqftiyqzrnkc\",\"yav\":\"wvl\"},\"location\":\"heun\",\"id\":\"qhgyxzkonocukok\",\"name\":\"yaxuconuqszfkb\",\"type\":\"ypewrmjmwvvjekt\"}],\"nextLink\":\"senhwlrs\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"kfssxqukkf\"},\"tags\":{\"xnkjzkdesl\":\"mg\",\"kdwzbaiuebbaumny\":\"vlopwiyighx\",\"txp\":\"upedeojnabckhs\"},\"location\":\"ebtfhvpesap\",\"id\":\"rdqmhjjdhtldwkyz\",\"name\":\"uutkncw\",\"type\":\"cwsvlxotog\"},{\"properties\":{\"provisioningState\":\"upqsx\"},\"tags\":{\"ykvceoveil\":\"i\",\"k\":\"vnotyfjfcnj\",\"kphywpnvjto\":\"nxdhbt\",\"plpho\":\"nermcl\"},\"location\":\"scrpabgyepsbjt\",\"id\":\"qugxywpmueefjzwf\",\"name\":\"kqujidsuyono\",\"type\":\"glaocq\"},{\"properties\":{\"provisioningState\":\"cmgyud\"},\"tags\":{\"wfudwpzntxhdzhl\":\"lmoyrx\",\"hckfrlhrx\":\"qj\"},\"location\":\"kyv\",\"id\":\"ca\",\"name\":\"uzbpzkafku\",\"type\":\"b\"}],\"nextLink\":\"nwbmeh\"}") .toObject(ApplicationTypeResourceList.class); - Assertions.assertEquals("rrfbyaosvexcson", model.value().get(0).tags().get("clhocohsl")); - Assertions.assertEquals("bbzoggig", model.value().get(0).location()); - Assertions.assertEquals("senhwlrs", model.nextLink()); + Assertions.assertEquals("mg", model.value().get(0).tags().get("xnkjzkdesl")); + Assertions.assertEquals("ebtfhvpesap", model.value().get(0).location()); + Assertions.assertEquals("nwbmeh", model.nextLink()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeResourcePropertiesTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeResourcePropertiesTests.java index f98c403eb72b..444fea1d3db6 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeResourcePropertiesTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeResourcePropertiesTests.java @@ -10,7 +10,7 @@ public final class ApplicationTypeResourcePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ApplicationTypeResourceProperties model = BinaryData.fromString("{\"provisioningState\":\"iqzbq\"}") + ApplicationTypeResourceProperties model = BinaryData.fromString("{\"provisioningState\":\"jancu\"}") .toObject(ApplicationTypeResourceProperties.class); } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeUpdateParametersTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeUpdateParametersTests.java index 1edd933d6bbc..2312ad1d24b4 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeUpdateParametersTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeUpdateParametersTests.java @@ -14,17 +14,17 @@ public final class ApplicationTypeUpdateParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ApplicationTypeUpdateParameters model = BinaryData.fromString( - "{\"tags\":{\"okacspk\":\"ovm\",\"jmflbvvnch\":\"lhzdobp\",\"ajiwkuo\":\"kcciwwzjuqkhr\",\"sauuimj\":\"oskg\"}}") + "{\"tags\":{\"bavxbniwdjswzt\":\"d\",\"xbzpfzab\":\"dbpgnxytxhp\",\"ovplw\":\"lcuhxwtctyqiklb\",\"gu\":\"bhvgy\"}}") .toObject(ApplicationTypeUpdateParameters.class); - Assertions.assertEquals("ovm", model.tags().get("okacspk")); + Assertions.assertEquals("d", model.tags().get("bavxbniwdjswzt")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ApplicationTypeUpdateParameters model = new ApplicationTypeUpdateParameters() - .withTags(mapOf("okacspk", "ovm", "jmflbvvnch", "lhzdobp", "ajiwkuo", "kcciwwzjuqkhr", "sauuimj", "oskg")); + ApplicationTypeUpdateParameters model = new ApplicationTypeUpdateParameters().withTags( + mapOf("bavxbniwdjswzt", "d", "xbzpfzab", "dbpgnxytxhp", "ovplw", "lcuhxwtctyqiklb", "gu", "bhvgy")); model = BinaryData.fromObject(model).toObject(ApplicationTypeUpdateParameters.class); - Assertions.assertEquals("ovm", model.tags().get("okacspk")); + Assertions.assertEquals("d", model.tags().get("bavxbniwdjswzt")); } // Use "Map.of" if available diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionResourceInnerTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionResourceInnerTests.java index 366e90070289..a80932e56aa7 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionResourceInnerTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionResourceInnerTests.java @@ -14,24 +14,23 @@ public final class ApplicationTypeVersionResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ApplicationTypeVersionResourceInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"zpwv\",\"appPackageUrl\":\"qdqgbi\"},\"tags\":{\"vf\":\"ihkaetcktvfc\",\"xerf\":\"nkymuctqhjfbebrj\",\"phxepcyvahf\":\"wutttxfvjrbi\",\"gidokgjljyoxgvcl\":\"ljkyqxjvuuj\"},\"location\":\"gsncghkjeszz\",\"id\":\"ijhtxf\",\"name\":\"gx\",\"type\":\"fsm\"}") + "{\"properties\":{\"provisioningState\":\"yvjusrtslhsp\",\"appPackageUrl\":\"deemao\"},\"tags\":{\"vt\":\"ag\",\"hahvljuahaq\":\"elmqk\",\"exq\":\"hcdhmdual\",\"crgvxpvgom\":\"vfadmws\"},\"location\":\"fmisg\",\"id\":\"nbbelda\",\"name\":\"k\",\"type\":\"baliourqhakauha\"}") .toObject(ApplicationTypeVersionResourceInner.class); - Assertions.assertEquals("ihkaetcktvfc", model.tags().get("vf")); - Assertions.assertEquals("gsncghkjeszz", model.location()); - Assertions.assertEquals("qdqgbi", model.appPackageUrl()); + Assertions.assertEquals("ag", model.tags().get("vt")); + Assertions.assertEquals("fmisg", model.location()); + Assertions.assertEquals("deemao", model.appPackageUrl()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ApplicationTypeVersionResourceInner model = new ApplicationTypeVersionResourceInner() - .withTags(mapOf("vf", "ihkaetcktvfc", "xerf", "nkymuctqhjfbebrj", "phxepcyvahf", "wutttxfvjrbi", - "gidokgjljyoxgvcl", "ljkyqxjvuuj")) - .withLocation("gsncghkjeszz") - .withAppPackageUrl("qdqgbi"); + .withTags(mapOf("vt", "ag", "hahvljuahaq", "elmqk", "exq", "hcdhmdual", "crgvxpvgom", "vfadmws")) + .withLocation("fmisg") + .withAppPackageUrl("deemao"); model = BinaryData.fromObject(model).toObject(ApplicationTypeVersionResourceInner.class); - Assertions.assertEquals("ihkaetcktvfc", model.tags().get("vf")); - Assertions.assertEquals("gsncghkjeszz", model.location()); - Assertions.assertEquals("qdqgbi", model.appPackageUrl()); + Assertions.assertEquals("ag", model.tags().get("vt")); + Assertions.assertEquals("fmisg", model.location()); + Assertions.assertEquals("deemao", model.appPackageUrl()); } // Use "Map.of" if available diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionResourceListTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionResourceListTests.java index 1ae4d230577a..bd01cd535fe9 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionResourceListTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionResourceListTests.java @@ -12,11 +12,11 @@ public final class ApplicationTypeVersionResourceListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ApplicationTypeVersionResourceList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"lfbxzpuzycisp\",\"appPackageUrl\":\"qzahmgkbrp\"},\"tags\":{\"rgvtqag\":\"hibnuqqkpika\",\"bfs\":\"buynhijggm\"},\"location\":\"rbu\",\"id\":\"cvpnazzmhjrunmpx\",\"name\":\"tdbhrbnla\",\"type\":\"kx\"}],\"nextLink\":\"skpbhenbtkcxywn\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"ojgjrwjueiotwmc\",\"appPackageUrl\":\"ytdxwit\"},\"tags\":{\"hniskxfbkpyc\":\"jawgqwg\"},\"location\":\"lwn\",\"id\":\"hjdauwhvylwz\",\"name\":\"tdhxujznbmpowuwp\",\"type\":\"zqlveualupjmkhf\"}],\"nextLink\":\"bbcswsrtjri\"}") .toObject(ApplicationTypeVersionResourceList.class); - Assertions.assertEquals("hibnuqqkpika", model.value().get(0).tags().get("rgvtqag")); - Assertions.assertEquals("rbu", model.value().get(0).location()); - Assertions.assertEquals("qzahmgkbrp", model.value().get(0).appPackageUrl()); - Assertions.assertEquals("skpbhenbtkcxywn", model.nextLink()); + Assertions.assertEquals("jawgqwg", model.value().get(0).tags().get("hniskxfbkpyc")); + Assertions.assertEquals("lwn", model.value().get(0).location()); + Assertions.assertEquals("ytdxwit", model.value().get(0).appPackageUrl()); + Assertions.assertEquals("bbcswsrtjri", model.nextLink()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionResourcePropertiesTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionResourcePropertiesTests.java index d84469b2840a..60ab7457f70c 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionResourcePropertiesTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionResourcePropertiesTests.java @@ -12,16 +12,16 @@ public final class ApplicationTypeVersionResourcePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ApplicationTypeVersionResourceProperties model - = BinaryData.fromString("{\"provisioningState\":\"eh\",\"appPackageUrl\":\"pvecxgodeb\"}") + = BinaryData.fromString("{\"provisioningState\":\"sfwxosowzxc\",\"appPackageUrl\":\"gicjooxdjeb\"}") .toObject(ApplicationTypeVersionResourceProperties.class); - Assertions.assertEquals("pvecxgodeb", model.appPackageUrl()); + Assertions.assertEquals("gicjooxdjeb", model.appPackageUrl()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ApplicationTypeVersionResourceProperties model - = new ApplicationTypeVersionResourceProperties().withAppPackageUrl("pvecxgodeb"); + = new ApplicationTypeVersionResourceProperties().withAppPackageUrl("gicjooxdjeb"); model = BinaryData.fromObject(model).toObject(ApplicationTypeVersionResourceProperties.class); - Assertions.assertEquals("pvecxgodeb", model.appPackageUrl()); + Assertions.assertEquals("gicjooxdjeb", model.appPackageUrl()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionUpdateParametersTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionUpdateParametersTests.java index e1b1d6fe84b3..d49eb7ab24b4 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionUpdateParametersTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionUpdateParametersTests.java @@ -13,17 +13,17 @@ public final class ApplicationTypeVersionUpdateParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ApplicationTypeVersionUpdateParameters model = BinaryData.fromString("{\"tags\":{\"ukgri\":\"krbm\"}}") + ApplicationTypeVersionUpdateParameters model = BinaryData.fromString("{\"tags\":{\"ecivyh\":\"cwwfvovbvme\"}}") .toObject(ApplicationTypeVersionUpdateParameters.class); - Assertions.assertEquals("krbm", model.tags().get("ukgri")); + Assertions.assertEquals("cwwfvovbvme", model.tags().get("ecivyh")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ApplicationTypeVersionUpdateParameters model - = new ApplicationTypeVersionUpdateParameters().withTags(mapOf("ukgri", "krbm")); + = new ApplicationTypeVersionUpdateParameters().withTags(mapOf("ecivyh", "cwwfvovbvme")); model = BinaryData.fromObject(model).toObject(ApplicationTypeVersionUpdateParameters.class); - Assertions.assertEquals("krbm", model.tags().get("ukgri")); + Assertions.assertEquals("cwwfvovbvme", model.tags().get("ecivyh")); } // Use "Map.of" if available diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsCleanupPolicyTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsCleanupPolicyTests.java index 0ae27e0815c4..9a27cb617196 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsCleanupPolicyTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsCleanupPolicyTests.java @@ -11,16 +11,16 @@ public final class ApplicationTypeVersionsCleanupPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ApplicationTypeVersionsCleanupPolicy model = BinaryData.fromString("{\"maxUnusedVersionsToKeep\":1783583685}") + ApplicationTypeVersionsCleanupPolicy model = BinaryData.fromString("{\"maxUnusedVersionsToKeep\":1538408928}") .toObject(ApplicationTypeVersionsCleanupPolicy.class); - Assertions.assertEquals(1783583685, model.maxUnusedVersionsToKeep()); + Assertions.assertEquals(1538408928, model.maxUnusedVersionsToKeep()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ApplicationTypeVersionsCleanupPolicy model - = new ApplicationTypeVersionsCleanupPolicy().withMaxUnusedVersionsToKeep(1783583685); + = new ApplicationTypeVersionsCleanupPolicy().withMaxUnusedVersionsToKeep(1538408928); model = BinaryData.fromObject(model).toObject(ApplicationTypeVersionsCleanupPolicy.class); - Assertions.assertEquals(1783583685, model.maxUnusedVersionsToKeep()); + Assertions.assertEquals(1538408928, model.maxUnusedVersionsToKeep()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsCreateOrUpdateMockTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsCreateOrUpdateMockTests.java index 2325f03edeba..2955bf16bc4e 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsCreateOrUpdateMockTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsCreateOrUpdateMockTests.java @@ -23,7 +23,7 @@ public final class ApplicationTypeVersionsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"appPackageUrl\":\"kdlpa\"},\"tags\":{\"gsftufqobrjlnacg\":\"cxfailcfxwmdboxd\",\"nrzvuljraaer\":\"ckknhxkizvy\",\"gukkjqnvbroy\":\"nok\",\"xulcdisdos\":\"a\"},\"location\":\"b\",\"id\":\"vgjrwhr\",\"name\":\"vyc\",\"type\":\"t\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"appPackageUrl\":\"wxdzaumweoohgu\"},\"tags\":{\"olbaemwmdx\":\"zboyjathwt\",\"f\":\"ebwjscjpahlxvea\",\"qcttadijaeukmrsi\":\"xnmwmqtibxyijddt\"},\"location\":\"kpn\",\"id\":\"aapm\",\"name\":\"dqmeqwigpibudq\",\"type\":\"yxeb\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,16 +33,16 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ApplicationTypeVersionResource response = manager.applicationTypeVersions() - .define("g") - .withExistingApplicationType("klnsrmffey", "xcktpiymerteeamm", "qiekkkzddrt") - .withRegion("m") - .withTags(mapOf("s", "cuijpxt", "wsawddjibabxvi", "wprtu", "tfgle", "itvtzeexavo")) - .withAppPackageUrl("refdee") + .define("smkss") + .withExistingApplicationType("ppipifhpfeoa", "vgcxtx", "csheafidltugsr") + .withRegion("nkjpdnjzha") + .withTags(mapOf("hm", "biqtgdq", "lllibph", "wsldrizetpwbr", "a", "qzmiza")) + .withAppPackageUrl("egprhptil") .create(); - Assertions.assertEquals("cxfailcfxwmdboxd", response.tags().get("gsftufqobrjlnacg")); - Assertions.assertEquals("b", response.location()); - Assertions.assertEquals("kdlpa", response.appPackageUrl()); + Assertions.assertEquals("zboyjathwt", response.tags().get("olbaemwmdx")); + Assertions.assertEquals("kpn", response.location()); + Assertions.assertEquals("wxdzaumweoohgu", response.appPackageUrl()); } // Use "Map.of" if available diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsGetWithResponseMockTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsGetWithResponseMockTests.java index f8aecdb502bd..ad530c5b48d1 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsGetWithResponseMockTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class ApplicationTypeVersionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"nxpmyyefrpmpdnq\",\"appPackageUrl\":\"skawaoqvmmb\"},\"tags\":{\"qlkzme\":\"fr\"},\"location\":\"itgvkx\",\"id\":\"yqdrf\",\"name\":\"gcealzxwh\",\"type\":\"ansym\"}"; + = "{\"properties\":{\"provisioningState\":\"d\",\"appPackageUrl\":\"tnsi\"},\"tags\":{\"ckdlpag\":\"hzmme\",\"xdfgsftufqobr\":\"rcxfailcfxwmdb\",\"knh\":\"lnacgcc\"},\"location\":\"izvy\",\"id\":\"rzvul\",\"name\":\"r\",\"type\":\"aeranokqgukkjqnv\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,11 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ApplicationTypeVersionResource response = manager.applicationTypeVersions() - .getWithResponse("ouwivkxoyzunbixx", "ti", "vcpwpgclrc", "vtsoxf", com.azure.core.util.Context.NONE) + .getWithResponse("dmdqb", "pypqtgsfj", "cbslhhx", "db", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("fr", response.tags().get("qlkzme")); - Assertions.assertEquals("itgvkx", response.location()); - Assertions.assertEquals("skawaoqvmmb", response.appPackageUrl()); + Assertions.assertEquals("hzmme", response.tags().get("ckdlpag")); + Assertions.assertEquals("izvy", response.location()); + Assertions.assertEquals("tnsi", response.appPackageUrl()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsListByApplicationTypesMockTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsListByApplicationTypesMockTests.java index 24d2502207ec..e120d45ee37c 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsListByApplicationTypesMockTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypeVersionsListByApplicationTypesMockTests.java @@ -22,7 +22,7 @@ public final class ApplicationTypeVersionsListByApplicationTypesMockTests { @Test public void testListByApplicationTypes() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"kjsqzhzbezkgi\",\"appPackageUrl\":\"sidxasicdd\"},\"tags\":{\"gat\":\"jskgfmocwahp\",\"kzyb\":\"eaahhvjhhn\",\"yxkyxvx\":\"jjidjk\"},\"location\":\"blbjedn\",\"id\":\"lageuaulxun\",\"name\":\"mjbnk\",\"type\":\"pxynenlsvxeizzg\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"hryvy\",\"appPackageUrl\":\"ytdc\"},\"tags\":{\"vjdhttzaefedxih\":\"ccknfnwmbtmvp\"},\"location\":\"rphkmcrjdqnsdfz\",\"id\":\"gtgkylkdghr\",\"name\":\"euutlwxezwzh\",\"type\":\"kvbwnhhtqlgeh\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +32,10 @@ public void testListByApplicationTypes() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.applicationTypeVersions() - .listByApplicationTypes("yqhlwigdivbkbx", "omfaj", "wasqvdaeyyg", com.azure.core.util.Context.NONE); + .listByApplicationTypes("roylaxxu", "cdisd", "sfjbjsvg", com.azure.core.util.Context.NONE); - Assertions.assertEquals("jskgfmocwahp", response.iterator().next().tags().get("gat")); - Assertions.assertEquals("blbjedn", response.iterator().next().location()); - Assertions.assertEquals("sidxasicdd", response.iterator().next().appPackageUrl()); + Assertions.assertEquals("ccknfnwmbtmvp", response.iterator().next().tags().get("vjdhttzaefedxih")); + Assertions.assertEquals("rphkmcrjdqnsdfz", response.iterator().next().location()); + Assertions.assertEquals("ytdc", response.iterator().next().appPackageUrl()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesCreateOrUpdateWithResponseMockTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesCreateOrUpdateWithResponseMockTests.java index c2c323739d80..f28bded7c7ff 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesCreateOrUpdateWithResponseMockTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesCreateOrUpdateWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class ApplicationTypesCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"dyp\"},\"tags\":{\"sqy\":\"uemsly\"},\"location\":\"foobrlttyms\",\"id\":\"ygqdnfwqzdz\",\"name\":\"tilaxh\",\"type\":\"fhqlyvi\"}"; + = "{\"properties\":{\"provisioningState\":\"nsrmffeycx\"},\"tags\":{\"mx\":\"piymerteea\",\"xv\":\"iekkkzddrtkgdojb\",\"cuijpxt\":\"vrefdeesv\"},\"location\":\"uwprtujwsawd\",\"id\":\"ibabxvititvtzeex\",\"name\":\"vo\",\"type\":\"tfgle\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,14 +33,14 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ApplicationTypeResource response = manager.applicationTypes() - .define("sdtutnwlduyc") - .withExistingManagedCluster("zflbqvg", "qvlgafcqusrdvetn") - .withRegion("uvgp") - .withTags(mapOf("xgketwz", "qgsjjxun", "mhv", "hzjhf")) + .define("kgfmocwahpq") + .withExistingManagedCluster("uxakjsqzhzbezk", "imsidxasicddyvvj") + .withRegion("kyxvxevblbjedn") + .withTags(mapOf("idjks", "zybbj")) .create(); - Assertions.assertEquals("uemsly", response.tags().get("sqy")); - Assertions.assertEquals("foobrlttyms", response.location()); + Assertions.assertEquals("piymerteea", response.tags().get("mx")); + Assertions.assertEquals("uwprtujwsawd", response.location()); } // Use "Map.of" if available diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesGetWithResponseMockTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesGetWithResponseMockTests.java index 041fac79991b..60e16e33d4b6 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesGetWithResponseMockTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class ApplicationTypesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"imlnwiaaomylw\"},\"tags\":{\"l\":\"ulcsethwwnpj\"},\"location\":\"swpchwahfbousn\",\"id\":\"pgfewetwlyx\",\"name\":\"ncxykxhdjhlimm\",\"type\":\"cxfhbcporxv\"}"; + = "{\"properties\":{\"provisioningState\":\"eqsx\"},\"tags\":{\"sbhud\":\"fbuzjyihs\",\"foobrlttyms\":\"pohyuemslynsqyr\",\"nfwqzdzgtilaxhn\":\"nygq\",\"wivkxo\":\"hqlyvijo\"},\"location\":\"un\",\"id\":\"xxrtikvc\",\"name\":\"wpgclrcivt\",\"type\":\"oxfrkenxpmyyefr\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ApplicationTypeResource response = manager.applicationTypes() - .getWithResponse("wpfaj", "jwltlwtjjgu", "talhsnvkcdmxzr", com.azure.core.util.Context.NONE) + .getWithResponse("xundxgk", "twzhhzjhfjmhv", "muvgp", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ulcsethwwnpj", response.tags().get("l")); - Assertions.assertEquals("swpchwahfbousn", response.location()); + Assertions.assertEquals("fbuzjyihs", response.tags().get("sbhud")); + Assertions.assertEquals("un", response.location()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesListMockTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesListMockTests.java index 77298087d003..b0e4fd20683c 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesListMockTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationTypesListMockTests.java @@ -22,7 +22,7 @@ public final class ApplicationTypesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"juhdqazkmtgguwpi\"},\"tags\":{\"f\":\"jcivmmg\"},\"location\":\"iwrxgkn\",\"id\":\"vyi\",\"name\":\"zqodfvpgshox\",\"type\":\"sgbpfgzdjtx\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"rtql\"},\"tags\":{\"kxlzyqdrfeg\":\"egnitg\",\"lwigdivbkbx\":\"ealzxwhcansymoyq\"},\"location\":\"mf\",\"id\":\"uwasqvd\",\"name\":\"e\",\"type\":\"y\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,9 +32,9 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.applicationTypes().list("cjzhqi", "xfpxtgqscja", com.azure.core.util.Context.NONE); + = manager.applicationTypes().list("mpdnqqskawa", "qvmmbn", com.azure.core.util.Context.NONE); - Assertions.assertEquals("jcivmmg", response.iterator().next().tags().get("f")); - Assertions.assertEquals("iwrxgkn", response.iterator().next().location()); + Assertions.assertEquals("egnitg", response.iterator().next().tags().get("kxlzyqdrfeg")); + Assertions.assertEquals("mf", response.iterator().next().location()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationUpdateParametersPropertiesTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationUpdateParametersPropertiesTests.java new file mode 100644 index 000000000000..40afdd13a6da --- /dev/null +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationUpdateParametersPropertiesTests.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.servicefabricmanagedclusters.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationUpdateParametersProperties; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class ApplicationUpdateParametersPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ApplicationUpdateParametersProperties model = BinaryData.fromString("{\"parameters\":{\"ljavbqid\":\"qcjm\"}}") + .toObject(ApplicationUpdateParametersProperties.class); + Assertions.assertEquals("qcjm", model.parameters().get("ljavbqid")); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ApplicationUpdateParametersProperties model + = new ApplicationUpdateParametersProperties().withParameters(mapOf("ljavbqid", "qcjm")); + model = BinaryData.fromObject(model).toObject(ApplicationUpdateParametersProperties.class); + Assertions.assertEquals("qcjm", model.parameters().get("ljavbqid")); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationUpdateParametersTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationUpdateParametersTests.java index 2dbbc2c62a52..6fa511b670ef 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationUpdateParametersTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationUpdateParametersTests.java @@ -6,6 +6,7 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationUpdateParameters; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.ApplicationUpdateParametersProperties; import java.util.HashMap; import java.util.Map; import org.junit.jupiter.api.Assertions; @@ -14,17 +15,22 @@ public final class ApplicationUpdateParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ApplicationUpdateParameters model = BinaryData.fromString( - "{\"tags\":{\"eeh\":\"lnrosfqp\",\"swjdkirso\":\"zvypyqrimzinp\",\"soifiyipjxsqw\":\"dqxhcrmnohjtckwh\",\"bznorcjxvsnby\":\"gr\"}}") + "{\"tags\":{\"eeh\":\"lnrosfqp\",\"swjdkirso\":\"zvypyqrimzinp\",\"soifiyipjxsqw\":\"dqxhcrmnohjtckwh\",\"bznorcjxvsnby\":\"gr\"},\"properties\":{\"parameters\":{\"cyshurzafbljjgp\":\"nmoc\"}}}") .toObject(ApplicationUpdateParameters.class); Assertions.assertEquals("lnrosfqp", model.tags().get("eeh")); + Assertions.assertEquals("nmoc", model.properties().parameters().get("cyshurzafbljjgp")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ApplicationUpdateParameters model = new ApplicationUpdateParameters().withTags(mapOf("eeh", "lnrosfqp", - "swjdkirso", "zvypyqrimzinp", "soifiyipjxsqw", "dqxhcrmnohjtckwh", "bznorcjxvsnby", "gr")); + ApplicationUpdateParameters model = new ApplicationUpdateParameters() + .withTags(mapOf("eeh", "lnrosfqp", "swjdkirso", "zvypyqrimzinp", "soifiyipjxsqw", "dqxhcrmnohjtckwh", + "bznorcjxvsnby", "gr")) + .withProperties( + new ApplicationUpdateParametersProperties().withParameters(mapOf("cyshurzafbljjgp", "nmoc"))); model = BinaryData.fromObject(model).toObject(ApplicationUpdateParameters.class); Assertions.assertEquals("lnrosfqp", model.tags().get("eeh")); + Assertions.assertEquals("nmoc", model.properties().parameters().get("cyshurzafbljjgp")); } // Use "Map.of" if available diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsCreateOrUpdateMockTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsCreateOrUpdateMockTests.java index 4cb6fa7e9a5e..b688c94d841e 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsCreateOrUpdateMockTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsCreateOrUpdateMockTests.java @@ -34,7 +34,7 @@ public final class ApplicationsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"managedIdentities\":[{\"name\":\"hocxvdfffwafqrou\",\"principalId\":\"aspavehhr\"},{\"name\":\"kbunzoz\",\"principalId\":\"dhcxgkmoy\"},{\"name\":\"cdyuibhmfdnbzyd\",\"principalId\":\"f\"},{\"name\":\"fcjnaeoisrvhmgor\",\"principalId\":\"fukiscvwmzhw\"}],\"provisioningState\":\"Succeeded\",\"version\":\"gnhnzeyq\",\"parameters\":{\"dbeesmie\":\"jfzqlqhycavodgg\",\"wqfbylyrfgiagt\":\"nlrariaawiuagy\",\"zjvusfzldmo\":\"ojocqwogf\",\"own\":\"uxylfsbtkadpy\"},\"upgradePolicy\":{\"applicationHealthPolicy\":{\"considerWarningAsError\":false,\"maxPercentUnhealthyDeployedApplications\":1188867128,\"defaultServiceTypeHealthPolicy\":{\"maxPercentUnhealthyServices\":792325056,\"maxPercentUnhealthyPartitionsPerService\":403303744,\"maxPercentUnhealthyReplicasPerPartition\":1343904651},\"serviceTypeHealthPolicyMap\":{\"cmisofie\":{\"maxPercentUnhealthyServices\":508604725,\"maxPercentUnhealthyPartitionsPerService\":1010221539,\"maxPercentUnhealthyReplicasPerPartition\":490054164}}},\"forceRestart\":true,\"rollingUpgradeMonitoringPolicy\":{\"failureAction\":\"Manual\",\"healthCheckWaitDuration\":\"jy\",\"healthCheckStableDuration\":\"dh\",\"healthCheckRetryTimeout\":\"u\",\"upgradeTimeout\":\"lcplc\",\"upgradeDomainTimeout\":\"khihihlhzds\"},\"instanceCloseDelayDuration\":2248945719770323903,\"upgradeMode\":\"UnmonitoredAuto\",\"upgradeReplicaSetCheckTimeout\":4511642520735539935,\"recreateApplication\":true}},\"tags\":{\"e\":\"fgmvecactxmwo\",\"ekqvgqouwif\":\"owcluqo\",\"ivqikfxcvhr\":\"mpjw\"},\"identity\":{\"principalId\":\"huagrttikteusqc\",\"tenantId\":\"vyklxuby\",\"type\":\"None\",\"userAssignedIdentities\":{\"brta\":{\"principalId\":\"fblcq\",\"clientId\":\"ubgq\"},\"qseypxiutcxa\":{\"principalId\":\"etttwgdslqxihhr\",\"clientId\":\"oi\"},\"abrqnkkzj\":{\"principalId\":\"hyrpetogebjoxs\",\"clientId\":\"vnh\"},\"qbeitpkxztmoob\":{\"principalId\":\"b\",\"clientId\":\"gaehvvibrxjjst\"}}},\"location\":\"ft\",\"id\":\"gfcwqmpimaqxzhem\",\"name\":\"yhohujswtwkozzwc\",\"type\":\"lkb\"}"; + = "{\"properties\":{\"managedIdentities\":[{\"name\":\"rttikteusqc\",\"principalId\":\"kvyklxubyjaffmm\"},{\"name\":\"bl\",\"principalId\":\"qcuubgqibrta\"},{\"name\":\"metttwgd\",\"principalId\":\"lqxihhrmooiz\"},{\"name\":\"seypxiutcxapz\",\"principalId\":\"y\"}],\"provisioningState\":\"Succeeded\",\"version\":\"oxslh\",\"parameters\":{\"aehvvibrxjjstoq\":\"labrqnkkzjcjbtr\",\"bklftidgfcwqmpim\":\"eitpkxztmo\"},\"upgradePolicy\":{\"applicationHealthPolicy\":{\"considerWarningAsError\":false,\"maxPercentUnhealthyDeployedApplications\":1167127831,\"defaultServiceTypeHealthPolicy\":{\"maxPercentUnhealthyServices\":1502903933,\"maxPercentUnhealthyPartitionsPerService\":1484369172,\"maxPercentUnhealthyReplicasPerPartition\":2126797239},\"serviceTypeHealthPolicyMap\":{\"swtwkozzwc\":{\"maxPercentUnhealthyServices\":1611708700,\"maxPercentUnhealthyPartitionsPerService\":453799283,\"maxPercentUnhealthyReplicasPerPartition\":633481749}}},\"forceRestart\":false,\"rollingUpgradeMonitoringPolicy\":{\"failureAction\":\"Manual\",\"healthCheckWaitDuration\":\"wpfaj\",\"healthCheckStableDuration\":\"jwltlwtjjgu\",\"healthCheckRetryTimeout\":\"talhsnvkcdmxzr\",\"upgradeTimeout\":\"oaimlnw\",\"upgradeDomainTimeout\":\"aaomylweazu\"},\"instanceCloseDelayDuration\":7974020410660782836,\"upgradeMode\":\"Monitored\",\"upgradeReplicaSetCheckTimeout\":7245561295211561576,\"recreateApplication\":true}},\"tags\":{\"wpchwahf\":\"fz\"},\"identity\":{\"principalId\":\"snfepgfewetwlyx\",\"tenantId\":\"cxy\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"qizxfpxtgqscjavf\":{\"principalId\":\"limmbcxf\",\"clientId\":\"cporxvxcjz\"},\"wpijrajci\":{\"principalId\":\"uhdqazk\",\"clientId\":\"gg\"},\"oxgsgbpfgzdjtx\":{\"principalId\":\"mghfcfiwrxgkne\",\"clientId\":\"yinzqodfvpgs\"},\"rdve\":{\"principalId\":\"flbqvgaq\",\"clientId\":\"gafcqu\"}}},\"location\":\"wsdtutnwl\",\"id\":\"ycvuzhyrmewipmv\",\"name\":\"k\",\"type\":\"xukuqgsj\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -44,108 +44,107 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ApplicationResource response = manager.applications() - .define("ktwkuziyc") - .withExistingManagedCluster("ril", "zapeewchpx") - .withRegion("rbbcevq") - .withTags(mapOf("hqyikvy", "qyuvvfonkp", "vluwmncsttij", "auy")) - .withIdentity(new ManagedIdentity().withType(ManagedIdentityType.NONE) + .define("hqyikvy") + .withExistingManagedCluster("jazysdzhezwwvaiq", "uvvfonkp") + .withRegion("uqovekqvgqouwif") + .withTags(mapOf("vwmzhwplefaxvxil", "vhmgorffukis", "nzeyqxtjj", "btgn")) + .withIdentity(new ManagedIdentity().withType(ManagedIdentityType.SYSTEM_ASSIGNED) .withUserAssignedIdentities( - mapOf("gkynscliqh", new UserAssignedIdentity(), "dxzxhi", new UserAssignedIdentity()))) - .withManagedIdentities(Arrays - .asList(new ApplicationUserAssignedIdentity().withName("ufuztcktyhjtq").withPrincipalId("dcgzul"))) - .withVersion("zgkrvqe") - .withParameters(mapOf("t", "oepry", "fvaawzqa", "wytpzdmovz")) + mapOf("iagtc", new UserAssignedIdentity(), "ozuxylfsbtkadpys", new UserAssignedIdentity(), + "cuplcplcwkhih", new UserAssignedIdentity(), "txmwoteyow", new UserAssignedIdentity()))) + .withManagedIdentities( + Arrays.asList(new ApplicationUserAssignedIdentity().withName("avluwmncs").withPrincipalId("tijfybvp"), + new ApplicationUserAssignedIdentity().withName("ekrsgs").withPrincipalId("b"), + new ApplicationUserAssignedIdentity().withName("huzqgn").withPrincipalId("dgkynscliqhzvhxn"))) + .withVersion("otppnv") + .withParameters(mapOf("dhlfkqojpykvgt", "xhihfrbbcevqagtl")) .withUpgradePolicy(new ApplicationUpgradePolicy() .withApplicationHealthPolicy(new ApplicationHealthPolicy().withConsiderWarningAsError(true) - .withMaxPercentUnhealthyDeployedApplications(97417905) + .withMaxPercentUnhealthyDeployedApplications(1625047918) .withDefaultServiceTypeHealthPolicy( - new ServiceTypeHealthPolicy().withMaxPercentUnhealthyServices(1828408441) - .withMaxPercentUnhealthyPartitionsPerService(1869010035) - .withMaxPercentUnhealthyReplicasPerPartition(1067396685)) - .withServiceTypeHealthPolicyMap(mapOf("ndtic", - new ServiceTypeHealthPolicy().withMaxPercentUnhealthyServices(1058037553) - .withMaxPercentUnhealthyPartitionsPerService(335381913) - .withMaxPercentUnhealthyReplicasPerPartition(1970549549), - "zmlqtmldgxo", - new ServiceTypeHealthPolicy().withMaxPercentUnhealthyServices(1691117977) - .withMaxPercentUnhealthyPartitionsPerService(687349800) - .withMaxPercentUnhealthyReplicasPerPartition(675680646), - "clnpkci", - new ServiceTypeHealthPolicy().withMaxPercentUnhealthyServices(1135591058) - .withMaxPercentUnhealthyPartitionsPerService(1794047018) - .withMaxPercentUnhealthyReplicasPerPartition(1646739085)))) + new ServiceTypeHealthPolicy().withMaxPercentUnhealthyServices(840860863) + .withMaxPercentUnhealthyPartitionsPerService(1598759472) + .withMaxPercentUnhealthyReplicasPerPartition(2043504503)) + .withServiceTypeHealthPolicyMap(mapOf("rnysux", + new ServiceTypeHealthPolicy().withMaxPercentUnhealthyServices(1409785918) + .withMaxPercentUnhealthyPartitionsPerService(212235085) + .withMaxPercentUnhealthyReplicasPerPartition(599707965), + "fwgckhocxvdfffw", + new ServiceTypeHealthPolicy().withMaxPercentUnhealthyServices(718092493) + .withMaxPercentUnhealthyPartitionsPerService(1439980159) + .withMaxPercentUnhealthyReplicasPerPartition(214541271)))) .withForceRestart(false) .withRollingUpgradeMonitoringPolicy( - new RollingUpgradeMonitoringPolicy().withFailureAction(FailureAction.ROLLBACK) - .withHealthCheckWaitDuration("ykhyawfvjlboxqvk") - .withHealthCheckStableDuration("lmxhomdyn") - .withHealthCheckRetryTimeout("dwdigumb") - .withUpgradeTimeout("raauzzpt") - .withUpgradeDomainTimeout("a")) - .withInstanceCloseDelayDuration(8740215687103788004L) - .withUpgradeMode(RollingUpgradeMode.UNMONITORED_AUTO) - .withUpgradeReplicaSetCheckTimeout(5386759909033236623L) - .withRecreateApplication(true)) + new RollingUpgradeMonitoringPolicy().withFailureAction(FailureAction.MANUAL) + .withHealthCheckWaitDuration("udaspavehh") + .withHealthCheckStableDuration("vkbunzozudh") + .withHealthCheckRetryTimeout("xg") + .withUpgradeTimeout("moy") + .withUpgradeDomainTimeout("cdyuibhmfdnbzyd")) + .withInstanceCloseDelayDuration(8043600707281481210L) + .withUpgradeMode(RollingUpgradeMode.MONITORED) + .withUpgradeReplicaSetCheckTimeout(8257017600772006197L) + .withRecreateApplication(false)) .create(); - Assertions.assertEquals("fgmvecactxmwo", response.tags().get("e")); - Assertions.assertEquals(ManagedIdentityType.NONE, response.identity().type()); - Assertions.assertEquals("ft", response.location()); - Assertions.assertEquals("hocxvdfffwafqrou", response.managedIdentities().get(0).name()); - Assertions.assertEquals("aspavehhr", response.managedIdentities().get(0).principalId()); - Assertions.assertEquals("gnhnzeyq", response.version()); - Assertions.assertEquals("jfzqlqhycavodgg", response.parameters().get("dbeesmie")); + Assertions.assertEquals("fz", response.tags().get("wpchwahf")); + Assertions.assertEquals(ManagedIdentityType.USER_ASSIGNED, response.identity().type()); + Assertions.assertEquals("wsdtutnwl", response.location()); + Assertions.assertEquals("rttikteusqc", response.managedIdentities().get(0).name()); + Assertions.assertEquals("kvyklxubyjaffmm", response.managedIdentities().get(0).principalId()); + Assertions.assertEquals("oxslh", response.version()); + Assertions.assertEquals("labrqnkkzjcjbtr", response.parameters().get("aehvvibrxjjstoq")); Assertions.assertFalse(response.upgradePolicy().applicationHealthPolicy().considerWarningAsError()); - Assertions.assertEquals(1188867128, + Assertions.assertEquals(1167127831, response.upgradePolicy().applicationHealthPolicy().maxPercentUnhealthyDeployedApplications()); - Assertions.assertEquals(792325056, + Assertions.assertEquals(1502903933, response.upgradePolicy() .applicationHealthPolicy() .defaultServiceTypeHealthPolicy() .maxPercentUnhealthyServices()); - Assertions.assertEquals(403303744, + Assertions.assertEquals(1484369172, response.upgradePolicy() .applicationHealthPolicy() .defaultServiceTypeHealthPolicy() .maxPercentUnhealthyPartitionsPerService()); - Assertions.assertEquals(1343904651, + Assertions.assertEquals(2126797239, response.upgradePolicy() .applicationHealthPolicy() .defaultServiceTypeHealthPolicy() .maxPercentUnhealthyReplicasPerPartition()); - Assertions.assertEquals(508604725, + Assertions.assertEquals(1611708700, response.upgradePolicy() .applicationHealthPolicy() .serviceTypeHealthPolicyMap() - .get("cmisofie") + .get("swtwkozzwc") .maxPercentUnhealthyServices()); - Assertions.assertEquals(1010221539, + Assertions.assertEquals(453799283, response.upgradePolicy() .applicationHealthPolicy() .serviceTypeHealthPolicyMap() - .get("cmisofie") + .get("swtwkozzwc") .maxPercentUnhealthyPartitionsPerService()); - Assertions.assertEquals(490054164, + Assertions.assertEquals(633481749, response.upgradePolicy() .applicationHealthPolicy() .serviceTypeHealthPolicyMap() - .get("cmisofie") + .get("swtwkozzwc") .maxPercentUnhealthyReplicasPerPartition()); - Assertions.assertTrue(response.upgradePolicy().forceRestart()); + Assertions.assertFalse(response.upgradePolicy().forceRestart()); Assertions.assertEquals(FailureAction.MANUAL, response.upgradePolicy().rollingUpgradeMonitoringPolicy().failureAction()); - Assertions.assertEquals("jy", + Assertions.assertEquals("wpfaj", response.upgradePolicy().rollingUpgradeMonitoringPolicy().healthCheckWaitDuration()); - Assertions.assertEquals("dh", + Assertions.assertEquals("jwltlwtjjgu", response.upgradePolicy().rollingUpgradeMonitoringPolicy().healthCheckStableDuration()); - Assertions.assertEquals("u", + Assertions.assertEquals("talhsnvkcdmxzr", response.upgradePolicy().rollingUpgradeMonitoringPolicy().healthCheckRetryTimeout()); - Assertions.assertEquals("lcplc", response.upgradePolicy().rollingUpgradeMonitoringPolicy().upgradeTimeout()); - Assertions.assertEquals("khihihlhzds", + Assertions.assertEquals("oaimlnw", response.upgradePolicy().rollingUpgradeMonitoringPolicy().upgradeTimeout()); + Assertions.assertEquals("aaomylweazu", response.upgradePolicy().rollingUpgradeMonitoringPolicy().upgradeDomainTimeout()); - Assertions.assertEquals(2248945719770323903L, response.upgradePolicy().instanceCloseDelayDuration()); - Assertions.assertEquals(RollingUpgradeMode.UNMONITORED_AUTO, response.upgradePolicy().upgradeMode()); - Assertions.assertEquals(4511642520735539935L, response.upgradePolicy().upgradeReplicaSetCheckTimeout()); + Assertions.assertEquals(7974020410660782836L, response.upgradePolicy().instanceCloseDelayDuration()); + Assertions.assertEquals(RollingUpgradeMode.MONITORED, response.upgradePolicy().upgradeMode()); + Assertions.assertEquals(7245561295211561576L, response.upgradePolicy().upgradeReplicaSetCheckTimeout()); Assertions.assertTrue(response.upgradePolicy().recreateApplication()); } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsGetWithResponseMockTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsGetWithResponseMockTests.java index 3c183885fdd3..247480fb86ee 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsGetWithResponseMockTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsGetWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class ApplicationsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"managedIdentities\":[{\"name\":\"iuxxpshneekulfg\",\"principalId\":\"lqubkwdlen\"},{\"name\":\"d\",\"principalId\":\"utujba\"},{\"name\":\"pjuohminyfl\",\"principalId\":\"orwmduvwpklv\"}],\"provisioningState\":\"mygdxpgpqch\",\"version\":\"zepn\",\"parameters\":{\"axconfozauo\":\"crxgibb\",\"nuuepzlrp\":\"sukokwbqplhl\",\"nnrwrbiork\":\"wzsoldweyuqdunv\",\"xmsivfomiloxggdu\":\"alywjhhgdn\"},\"upgradePolicy\":{\"applicationHealthPolicy\":{\"considerWarningAsError\":true,\"maxPercentUnhealthyDeployedApplications\":133601107,\"defaultServiceTypeHealthPolicy\":{\"maxPercentUnhealthyServices\":1357028156,\"maxPercentUnhealthyPartitionsPerService\":1264679400,\"maxPercentUnhealthyReplicasPerPartition\":569162481},\"serviceTypeHealthPolicyMap\":{\"hvcyyysfg\":{\"maxPercentUnhealthyServices\":1581273229,\"maxPercentUnhealthyPartitionsPerService\":1778919230,\"maxPercentUnhealthyReplicasPerPartition\":886290907},\"ubiipuipwoqonma\":{\"maxPercentUnhealthyServices\":1377717439,\"maxPercentUnhealthyPartitionsPerService\":2137619748,\"maxPercentUnhealthyReplicasPerPartition\":355548039},\"nizshqvcim\":{\"maxPercentUnhealthyServices\":219234320,\"maxPercentUnhealthyPartitionsPerService\":914015459,\"maxPercentUnhealthyReplicasPerPartition\":167629289}}},\"forceRestart\":true,\"rollingUpgradeMonitoringPolicy\":{\"failureAction\":\"Rollback\",\"healthCheckWaitDuration\":\"mblrrilbywd\",\"healthCheckStableDuration\":\"smiccwrwfscj\",\"healthCheckRetryTimeout\":\"n\",\"upgradeTimeout\":\"nszqujiz\",\"upgradeDomainTimeout\":\"voqyt\"},\"instanceCloseDelayDuration\":1821183361408913568,\"upgradeMode\":\"UnmonitoredAuto\",\"upgradeReplicaSetCheckTimeout\":2398197739518116547,\"recreateApplication\":false}},\"tags\":{\"hjoxo\":\"tp\"},\"identity\":{\"principalId\":\"sks\",\"tenantId\":\"iml\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"fgfb\":{\"principalId\":\"cgxxlxs\",\"clientId\":\"gcvizqzdwlvwlyou\"},\"g\":{\"principalId\":\"ubdyhgk\",\"clientId\":\"in\"},\"mmqtgqqqxhr\":{\"principalId\":\"zfttsttktlahb\",\"clientId\":\"ctxtgzukxi\"},\"azivjlfrqttbajl\":{\"principalId\":\"rxcpjuisavo\",\"clientId\":\"dzf\"}}},\"location\":\"tnwxy\",\"id\":\"pidkqqfkuvscxkdm\",\"name\":\"igovi\",\"type\":\"rxkpmloazuruoc\"}"; + = "{\"properties\":{\"managedIdentities\":[{\"name\":\"ljxkcgxxlx\",\"principalId\":\"ffgcvizqz\"},{\"name\":\"wlvwlyoupf\",\"principalId\":\"fbkjubdyhgkfmi\"}],\"provisioningState\":\"g\",\"version\":\"zfttsttktlahb\",\"parameters\":{\"gzukxitmm\":\"tx\",\"qqxhrnxrxcpj\":\"tg\",\"dzf\":\"isavok\"},\"upgradePolicy\":{\"applicationHealthPolicy\":{\"considerWarningAsError\":true,\"maxPercentUnhealthyDeployedApplications\":2015132564,\"defaultServiceTypeHealthPolicy\":{\"maxPercentUnhealthyServices\":225909755,\"maxPercentUnhealthyPartitionsPerService\":1398349003,\"maxPercentUnhealthyReplicasPerPartition\":1209052818},\"serviceTypeHealthPolicyMap\":{\"jlkatnwxy\":{\"maxPercentUnhealthyServices\":234618918,\"maxPercentUnhealthyPartitionsPerService\":1411328763,\"maxPercentUnhealthyReplicasPerPartition\":2022353115},\"dkqqfkuvscxkd\":{\"maxPercentUnhealthyServices\":713204380,\"maxPercentUnhealthyPartitionsPerService\":2086170636,\"maxPercentUnhealthyReplicasPerPartition\":372897699}}},\"forceRestart\":false,\"rollingUpgradeMonitoringPolicy\":{\"failureAction\":\"Rollback\",\"healthCheckWaitDuration\":\"vibrxkpmloazuruo\",\"healthCheckStableDuration\":\"bgo\",\"healthCheckRetryTimeout\":\"rb\",\"upgradeTimeout\":\"eoybfhjxakvvjgs\",\"upgradeDomainTimeout\":\"ordilmywwtkgkxny\"},\"instanceCloseDelayDuration\":9040461916743042317,\"upgradeMode\":\"UnmonitoredAuto\",\"upgradeReplicaSetCheckTimeout\":475774977196617352,\"recreateApplication\":true}},\"tags\":{\"j\":\"wbcihxuuwh\",\"akkud\":\"xccybvpa\",\"wjplma\":\"px\"},\"identity\":{\"principalId\":\"cyohpfkyrkdbd\",\"tenantId\":\"ogsjkmnwqjno\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"mvmemfnczd\":{\"principalId\":\"d\",\"clientId\":\"acegfnmntf\"}}},\"location\":\"vbalxlllc\",\"id\":\"odbzevwrdnhf\",\"name\":\"kuvsjcswsm\",\"type\":\"stul\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,67 +34,68 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ApplicationResource response = manager.applications() - .getWithResponse("jvewzcjznmwcp", "guaadraufactkahz", "v", com.azure.core.util.Context.NONE) + .getWithResponse("vutpthjoxo", "smsks", "pi", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("tp", response.tags().get("hjoxo")); - Assertions.assertEquals(ManagedIdentityType.USER_ASSIGNED, response.identity().type()); - Assertions.assertEquals("tnwxy", response.location()); - Assertions.assertEquals("iuxxpshneekulfg", response.managedIdentities().get(0).name()); - Assertions.assertEquals("lqubkwdlen", response.managedIdentities().get(0).principalId()); - Assertions.assertEquals("zepn", response.version()); - Assertions.assertEquals("crxgibb", response.parameters().get("axconfozauo")); + Assertions.assertEquals("wbcihxuuwh", response.tags().get("j")); + Assertions.assertEquals(ManagedIdentityType.SYSTEM_ASSIGNED, response.identity().type()); + Assertions.assertEquals("vbalxlllc", response.location()); + Assertions.assertEquals("ljxkcgxxlx", response.managedIdentities().get(0).name()); + Assertions.assertEquals("ffgcvizqz", response.managedIdentities().get(0).principalId()); + Assertions.assertEquals("zfttsttktlahb", response.version()); + Assertions.assertEquals("tx", response.parameters().get("gzukxitmm")); Assertions.assertTrue(response.upgradePolicy().applicationHealthPolicy().considerWarningAsError()); - Assertions.assertEquals(133601107, + Assertions.assertEquals(2015132564, response.upgradePolicy().applicationHealthPolicy().maxPercentUnhealthyDeployedApplications()); - Assertions.assertEquals(1357028156, + Assertions.assertEquals(225909755, response.upgradePolicy() .applicationHealthPolicy() .defaultServiceTypeHealthPolicy() .maxPercentUnhealthyServices()); - Assertions.assertEquals(1264679400, + Assertions.assertEquals(1398349003, response.upgradePolicy() .applicationHealthPolicy() .defaultServiceTypeHealthPolicy() .maxPercentUnhealthyPartitionsPerService()); - Assertions.assertEquals(569162481, + Assertions.assertEquals(1209052818, response.upgradePolicy() .applicationHealthPolicy() .defaultServiceTypeHealthPolicy() .maxPercentUnhealthyReplicasPerPartition()); - Assertions.assertEquals(1581273229, + Assertions.assertEquals(234618918, response.upgradePolicy() .applicationHealthPolicy() .serviceTypeHealthPolicyMap() - .get("hvcyyysfg") + .get("jlkatnwxy") .maxPercentUnhealthyServices()); - Assertions.assertEquals(1778919230, + Assertions.assertEquals(1411328763, response.upgradePolicy() .applicationHealthPolicy() .serviceTypeHealthPolicyMap() - .get("hvcyyysfg") + .get("jlkatnwxy") .maxPercentUnhealthyPartitionsPerService()); - Assertions.assertEquals(886290907, + Assertions.assertEquals(2022353115, response.upgradePolicy() .applicationHealthPolicy() .serviceTypeHealthPolicyMap() - .get("hvcyyysfg") + .get("jlkatnwxy") .maxPercentUnhealthyReplicasPerPartition()); - Assertions.assertTrue(response.upgradePolicy().forceRestart()); + Assertions.assertFalse(response.upgradePolicy().forceRestart()); Assertions.assertEquals(FailureAction.ROLLBACK, response.upgradePolicy().rollingUpgradeMonitoringPolicy().failureAction()); - Assertions.assertEquals("mblrrilbywd", + Assertions.assertEquals("vibrxkpmloazuruo", response.upgradePolicy().rollingUpgradeMonitoringPolicy().healthCheckWaitDuration()); - Assertions.assertEquals("smiccwrwfscj", + Assertions.assertEquals("bgo", response.upgradePolicy().rollingUpgradeMonitoringPolicy().healthCheckStableDuration()); - Assertions.assertEquals("n", + Assertions.assertEquals("rb", response.upgradePolicy().rollingUpgradeMonitoringPolicy().healthCheckRetryTimeout()); - Assertions.assertEquals("nszqujiz", response.upgradePolicy().rollingUpgradeMonitoringPolicy().upgradeTimeout()); - Assertions.assertEquals("voqyt", + Assertions.assertEquals("eoybfhjxakvvjgs", + response.upgradePolicy().rollingUpgradeMonitoringPolicy().upgradeTimeout()); + Assertions.assertEquals("ordilmywwtkgkxny", response.upgradePolicy().rollingUpgradeMonitoringPolicy().upgradeDomainTimeout()); - Assertions.assertEquals(1821183361408913568L, response.upgradePolicy().instanceCloseDelayDuration()); + Assertions.assertEquals(9040461916743042317L, response.upgradePolicy().instanceCloseDelayDuration()); Assertions.assertEquals(RollingUpgradeMode.UNMONITORED_AUTO, response.upgradePolicy().upgradeMode()); - Assertions.assertEquals(2398197739518116547L, response.upgradePolicy().upgradeReplicaSetCheckTimeout()); - Assertions.assertFalse(response.upgradePolicy().recreateApplication()); + Assertions.assertEquals(475774977196617352L, response.upgradePolicy().upgradeReplicaSetCheckTimeout()); + Assertions.assertTrue(response.upgradePolicy().recreateApplication()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsListMockTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsListMockTests.java index 75f3690382a1..ccb390911e20 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsListMockTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ApplicationsListMockTests.java @@ -25,7 +25,7 @@ public final class ApplicationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"managedIdentities\":[{\"name\":\"lmywwtkgkxnyed\",\"principalId\":\"b\"}],\"provisioningState\":\"vudtjuewbcihx\",\"version\":\"whcjyxcc\",\"parameters\":{\"px\":\"payakkud\",\"stcyohpfkyrkdbd\":\"wjplma\",\"nobaiyhddviacegf\":\"iogsjkmnwq\"},\"upgradePolicy\":{\"applicationHealthPolicy\":{\"considerWarningAsError\":true,\"maxPercentUnhealthyDeployedApplications\":864919134,\"defaultServiceTypeHealthPolicy\":{\"maxPercentUnhealthyServices\":394707099,\"maxPercentUnhealthyPartitionsPerService\":328676113,\"maxPercentUnhealthyReplicasPerPartition\":2049535402},\"serviceTypeHealthPolicyMap\":{\"zdwvvbalxl\":{\"maxPercentUnhealthyServices\":999073348,\"maxPercentUnhealthyPartitionsPerService\":1649759602,\"maxPercentUnhealthyReplicasPerPartition\":1382156415},\"podbzevwrdnh\":{\"maxPercentUnhealthyServices\":1368120415,\"maxPercentUnhealthyPartitionsPerService\":677641870,\"maxPercentUnhealthyReplicasPerPartition\":2062090684}}},\"forceRestart\":true,\"rollingUpgradeMonitoringPolicy\":{\"failureAction\":\"Manual\",\"healthCheckWaitDuration\":\"sjcswsmystuluqyp\",\"healthCheckStableDuration\":\"cvlerchpqbmfpjba\",\"healthCheckRetryTimeout\":\"widf\",\"upgradeTimeout\":\"xsspuunnoxyhk\",\"upgradeDomainTimeout\":\"g\"},\"instanceCloseDelayDuration\":9129720972817619539,\"upgradeMode\":\"Monitored\",\"upgradeReplicaSetCheckTimeout\":5806792787635363155,\"recreateApplication\":true}},\"tags\":{\"wdaomdjvlpjxxkzb\":\"a\",\"ncj\":\"msgeivsiykzk\",\"y\":\"xonbzoggculapz\"},\"identity\":{\"principalId\":\"ogtqxepnylbf\",\"tenantId\":\"jlyjtlvofq\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"wiivwzjbhyzsx\":{\"principalId\":\"byfmowuxr\",\"clientId\":\"pvdwxf\"}}},\"location\":\"kambtrnegvmnvuqe\",\"id\":\"lds\",\"name\":\"astjbkkdmflvestm\",\"type\":\"lx\"}]}"; + = "{\"value\":[{\"properties\":{\"managedIdentities\":[{\"name\":\"bm\",\"principalId\":\"pjbabwidfc\"},{\"name\":\"sspuunnoxyhkx\",\"principalId\":\"qddrihpfhoqcaae\"},{\"name\":\"dao\",\"principalId\":\"djvlpj\"},{\"name\":\"xkzb\",\"principalId\":\"msgeivsiykzk\"}],\"provisioningState\":\"cjdx\",\"version\":\"bzo\",\"parameters\":{\"ogtqxepnylbf\":\"ulapzwyrp\",\"cib\":\"ajlyjtlvofqzhv\",\"uxrkjp\":\"fmo\",\"wiivwzjbhyzsx\":\"dwxf\"},\"upgradePolicy\":{\"applicationHealthPolicy\":{\"considerWarningAsError\":true,\"maxPercentUnhealthyDeployedApplications\":857914437,\"defaultServiceTypeHealthPolicy\":{\"maxPercentUnhealthyServices\":2010544463,\"maxPercentUnhealthyPartitionsPerService\":1753999923,\"maxPercentUnhealthyReplicasPerPartition\":426068094},\"serviceTypeHealthPolicyMap\":{\"vuqeqvldspast\":{\"maxPercentUnhealthyServices\":1243501701,\"maxPercentUnhealthyPartitionsPerService\":1525920075,\"maxPercentUnhealthyReplicasPerPartition\":983606156},\"dmflv\":{\"maxPercentUnhealthyServices\":900352978,\"maxPercentUnhealthyPartitionsPerService\":1481750195,\"maxPercentUnhealthyReplicasPerPartition\":1155931033},\"jlxr\":{\"maxPercentUnhealthyServices\":922777,\"maxPercentUnhealthyPartitionsPerService\":1294255388,\"maxPercentUnhealthyReplicasPerPartition\":1941406807}}},\"forceRestart\":true,\"rollingUpgradeMonitoringPolicy\":{\"failureAction\":\"Manual\",\"healthCheckWaitDuration\":\"apeewchpxlkt\",\"healthCheckStableDuration\":\"kuziycsle\",\"healthCheckRetryTimeout\":\"ufuztcktyhjtq\",\"upgradeTimeout\":\"dcgzul\",\"upgradeDomainTimeout\":\"mmrqz\"},\"instanceCloseDelayDuration\":9007359622737683059,\"upgradeMode\":\"Monitored\",\"upgradeReplicaSetCheckTimeout\":6630814331855742678,\"recreateApplication\":false}},\"tags\":{\"ytp\":\"rvqeevtoepryutn\"},\"identity\":{\"principalId\":\"o\",\"tenantId\":\"vf\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"xndticokpvzmlqtm\":{\"principalId\":\"adflgzu\",\"clientId\":\"glae\"},\"iykhy\":{\"principalId\":\"gxobfirclnp\",\"clientId\":\"iayz\"}}},\"location\":\"fvjlboxqvkjlmx\",\"id\":\"mdy\",\"name\":\"hdwdi\",\"type\":\"umbnraauzzp\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,86 +35,86 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.applications().list("goorbteo", "bfhjxakvvjgsl", com.azure.core.util.Context.NONE); + = manager.applications().list("qypfcv", "er", com.azure.core.util.Context.NONE); - Assertions.assertEquals("a", response.iterator().next().tags().get("wdaomdjvlpjxxkzb")); - Assertions.assertEquals(ManagedIdentityType.USER_ASSIGNED, response.iterator().next().identity().type()); - Assertions.assertEquals("kambtrnegvmnvuqe", response.iterator().next().location()); - Assertions.assertEquals("lmywwtkgkxnyed", response.iterator().next().managedIdentities().get(0).name()); - Assertions.assertEquals("b", response.iterator().next().managedIdentities().get(0).principalId()); - Assertions.assertEquals("whcjyxcc", response.iterator().next().version()); - Assertions.assertEquals("payakkud", response.iterator().next().parameters().get("px")); + Assertions.assertEquals("rvqeevtoepryutn", response.iterator().next().tags().get("ytp")); + Assertions.assertEquals(ManagedIdentityType.SYSTEM_ASSIGNED, response.iterator().next().identity().type()); + Assertions.assertEquals("fvjlboxqvkjlmx", response.iterator().next().location()); + Assertions.assertEquals("bm", response.iterator().next().managedIdentities().get(0).name()); + Assertions.assertEquals("pjbabwidfc", response.iterator().next().managedIdentities().get(0).principalId()); + Assertions.assertEquals("bzo", response.iterator().next().version()); + Assertions.assertEquals("ulapzwyrp", response.iterator().next().parameters().get("ogtqxepnylbf")); Assertions .assertTrue(response.iterator().next().upgradePolicy().applicationHealthPolicy().considerWarningAsError()); - Assertions.assertEquals(864919134, + Assertions.assertEquals(857914437, response.iterator() .next() .upgradePolicy() .applicationHealthPolicy() .maxPercentUnhealthyDeployedApplications()); - Assertions.assertEquals(394707099, + Assertions.assertEquals(2010544463, response.iterator() .next() .upgradePolicy() .applicationHealthPolicy() .defaultServiceTypeHealthPolicy() .maxPercentUnhealthyServices()); - Assertions.assertEquals(328676113, + Assertions.assertEquals(1753999923, response.iterator() .next() .upgradePolicy() .applicationHealthPolicy() .defaultServiceTypeHealthPolicy() .maxPercentUnhealthyPartitionsPerService()); - Assertions.assertEquals(2049535402, + Assertions.assertEquals(426068094, response.iterator() .next() .upgradePolicy() .applicationHealthPolicy() .defaultServiceTypeHealthPolicy() .maxPercentUnhealthyReplicasPerPartition()); - Assertions.assertEquals(999073348, + Assertions.assertEquals(1243501701, response.iterator() .next() .upgradePolicy() .applicationHealthPolicy() .serviceTypeHealthPolicyMap() - .get("zdwvvbalxl") + .get("vuqeqvldspast") .maxPercentUnhealthyServices()); - Assertions.assertEquals(1649759602, + Assertions.assertEquals(1525920075, response.iterator() .next() .upgradePolicy() .applicationHealthPolicy() .serviceTypeHealthPolicyMap() - .get("zdwvvbalxl") + .get("vuqeqvldspast") .maxPercentUnhealthyPartitionsPerService()); - Assertions.assertEquals(1382156415, + Assertions.assertEquals(983606156, response.iterator() .next() .upgradePolicy() .applicationHealthPolicy() .serviceTypeHealthPolicyMap() - .get("zdwvvbalxl") + .get("vuqeqvldspast") .maxPercentUnhealthyReplicasPerPartition()); Assertions.assertTrue(response.iterator().next().upgradePolicy().forceRestart()); Assertions.assertEquals(FailureAction.MANUAL, response.iterator().next().upgradePolicy().rollingUpgradeMonitoringPolicy().failureAction()); - Assertions.assertEquals("sjcswsmystuluqyp", + Assertions.assertEquals("apeewchpxlkt", response.iterator().next().upgradePolicy().rollingUpgradeMonitoringPolicy().healthCheckWaitDuration()); - Assertions.assertEquals("cvlerchpqbmfpjba", + Assertions.assertEquals("kuziycsle", response.iterator().next().upgradePolicy().rollingUpgradeMonitoringPolicy().healthCheckStableDuration()); - Assertions.assertEquals("widf", + Assertions.assertEquals("ufuztcktyhjtq", response.iterator().next().upgradePolicy().rollingUpgradeMonitoringPolicy().healthCheckRetryTimeout()); - Assertions.assertEquals("xsspuunnoxyhk", + Assertions.assertEquals("dcgzul", response.iterator().next().upgradePolicy().rollingUpgradeMonitoringPolicy().upgradeTimeout()); - Assertions.assertEquals("g", + Assertions.assertEquals("mmrqz", response.iterator().next().upgradePolicy().rollingUpgradeMonitoringPolicy().upgradeDomainTimeout()); - Assertions.assertEquals(9129720972817619539L, + Assertions.assertEquals(9007359622737683059L, response.iterator().next().upgradePolicy().instanceCloseDelayDuration()); Assertions.assertEquals(RollingUpgradeMode.MONITORED, response.iterator().next().upgradePolicy().upgradeMode()); - Assertions.assertEquals(5806792787635363155L, + Assertions.assertEquals(6630814331855742678L, response.iterator().next().upgradePolicy().upgradeReplicaSetCheckTimeout()); - Assertions.assertTrue(response.iterator().next().upgradePolicy().recreateApplication()); + Assertions.assertFalse(response.iterator().next().upgradePolicy().recreateApplication()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/AveragePartitionLoadScalingTriggerTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/AveragePartitionLoadScalingTriggerTests.java index f3df8302c566..1876ed8b94b9 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/AveragePartitionLoadScalingTriggerTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/AveragePartitionLoadScalingTriggerTests.java @@ -12,25 +12,25 @@ public final class AveragePartitionLoadScalingTriggerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AveragePartitionLoadScalingTrigger model = BinaryData.fromString( - "{\"kind\":\"AveragePartitionLoadTrigger\",\"metricName\":\"hfxobbcswsrtj\",\"lowerLoadThreshold\":92.76548731368051,\"upperLoadThreshold\":84.5100937659018,\"scaleInterval\":\"bpbewtghfgb\"}") + "{\"kind\":\"AveragePartitionLoadTrigger\",\"metricName\":\"sldnkwwtppjflcxo\",\"lowerLoadThreshold\":66.58158433453451,\"upperLoadThreshold\":52.26322581783733,\"scaleInterval\":\"nzmnsikvm\"}") .toObject(AveragePartitionLoadScalingTrigger.class); - Assertions.assertEquals("hfxobbcswsrtj", model.metricName()); - Assertions.assertEquals(92.76548731368051, model.lowerLoadThreshold()); - Assertions.assertEquals(84.5100937659018, model.upperLoadThreshold()); - Assertions.assertEquals("bpbewtghfgb", model.scaleInterval()); + Assertions.assertEquals("sldnkwwtppjflcxo", model.metricName()); + Assertions.assertEquals(66.58158433453451, model.lowerLoadThreshold()); + Assertions.assertEquals(52.26322581783733, model.upperLoadThreshold()); + Assertions.assertEquals("nzmnsikvm", model.scaleInterval()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AveragePartitionLoadScalingTrigger model - = new AveragePartitionLoadScalingTrigger().withMetricName("hfxobbcswsrtj") - .withLowerLoadThreshold(92.76548731368051) - .withUpperLoadThreshold(84.5100937659018) - .withScaleInterval("bpbewtghfgb"); + = new AveragePartitionLoadScalingTrigger().withMetricName("sldnkwwtppjflcxo") + .withLowerLoadThreshold(66.58158433453451) + .withUpperLoadThreshold(52.26322581783733) + .withScaleInterval("nzmnsikvm"); model = BinaryData.fromObject(model).toObject(AveragePartitionLoadScalingTrigger.class); - Assertions.assertEquals("hfxobbcswsrtj", model.metricName()); - Assertions.assertEquals(92.76548731368051, model.lowerLoadThreshold()); - Assertions.assertEquals(84.5100937659018, model.upperLoadThreshold()); - Assertions.assertEquals("bpbewtghfgb", model.scaleInterval()); + Assertions.assertEquals("sldnkwwtppjflcxo", model.metricName()); + Assertions.assertEquals(66.58158433453451, model.lowerLoadThreshold()); + Assertions.assertEquals(52.26322581783733, model.upperLoadThreshold()); + Assertions.assertEquals("nzmnsikvm", model.scaleInterval()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/AverageServiceLoadScalingTriggerTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/AverageServiceLoadScalingTriggerTests.java index 7793aa5345f2..b67f610d09f5 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/AverageServiceLoadScalingTriggerTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/AverageServiceLoadScalingTriggerTests.java @@ -12,27 +12,27 @@ public final class AverageServiceLoadScalingTriggerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AverageServiceLoadScalingTrigger model = BinaryData.fromString( - "{\"kind\":\"AverageServiceLoadTrigger\",\"metricName\":\"c\",\"lowerLoadThreshold\":65.33544191967107,\"upperLoadThreshold\":79.37105398505092,\"scaleInterval\":\"lvqhjkbegibtnmx\",\"useOnlyPrimaryLoad\":true}") + "{\"kind\":\"AverageServiceLoadTrigger\",\"metricName\":\"qzeqqkdltfzxm\",\"lowerLoadThreshold\":54.37658882164613,\"upperLoadThreshold\":25.287367109549173,\"scaleInterval\":\"ur\",\"useOnlyPrimaryLoad\":false}") .toObject(AverageServiceLoadScalingTrigger.class); - Assertions.assertEquals("c", model.metricName()); - Assertions.assertEquals(65.33544191967107, model.lowerLoadThreshold()); - Assertions.assertEquals(79.37105398505092, model.upperLoadThreshold()); - Assertions.assertEquals("lvqhjkbegibtnmx", model.scaleInterval()); - Assertions.assertTrue(model.useOnlyPrimaryLoad()); + Assertions.assertEquals("qzeqqkdltfzxm", model.metricName()); + Assertions.assertEquals(54.37658882164613, model.lowerLoadThreshold()); + Assertions.assertEquals(25.287367109549173, model.upperLoadThreshold()); + Assertions.assertEquals("ur", model.scaleInterval()); + Assertions.assertFalse(model.useOnlyPrimaryLoad()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AverageServiceLoadScalingTrigger model = new AverageServiceLoadScalingTrigger().withMetricName("c") - .withLowerLoadThreshold(65.33544191967107) - .withUpperLoadThreshold(79.37105398505092) - .withScaleInterval("lvqhjkbegibtnmx") - .withUseOnlyPrimaryLoad(true); + AverageServiceLoadScalingTrigger model = new AverageServiceLoadScalingTrigger().withMetricName("qzeqqkdltfzxm") + .withLowerLoadThreshold(54.37658882164613) + .withUpperLoadThreshold(25.287367109549173) + .withScaleInterval("ur") + .withUseOnlyPrimaryLoad(false); model = BinaryData.fromObject(model).toObject(AverageServiceLoadScalingTrigger.class); - Assertions.assertEquals("c", model.metricName()); - Assertions.assertEquals(65.33544191967107, model.lowerLoadThreshold()); - Assertions.assertEquals(79.37105398505092, model.upperLoadThreshold()); - Assertions.assertEquals("lvqhjkbegibtnmx", model.scaleInterval()); - Assertions.assertTrue(model.useOnlyPrimaryLoad()); + Assertions.assertEquals("qzeqqkdltfzxm", model.metricName()); + Assertions.assertEquals(54.37658882164613, model.lowerLoadThreshold()); + Assertions.assertEquals(25.287367109549173, model.upperLoadThreshold()); + Assertions.assertEquals("ur", model.scaleInterval()); + Assertions.assertFalse(model.useOnlyPrimaryLoad()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/AzureActiveDirectoryTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/AzureActiveDirectoryTests.java index 919990524542..ab878dc41035 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/AzureActiveDirectoryTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/AzureActiveDirectoryTests.java @@ -11,23 +11,22 @@ public final class AzureActiveDirectoryTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AzureActiveDirectory model = BinaryData - .fromString( - "{\"tenantId\":\"nmabik\",\"clusterApplication\":\"orgjhxbldt\",\"clientApplication\":\"wrlkdmtn\"}") + AzureActiveDirectory model = BinaryData.fromString( + "{\"tenantId\":\"qidbqfatpxllrxcy\",\"clusterApplication\":\"oadsuvar\",\"clientApplication\":\"wdmjsjqbjhhyx\"}") .toObject(AzureActiveDirectory.class); - Assertions.assertEquals("nmabik", model.tenantId()); - Assertions.assertEquals("orgjhxbldt", model.clusterApplication()); - Assertions.assertEquals("wrlkdmtn", model.clientApplication()); + Assertions.assertEquals("qidbqfatpxllrxcy", model.tenantId()); + Assertions.assertEquals("oadsuvar", model.clusterApplication()); + Assertions.assertEquals("wdmjsjqbjhhyx", model.clientApplication()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AzureActiveDirectory model = new AzureActiveDirectory().withTenantId("nmabik") - .withClusterApplication("orgjhxbldt") - .withClientApplication("wrlkdmtn"); + AzureActiveDirectory model = new AzureActiveDirectory().withTenantId("qidbqfatpxllrxcy") + .withClusterApplication("oadsuvar") + .withClientApplication("wdmjsjqbjhhyx"); model = BinaryData.fromObject(model).toObject(AzureActiveDirectory.class); - Assertions.assertEquals("nmabik", model.tenantId()); - Assertions.assertEquals("orgjhxbldt", model.clusterApplication()); - Assertions.assertEquals("wrlkdmtn", model.clientApplication()); + Assertions.assertEquals("qidbqfatpxllrxcy", model.tenantId()); + Assertions.assertEquals("oadsuvar", model.clusterApplication()); + Assertions.assertEquals("wdmjsjqbjhhyx", model.clientApplication()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ClientCertificateTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ClientCertificateTests.java index 5e2459137a37..40f6024e0abd 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ClientCertificateTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ClientCertificateTests.java @@ -11,25 +11,26 @@ public final class ClientCertificateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ClientCertificate model = BinaryData.fromString( - "{\"isAdmin\":true,\"thumbprint\":\"iizynkedyatrwyh\",\"commonName\":\"ibzyhwitsmyp\",\"issuerThumbprint\":\"npcdpumnzgm\"}") + ClientCertificate model = BinaryData + .fromString( + "{\"isAdmin\":true,\"thumbprint\":\"yf\",\"commonName\":\"dgqggebdu\",\"issuerThumbprint\":\"g\"}") .toObject(ClientCertificate.class); Assertions.assertTrue(model.isAdmin()); - Assertions.assertEquals("iizynkedyatrwyh", model.thumbprint()); - Assertions.assertEquals("ibzyhwitsmyp", model.commonName()); - Assertions.assertEquals("npcdpumnzgm", model.issuerThumbprint()); + Assertions.assertEquals("yf", model.thumbprint()); + Assertions.assertEquals("dgqggebdu", model.commonName()); + Assertions.assertEquals("g", model.issuerThumbprint()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ClientCertificate model = new ClientCertificate().withIsAdmin(true) - .withThumbprint("iizynkedyatrwyh") - .withCommonName("ibzyhwitsmyp") - .withIssuerThumbprint("npcdpumnzgm"); + .withThumbprint("yf") + .withCommonName("dgqggebdu") + .withIssuerThumbprint("g"); model = BinaryData.fromObject(model).toObject(ClientCertificate.class); Assertions.assertTrue(model.isAdmin()); - Assertions.assertEquals("iizynkedyatrwyh", model.thumbprint()); - Assertions.assertEquals("ibzyhwitsmyp", model.commonName()); - Assertions.assertEquals("npcdpumnzgm", model.issuerThumbprint()); + Assertions.assertEquals("yf", model.thumbprint()); + Assertions.assertEquals("dgqggebdu", model.commonName()); + Assertions.assertEquals("g", model.issuerThumbprint()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ClusterHealthPolicyTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ClusterHealthPolicyTests.java index 7656b46f2f58..150feffd6aa5 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ClusterHealthPolicyTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ClusterHealthPolicyTests.java @@ -12,18 +12,18 @@ public final class ClusterHealthPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ClusterHealthPolicy model = BinaryData - .fromString("{\"maxPercentUnhealthyNodes\":1789990861,\"maxPercentUnhealthyApplications\":155471033}") + .fromString("{\"maxPercentUnhealthyNodes\":726747953,\"maxPercentUnhealthyApplications\":576385447}") .toObject(ClusterHealthPolicy.class); - Assertions.assertEquals(1789990861, model.maxPercentUnhealthyNodes()); - Assertions.assertEquals(155471033, model.maxPercentUnhealthyApplications()); + Assertions.assertEquals(726747953, model.maxPercentUnhealthyNodes()); + Assertions.assertEquals(576385447, model.maxPercentUnhealthyApplications()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ClusterHealthPolicy model = new ClusterHealthPolicy().withMaxPercentUnhealthyNodes(1789990861) - .withMaxPercentUnhealthyApplications(155471033); + ClusterHealthPolicy model = new ClusterHealthPolicy().withMaxPercentUnhealthyNodes(726747953) + .withMaxPercentUnhealthyApplications(576385447); model = BinaryData.fromObject(model).toObject(ClusterHealthPolicy.class); - Assertions.assertEquals(1789990861, model.maxPercentUnhealthyNodes()); - Assertions.assertEquals(155471033, model.maxPercentUnhealthyApplications()); + Assertions.assertEquals(726747953, model.maxPercentUnhealthyNodes()); + Assertions.assertEquals(576385447, model.maxPercentUnhealthyApplications()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ClusterMonitoringPolicyTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ClusterMonitoringPolicyTests.java index e1e9dad3d79b..59565d9b0303 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ClusterMonitoringPolicyTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ClusterMonitoringPolicyTests.java @@ -12,27 +12,27 @@ public final class ClusterMonitoringPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ClusterMonitoringPolicy model = BinaryData.fromString( - "{\"healthCheckWaitDuration\":\"atklddxbjhwuaa\",\"healthCheckStableDuration\":\"oz\",\"healthCheckRetryTimeout\":\"osphyoul\",\"upgradeTimeout\":\"jrvxaglrv\",\"upgradeDomainTimeout\":\"mjwosytx\"}") + "{\"healthCheckWaitDuration\":\"uqlcvydy\",\"healthCheckStableDuration\":\"atdooaojkniod\",\"healthCheckRetryTimeout\":\"oo\",\"upgradeTimeout\":\"bw\",\"upgradeDomainTimeout\":\"ujhemmsbvdkcrodt\"}") .toObject(ClusterMonitoringPolicy.class); - Assertions.assertEquals("atklddxbjhwuaa", model.healthCheckWaitDuration()); - Assertions.assertEquals("oz", model.healthCheckStableDuration()); - Assertions.assertEquals("osphyoul", model.healthCheckRetryTimeout()); - Assertions.assertEquals("jrvxaglrv", model.upgradeTimeout()); - Assertions.assertEquals("mjwosytx", model.upgradeDomainTimeout()); + Assertions.assertEquals("uqlcvydy", model.healthCheckWaitDuration()); + Assertions.assertEquals("atdooaojkniod", model.healthCheckStableDuration()); + Assertions.assertEquals("oo", model.healthCheckRetryTimeout()); + Assertions.assertEquals("bw", model.upgradeTimeout()); + Assertions.assertEquals("ujhemmsbvdkcrodt", model.upgradeDomainTimeout()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ClusterMonitoringPolicy model = new ClusterMonitoringPolicy().withHealthCheckWaitDuration("atklddxbjhwuaa") - .withHealthCheckStableDuration("oz") - .withHealthCheckRetryTimeout("osphyoul") - .withUpgradeTimeout("jrvxaglrv") - .withUpgradeDomainTimeout("mjwosytx"); + ClusterMonitoringPolicy model = new ClusterMonitoringPolicy().withHealthCheckWaitDuration("uqlcvydy") + .withHealthCheckStableDuration("atdooaojkniod") + .withHealthCheckRetryTimeout("oo") + .withUpgradeTimeout("bw") + .withUpgradeDomainTimeout("ujhemmsbvdkcrodt"); model = BinaryData.fromObject(model).toObject(ClusterMonitoringPolicy.class); - Assertions.assertEquals("atklddxbjhwuaa", model.healthCheckWaitDuration()); - Assertions.assertEquals("oz", model.healthCheckStableDuration()); - Assertions.assertEquals("osphyoul", model.healthCheckRetryTimeout()); - Assertions.assertEquals("jrvxaglrv", model.upgradeTimeout()); - Assertions.assertEquals("mjwosytx", model.upgradeDomainTimeout()); + Assertions.assertEquals("uqlcvydy", model.healthCheckWaitDuration()); + Assertions.assertEquals("atdooaojkniod", model.healthCheckStableDuration()); + Assertions.assertEquals("oo", model.healthCheckRetryTimeout()); + Assertions.assertEquals("bw", model.upgradeTimeout()); + Assertions.assertEquals("ujhemmsbvdkcrodt", model.upgradeDomainTimeout()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ClusterUpgradeDeltaHealthPolicyTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ClusterUpgradeDeltaHealthPolicyTests.java index 33a1b74c045a..208f438ca3ce 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ClusterUpgradeDeltaHealthPolicyTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ClusterUpgradeDeltaHealthPolicyTests.java @@ -12,22 +12,22 @@ public final class ClusterUpgradeDeltaHealthPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ClusterUpgradeDeltaHealthPolicy model = BinaryData.fromString( - "{\"maxPercentDeltaUnhealthyNodes\":730394428,\"maxPercentUpgradeDomainDeltaUnhealthyNodes\":1632471353,\"maxPercentDeltaUnhealthyApplications\":1449386799}") + "{\"maxPercentDeltaUnhealthyNodes\":1464984840,\"maxPercentUpgradeDomainDeltaUnhealthyNodes\":866904084,\"maxPercentDeltaUnhealthyApplications\":966805028}") .toObject(ClusterUpgradeDeltaHealthPolicy.class); - Assertions.assertEquals(730394428, model.maxPercentDeltaUnhealthyNodes()); - Assertions.assertEquals(1632471353, model.maxPercentUpgradeDomainDeltaUnhealthyNodes()); - Assertions.assertEquals(1449386799, model.maxPercentDeltaUnhealthyApplications()); + Assertions.assertEquals(1464984840, model.maxPercentDeltaUnhealthyNodes()); + Assertions.assertEquals(866904084, model.maxPercentUpgradeDomainDeltaUnhealthyNodes()); + Assertions.assertEquals(966805028, model.maxPercentDeltaUnhealthyApplications()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ClusterUpgradeDeltaHealthPolicy model - = new ClusterUpgradeDeltaHealthPolicy().withMaxPercentDeltaUnhealthyNodes(730394428) - .withMaxPercentUpgradeDomainDeltaUnhealthyNodes(1632471353) - .withMaxPercentDeltaUnhealthyApplications(1449386799); + = new ClusterUpgradeDeltaHealthPolicy().withMaxPercentDeltaUnhealthyNodes(1464984840) + .withMaxPercentUpgradeDomainDeltaUnhealthyNodes(866904084) + .withMaxPercentDeltaUnhealthyApplications(966805028); model = BinaryData.fromObject(model).toObject(ClusterUpgradeDeltaHealthPolicy.class); - Assertions.assertEquals(730394428, model.maxPercentDeltaUnhealthyNodes()); - Assertions.assertEquals(1632471353, model.maxPercentUpgradeDomainDeltaUnhealthyNodes()); - Assertions.assertEquals(1449386799, model.maxPercentDeltaUnhealthyApplications()); + Assertions.assertEquals(1464984840, model.maxPercentDeltaUnhealthyNodes()); + Assertions.assertEquals(866904084, model.maxPercentUpgradeDomainDeltaUnhealthyNodes()); + Assertions.assertEquals(966805028, model.maxPercentDeltaUnhealthyApplications()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ClusterUpgradePolicyTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ClusterUpgradePolicyTests.java index 52c59ba97869..86c925ce09d3 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ClusterUpgradePolicyTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ClusterUpgradePolicyTests.java @@ -15,48 +15,48 @@ public final class ClusterUpgradePolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ClusterUpgradePolicy model = BinaryData.fromString( - "{\"forceRestart\":false,\"healthPolicy\":{\"maxPercentUnhealthyNodes\":1947559864,\"maxPercentUnhealthyApplications\":2088277848},\"deltaHealthPolicy\":{\"maxPercentDeltaUnhealthyNodes\":101100234,\"maxPercentUpgradeDomainDeltaUnhealthyNodes\":972343553,\"maxPercentDeltaUnhealthyApplications\":636112442},\"monitoringPolicy\":{\"healthCheckWaitDuration\":\"gwimfn\",\"healthCheckStableDuration\":\"hfjx\",\"healthCheckRetryTimeout\":\"mszkkfo\",\"upgradeTimeout\":\"rey\",\"upgradeDomainTimeout\":\"kzikfjawneaivxwc\"},\"upgradeReplicaSetCheckTimeout\":\"lpcirelsf\"}") + "{\"forceRestart\":true,\"healthPolicy\":{\"maxPercentUnhealthyNodes\":1682881109,\"maxPercentUnhealthyApplications\":207967373},\"deltaHealthPolicy\":{\"maxPercentDeltaUnhealthyNodes\":2025880638,\"maxPercentUpgradeDomainDeltaUnhealthyNodes\":2135802257,\"maxPercentDeltaUnhealthyApplications\":1817909710},\"monitoringPolicy\":{\"healthCheckWaitDuration\":\"xtrthz\",\"healthCheckStableDuration\":\"aytdwkqbrq\",\"healthCheckRetryTimeout\":\"bpaxhexiilivpdt\",\"upgradeTimeout\":\"irqtdqoa\",\"upgradeDomainTimeout\":\"oruzfgsquyfxrxx\"},\"upgradeReplicaSetCheckTimeout\":\"ptramxj\"}") .toObject(ClusterUpgradePolicy.class); - Assertions.assertFalse(model.forceRestart()); - Assertions.assertEquals(1947559864, model.healthPolicy().maxPercentUnhealthyNodes()); - Assertions.assertEquals(2088277848, model.healthPolicy().maxPercentUnhealthyApplications()); - Assertions.assertEquals(101100234, model.deltaHealthPolicy().maxPercentDeltaUnhealthyNodes()); - Assertions.assertEquals(972343553, model.deltaHealthPolicy().maxPercentUpgradeDomainDeltaUnhealthyNodes()); - Assertions.assertEquals(636112442, model.deltaHealthPolicy().maxPercentDeltaUnhealthyApplications()); - Assertions.assertEquals("gwimfn", model.monitoringPolicy().healthCheckWaitDuration()); - Assertions.assertEquals("hfjx", model.monitoringPolicy().healthCheckStableDuration()); - Assertions.assertEquals("mszkkfo", model.monitoringPolicy().healthCheckRetryTimeout()); - Assertions.assertEquals("rey", model.monitoringPolicy().upgradeTimeout()); - Assertions.assertEquals("kzikfjawneaivxwc", model.monitoringPolicy().upgradeDomainTimeout()); - Assertions.assertEquals("lpcirelsf", model.upgradeReplicaSetCheckTimeout()); + Assertions.assertTrue(model.forceRestart()); + Assertions.assertEquals(1682881109, model.healthPolicy().maxPercentUnhealthyNodes()); + Assertions.assertEquals(207967373, model.healthPolicy().maxPercentUnhealthyApplications()); + Assertions.assertEquals(2025880638, model.deltaHealthPolicy().maxPercentDeltaUnhealthyNodes()); + Assertions.assertEquals(2135802257, model.deltaHealthPolicy().maxPercentUpgradeDomainDeltaUnhealthyNodes()); + Assertions.assertEquals(1817909710, model.deltaHealthPolicy().maxPercentDeltaUnhealthyApplications()); + Assertions.assertEquals("xtrthz", model.monitoringPolicy().healthCheckWaitDuration()); + Assertions.assertEquals("aytdwkqbrq", model.monitoringPolicy().healthCheckStableDuration()); + Assertions.assertEquals("bpaxhexiilivpdt", model.monitoringPolicy().healthCheckRetryTimeout()); + Assertions.assertEquals("irqtdqoa", model.monitoringPolicy().upgradeTimeout()); + Assertions.assertEquals("oruzfgsquyfxrxx", model.monitoringPolicy().upgradeDomainTimeout()); + Assertions.assertEquals("ptramxj", model.upgradeReplicaSetCheckTimeout()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ClusterUpgradePolicy model = new ClusterUpgradePolicy().withForceRestart(false) - .withHealthPolicy(new ClusterHealthPolicy().withMaxPercentUnhealthyNodes(1947559864) - .withMaxPercentUnhealthyApplications(2088277848)) - .withDeltaHealthPolicy(new ClusterUpgradeDeltaHealthPolicy().withMaxPercentDeltaUnhealthyNodes(101100234) - .withMaxPercentUpgradeDomainDeltaUnhealthyNodes(972343553) - .withMaxPercentDeltaUnhealthyApplications(636112442)) - .withMonitoringPolicy(new ClusterMonitoringPolicy().withHealthCheckWaitDuration("gwimfn") - .withHealthCheckStableDuration("hfjx") - .withHealthCheckRetryTimeout("mszkkfo") - .withUpgradeTimeout("rey") - .withUpgradeDomainTimeout("kzikfjawneaivxwc")) - .withUpgradeReplicaSetCheckTimeout("lpcirelsf"); + ClusterUpgradePolicy model = new ClusterUpgradePolicy().withForceRestart(true) + .withHealthPolicy(new ClusterHealthPolicy().withMaxPercentUnhealthyNodes(1682881109) + .withMaxPercentUnhealthyApplications(207967373)) + .withDeltaHealthPolicy(new ClusterUpgradeDeltaHealthPolicy().withMaxPercentDeltaUnhealthyNodes(2025880638) + .withMaxPercentUpgradeDomainDeltaUnhealthyNodes(2135802257) + .withMaxPercentDeltaUnhealthyApplications(1817909710)) + .withMonitoringPolicy(new ClusterMonitoringPolicy().withHealthCheckWaitDuration("xtrthz") + .withHealthCheckStableDuration("aytdwkqbrq") + .withHealthCheckRetryTimeout("bpaxhexiilivpdt") + .withUpgradeTimeout("irqtdqoa") + .withUpgradeDomainTimeout("oruzfgsquyfxrxx")) + .withUpgradeReplicaSetCheckTimeout("ptramxj"); model = BinaryData.fromObject(model).toObject(ClusterUpgradePolicy.class); - Assertions.assertFalse(model.forceRestart()); - Assertions.assertEquals(1947559864, model.healthPolicy().maxPercentUnhealthyNodes()); - Assertions.assertEquals(2088277848, model.healthPolicy().maxPercentUnhealthyApplications()); - Assertions.assertEquals(101100234, model.deltaHealthPolicy().maxPercentDeltaUnhealthyNodes()); - Assertions.assertEquals(972343553, model.deltaHealthPolicy().maxPercentUpgradeDomainDeltaUnhealthyNodes()); - Assertions.assertEquals(636112442, model.deltaHealthPolicy().maxPercentDeltaUnhealthyApplications()); - Assertions.assertEquals("gwimfn", model.monitoringPolicy().healthCheckWaitDuration()); - Assertions.assertEquals("hfjx", model.monitoringPolicy().healthCheckStableDuration()); - Assertions.assertEquals("mszkkfo", model.monitoringPolicy().healthCheckRetryTimeout()); - Assertions.assertEquals("rey", model.monitoringPolicy().upgradeTimeout()); - Assertions.assertEquals("kzikfjawneaivxwc", model.monitoringPolicy().upgradeDomainTimeout()); - Assertions.assertEquals("lpcirelsf", model.upgradeReplicaSetCheckTimeout()); + Assertions.assertTrue(model.forceRestart()); + Assertions.assertEquals(1682881109, model.healthPolicy().maxPercentUnhealthyNodes()); + Assertions.assertEquals(207967373, model.healthPolicy().maxPercentUnhealthyApplications()); + Assertions.assertEquals(2025880638, model.deltaHealthPolicy().maxPercentDeltaUnhealthyNodes()); + Assertions.assertEquals(2135802257, model.deltaHealthPolicy().maxPercentUpgradeDomainDeltaUnhealthyNodes()); + Assertions.assertEquals(1817909710, model.deltaHealthPolicy().maxPercentDeltaUnhealthyApplications()); + Assertions.assertEquals("xtrthz", model.monitoringPolicy().healthCheckWaitDuration()); + Assertions.assertEquals("aytdwkqbrq", model.monitoringPolicy().healthCheckStableDuration()); + Assertions.assertEquals("bpaxhexiilivpdt", model.monitoringPolicy().healthCheckRetryTimeout()); + Assertions.assertEquals("irqtdqoa", model.monitoringPolicy().upgradeTimeout()); + Assertions.assertEquals("oruzfgsquyfxrxx", model.monitoringPolicy().upgradeDomainTimeout()); + Assertions.assertEquals("ptramxj", model.upgradeReplicaSetCheckTimeout()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/EndpointRangeDescriptionTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/EndpointRangeDescriptionTests.java index 1d65e5c647c6..c1ab1019a891 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/EndpointRangeDescriptionTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/EndpointRangeDescriptionTests.java @@ -11,17 +11,18 @@ public final class EndpointRangeDescriptionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - EndpointRangeDescription model = BinaryData.fromString("{\"startPort\":988966310,\"endPort\":485732763}") + EndpointRangeDescription model = BinaryData.fromString("{\"startPort\":1437302517,\"endPort\":2035857816}") .toObject(EndpointRangeDescription.class); - Assertions.assertEquals(988966310, model.startPort()); - Assertions.assertEquals(485732763, model.endPort()); + Assertions.assertEquals(1437302517, model.startPort()); + Assertions.assertEquals(2035857816, model.endPort()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - EndpointRangeDescription model = new EndpointRangeDescription().withStartPort(988966310).withEndPort(485732763); + EndpointRangeDescription model + = new EndpointRangeDescription().withStartPort(1437302517).withEndPort(2035857816); model = BinaryData.fromObject(model).toObject(EndpointRangeDescription.class); - Assertions.assertEquals(988966310, model.startPort()); - Assertions.assertEquals(485732763, model.endPort()); + Assertions.assertEquals(1437302517, model.startPort()); + Assertions.assertEquals(2035857816, model.endPort()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationConstraintsTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationConstraintsTests.java index 8b7dcbcdf198..211cf70bb66b 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationConstraintsTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationConstraintsTests.java @@ -12,16 +12,16 @@ public final class FaultSimulationConstraintsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - FaultSimulationConstraints model = BinaryData.fromString("{\"expirationTime\":\"2021-11-21T09:22:46Z\"}") + FaultSimulationConstraints model = BinaryData.fromString("{\"expirationTime\":\"2021-08-26T13:15:20Z\"}") .toObject(FaultSimulationConstraints.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-21T09:22:46Z"), model.expirationTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-26T13:15:20Z"), model.expirationTime()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { FaultSimulationConstraints model - = new FaultSimulationConstraints().withExpirationTime(OffsetDateTime.parse("2021-11-21T09:22:46Z")); + = new FaultSimulationConstraints().withExpirationTime(OffsetDateTime.parse("2021-08-26T13:15:20Z")); model = BinaryData.fromObject(model).toObject(FaultSimulationConstraints.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-21T09:22:46Z"), model.expirationTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-26T13:15:20Z"), model.expirationTime()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationContentTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationContentTests.java index f8e363e8d98e..58305196fedd 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationContentTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationContentTests.java @@ -14,19 +14,19 @@ public final class FaultSimulationContentTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FaultSimulationContent model = BinaryData.fromString( - "{\"faultKind\":\"FaultSimulationContent\",\"force\":true,\"constraints\":{\"expirationTime\":\"2021-06-09T08:03:32Z\"}}") + "{\"faultKind\":\"FaultSimulationContent\",\"force\":true,\"constraints\":{\"expirationTime\":\"2021-12-03T02:45:56Z\"}}") .toObject(FaultSimulationContent.class); Assertions.assertTrue(model.force()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-09T08:03:32Z"), model.constraints().expirationTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-12-03T02:45:56Z"), model.constraints().expirationTime()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { FaultSimulationContent model = new FaultSimulationContent().withForce(true) .withConstraints( - new FaultSimulationConstraints().withExpirationTime(OffsetDateTime.parse("2021-06-09T08:03:32Z"))); + new FaultSimulationConstraints().withExpirationTime(OffsetDateTime.parse("2021-12-03T02:45:56Z"))); model = BinaryData.fromObject(model).toObject(FaultSimulationContent.class); Assertions.assertTrue(model.force()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-09T08:03:32Z"), model.constraints().expirationTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-12-03T02:45:56Z"), model.constraints().expirationTime()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationContentWrapperTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationContentWrapperTests.java index 6cade38cf395..695b02bba346 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationContentWrapperTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationContentWrapperTests.java @@ -15,22 +15,22 @@ public final class FaultSimulationContentWrapperTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FaultSimulationContentWrapper model = BinaryData.fromString( - "{\"parameters\":{\"faultKind\":\"FaultSimulationContent\",\"force\":false,\"constraints\":{\"expirationTime\":\"2021-03-04T19:19:07Z\"}}}") + "{\"parameters\":{\"faultKind\":\"FaultSimulationContent\",\"force\":true,\"constraints\":{\"expirationTime\":\"2021-08-04T06:20:25Z\"}}}") .toObject(FaultSimulationContentWrapper.class); - Assertions.assertFalse(model.parameters().force()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-04T19:19:07Z"), + Assertions.assertTrue(model.parameters().force()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-04T06:20:25Z"), model.parameters().constraints().expirationTime()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { FaultSimulationContentWrapper model - = new FaultSimulationContentWrapper().withParameters(new FaultSimulationContent().withForce(false) + = new FaultSimulationContentWrapper().withParameters(new FaultSimulationContent().withForce(true) .withConstraints( - new FaultSimulationConstraints().withExpirationTime(OffsetDateTime.parse("2021-03-04T19:19:07Z")))); + new FaultSimulationConstraints().withExpirationTime(OffsetDateTime.parse("2021-08-04T06:20:25Z")))); model = BinaryData.fromObject(model).toObject(FaultSimulationContentWrapper.class); - Assertions.assertFalse(model.parameters().force()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-04T19:19:07Z"), + Assertions.assertTrue(model.parameters().force()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-04T06:20:25Z"), model.parameters().constraints().expirationTime()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationDetailsTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationDetailsTests.java index ae81bd80ee76..f830d45a4785 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationDetailsTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationDetailsTests.java @@ -15,16 +15,16 @@ public final class FaultSimulationDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FaultSimulationDetails model = BinaryData.fromString( - "{\"clusterId\":\"thzvaytdwkqbrqu\",\"operationId\":\"axhexiilivp\",\"nodeTypeFaultSimulation\":[{\"nodeTypeName\":\"r\",\"status\":\"Done\",\"operationId\":\"oaxoruzfgsqu\",\"operationStatus\":\"Started\"},{\"nodeTypeName\":\"xxle\",\"status\":\"Done\",\"operationId\":\"mxjezwlw\",\"operationStatus\":\"Succeeded\"}],\"parameters\":{\"faultKind\":\"FaultSimulationContent\",\"force\":false,\"constraints\":{\"expirationTime\":\"2021-10-02T16:07:13Z\"}}}") + "{\"clusterId\":\"wabm\",\"operationId\":\"efkifr\",\"nodeTypeFaultSimulation\":[{\"nodeTypeName\":\"qujmqlgkf\",\"status\":\"StopFailed\",\"operationId\":\"oaongbjc\",\"operationStatus\":\"Failed\"},{\"nodeTypeName\":\"i\",\"status\":\"Stopping\",\"operationId\":\"df\",\"operationStatus\":\"Created\"},{\"nodeTypeName\":\"ezkojvdcp\",\"status\":\"Active\",\"operationId\":\"ouicybxarzgszu\",\"operationStatus\":\"Created\"},{\"nodeTypeName\":\"iqopidoamciod\",\"status\":\"Starting\",\"operationId\":\"zxkhnzbonlwnto\",\"operationStatus\":\"Aborted\"}],\"parameters\":{\"faultKind\":\"FaultSimulationContent\",\"force\":false,\"constraints\":{\"expirationTime\":\"2021-09-24T01:53:24Z\"}}}") .toObject(FaultSimulationDetails.class); - Assertions.assertEquals("thzvaytdwkqbrqu", model.clusterId()); - Assertions.assertEquals("axhexiilivp", model.operationId()); - Assertions.assertEquals("r", model.nodeTypeFaultSimulation().get(0).nodeTypeName()); - Assertions.assertEquals(FaultSimulationStatus.DONE, model.nodeTypeFaultSimulation().get(0).status()); - Assertions.assertEquals("oaxoruzfgsqu", model.nodeTypeFaultSimulation().get(0).operationId()); - Assertions.assertEquals(SfmcOperationStatus.STARTED, model.nodeTypeFaultSimulation().get(0).operationStatus()); + Assertions.assertEquals("wabm", model.clusterId()); + Assertions.assertEquals("efkifr", model.operationId()); + Assertions.assertEquals("qujmqlgkf", model.nodeTypeFaultSimulation().get(0).nodeTypeName()); + Assertions.assertEquals(FaultSimulationStatus.STOP_FAILED, model.nodeTypeFaultSimulation().get(0).status()); + Assertions.assertEquals("oaongbjc", model.nodeTypeFaultSimulation().get(0).operationId()); + Assertions.assertEquals(SfmcOperationStatus.FAILED, model.nodeTypeFaultSimulation().get(0).operationStatus()); Assertions.assertFalse(model.parameters().force()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-02T16:07:13Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-09-24T01:53:24Z"), model.parameters().constraints().expirationTime()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationIdContentTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationIdContentTests.java index 043d065d31f7..03657107ddfa 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationIdContentTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationIdContentTests.java @@ -12,14 +12,14 @@ public final class FaultSimulationIdContentTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FaultSimulationIdContent model - = BinaryData.fromString("{\"simulationId\":\"dgssofwqmzqal\"}").toObject(FaultSimulationIdContent.class); - Assertions.assertEquals("dgssofwqmzqal", model.simulationId()); + = BinaryData.fromString("{\"simulationId\":\"yhmlwpaztzp\"}").toObject(FaultSimulationIdContent.class); + Assertions.assertEquals("yhmlwpaztzp", model.simulationId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - FaultSimulationIdContent model = new FaultSimulationIdContent().withSimulationId("dgssofwqmzqal"); + FaultSimulationIdContent model = new FaultSimulationIdContent().withSimulationId("yhmlwpaztzp"); model = BinaryData.fromObject(model).toObject(FaultSimulationIdContent.class); - Assertions.assertEquals("dgssofwqmzqal", model.simulationId()); + Assertions.assertEquals("yhmlwpaztzp", model.simulationId()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationInnerTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationInnerTests.java index fe208875607b..96c61a7b632a 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationInnerTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationInnerTests.java @@ -15,22 +15,21 @@ public final class FaultSimulationInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FaultSimulationInner model = BinaryData.fromString( - "{\"simulationId\":\"mnjijpxacqqudf\",\"status\":\"Active\",\"startTime\":\"2021-06-13T18:20:41Z\",\"endTime\":\"2021-01-28T01:39:16Z\",\"details\":{\"clusterId\":\"jyvayffimrzrtuz\",\"operationId\":\"gsexne\",\"nodeTypeFaultSimulation\":[{\"nodeTypeName\":\"wnwmewzs\",\"status\":\"Starting\",\"operationId\":\"uzsoi\",\"operationStatus\":\"Failed\"}],\"parameters\":{\"faultKind\":\"FaultSimulationContent\",\"force\":true,\"constraints\":{\"expirationTime\":\"2021-08-16T07:42:29Z\"}}}}") + "{\"simulationId\":\"ncckw\",\"status\":\"Active\",\"startTime\":\"2021-06-29T06:08:24Z\",\"endTime\":\"2021-07-28T19:48:05Z\",\"details\":{\"clusterId\":\"uyqaxzfeqztppr\",\"operationId\":\"lxorjaltolmncws\",\"nodeTypeFaultSimulation\":[{\"nodeTypeName\":\"csdbnwdcfhuc\",\"status\":\"Done\",\"operationId\":\"uvglsbjjcanvx\",\"operationStatus\":\"Canceled\"},{\"nodeTypeName\":\"udutnco\",\"status\":\"Stopping\",\"operationId\":\"xqtvcofu\",\"operationStatus\":\"Started\"},{\"nodeTypeName\":\"kgjubgdknnqvsazn\",\"status\":\"Active\",\"operationId\":\"rudsg\",\"operationStatus\":\"Aborted\"},{\"nodeTypeName\":\"kycgrauwj\",\"status\":\"Starting\",\"operationId\":\"eburu\",\"operationStatus\":\"Canceled\"}],\"parameters\":{\"faultKind\":\"FaultSimulationContent\",\"force\":false,\"constraints\":{\"expirationTime\":\"2021-06-02T15:45:41Z\"}}}}") .toObject(FaultSimulationInner.class); - Assertions.assertEquals("mnjijpxacqqudf", model.simulationId()); + Assertions.assertEquals("ncckw", model.simulationId()); Assertions.assertEquals(FaultSimulationStatus.ACTIVE, model.status()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-13T18:20:41Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-28T01:39:16Z"), model.endTime()); - Assertions.assertEquals("jyvayffimrzrtuz", model.details().clusterId()); - Assertions.assertEquals("gsexne", model.details().operationId()); - Assertions.assertEquals("wnwmewzs", model.details().nodeTypeFaultSimulation().get(0).nodeTypeName()); - Assertions.assertEquals(FaultSimulationStatus.STARTING, - model.details().nodeTypeFaultSimulation().get(0).status()); - Assertions.assertEquals("uzsoi", model.details().nodeTypeFaultSimulation().get(0).operationId()); - Assertions.assertEquals(SfmcOperationStatus.FAILED, + Assertions.assertEquals(OffsetDateTime.parse("2021-06-29T06:08:24Z"), model.startTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-28T19:48:05Z"), model.endTime()); + Assertions.assertEquals("uyqaxzfeqztppr", model.details().clusterId()); + Assertions.assertEquals("lxorjaltolmncws", model.details().operationId()); + Assertions.assertEquals("csdbnwdcfhuc", model.details().nodeTypeFaultSimulation().get(0).nodeTypeName()); + Assertions.assertEquals(FaultSimulationStatus.DONE, model.details().nodeTypeFaultSimulation().get(0).status()); + Assertions.assertEquals("uvglsbjjcanvx", model.details().nodeTypeFaultSimulation().get(0).operationId()); + Assertions.assertEquals(SfmcOperationStatus.CANCELED, model.details().nodeTypeFaultSimulation().get(0).operationStatus()); - Assertions.assertTrue(model.details().parameters().force()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-16T07:42:29Z"), + Assertions.assertFalse(model.details().parameters().force()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-02T15:45:41Z"), model.details().parameters().constraints().expirationTime()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationListResultTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationListResultTests.java index b45334bbd7e2..71f177d1915d 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationListResultTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FaultSimulationListResultTests.java @@ -15,23 +15,25 @@ public final class FaultSimulationListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FaultSimulationListResult model = BinaryData.fromString( - "{\"value\":[{\"simulationId\":\"pulpqblylsyxk\",\"status\":\"StopFailed\",\"startTime\":\"2021-09-15T07:03:18Z\",\"endTime\":\"2021-04-06T04:34:54Z\",\"details\":{\"clusterId\":\"iagxsdszuempsbz\",\"operationId\":\"z\",\"nodeTypeFaultSimulation\":[{\"nodeTypeName\":\"pnqi\",\"status\":\"Active\",\"operationId\":\"v\",\"operationStatus\":\"Failed\"},{\"nodeTypeName\":\"dxrbuukzcle\",\"status\":\"StartFailed\",\"operationId\":\"lw\",\"operationStatus\":\"Succeeded\"},{\"nodeTypeName\":\"zpof\",\"status\":\"Stopping\",\"operationId\":\"wyfzqwhxxbuyqa\",\"operationStatus\":\"Started\"},{\"nodeTypeName\":\"qztpp\",\"status\":\"Stopping\",\"operationId\":\"xorjaltolmncwsob\",\"operationStatus\":\"Created\"}],\"parameters\":{\"faultKind\":\"FaultSimulationContent\",\"force\":false,\"constraints\":{\"expirationTime\":\"2021-09-05T19:42:48Z\"}}}},{\"simulationId\":\"fhucqdpfuv\",\"status\":\"Done\",\"startTime\":\"2021-09-06T08:21:41Z\",\"endTime\":\"2021-05-13T14:00:03Z\",\"details\":{\"clusterId\":\"vxb\",\"operationId\":\"vudutncor\",\"nodeTypeFaultSimulation\":[{\"nodeTypeName\":\"qtvcofudflvkgj\",\"status\":\"Done\",\"operationId\":\"knnqvsaznq\",\"operationStatus\":\"Failed\"},{\"nodeTypeName\":\"udsgs\",\"status\":\"Done\",\"operationId\":\"yc\",\"operationStatus\":\"Started\"},{\"nodeTypeName\":\"wjue\",\"status\":\"StartFailed\",\"operationId\":\"uruv\",\"operationStatus\":\"Aborted\"}],\"parameters\":{\"faultKind\":\"FaultSimulationContent\",\"force\":false,\"constraints\":{\"expirationTime\":\"2020-12-25T04:12:31Z\"}}}}],\"nextLink\":\"ab\"}") + "{\"value\":[{\"simulationId\":\"wyznkbyku\",\"status\":\"StartFailed\",\"startTime\":\"2021-12-03T17:47:47Z\",\"endTime\":\"2021-10-22T08:31:17Z\",\"details\":{\"clusterId\":\"hrskdsnfd\",\"operationId\":\"oakgtdlmkkzev\",\"nodeTypeFaultSimulation\":[{\"nodeTypeName\":\"wpusdsttwvogv\",\"status\":\"Done\",\"operationId\":\"dcngqqmoakufgmj\",\"operationStatus\":\"Canceled\"},{\"nodeTypeName\":\"dgrtwaenuuzkopbm\",\"status\":\"Active\",\"operationId\":\"dwoyuhhziuiefoz\",\"operationStatus\":\"Started\"},{\"nodeTypeName\":\"smlmzqhoftrm\",\"status\":\"Starting\",\"operationId\":\"iahxicsl\",\"operationStatus\":\"Succeeded\"}],\"parameters\":{\"faultKind\":\"FaultSimulationContent\",\"force\":true,\"constraints\":{\"expirationTime\":\"2021-04-23T06:55:46Z\"}}}},{\"simulationId\":\"halns\",\"status\":\"Done\",\"startTime\":\"2021-07-18T12:17:06Z\",\"endTime\":\"2021-10-17T19:05:13Z\",\"details\":{\"clusterId\":\"ivwitqscywugg\",\"operationId\":\"luhczbw\",\"nodeTypeFaultSimulation\":[{\"nodeTypeName\":\"i\",\"status\":\"Starting\",\"operationId\":\"gzd\",\"operationStatus\":\"Succeeded\"},{\"nodeTypeName\":\"eypqwdxggicccn\",\"status\":\"Starting\",\"operationId\":\"exmk\",\"operationStatus\":\"Failed\"},{\"nodeTypeName\":\"tvlz\",\"status\":\"Starting\",\"operationId\":\"hz\",\"operationStatus\":\"Started\"},{\"nodeTypeName\":\"dtclusiypb\",\"status\":\"Done\",\"operationId\":\"tg\",\"operationStatus\":\"Created\"}],\"parameters\":{\"faultKind\":\"FaultSimulationContent\",\"force\":false,\"constraints\":{\"expirationTime\":\"2021-06-12T00:27:16Z\"}}}}],\"nextLink\":\"qukyhejhzi\"}") .toObject(FaultSimulationListResult.class); - Assertions.assertEquals("pulpqblylsyxk", model.value().get(0).simulationId()); - Assertions.assertEquals(FaultSimulationStatus.STOP_FAILED, model.value().get(0).status()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-15T07:03:18Z"), model.value().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-06T04:34:54Z"), model.value().get(0).endTime()); - Assertions.assertEquals("iagxsdszuempsbz", model.value().get(0).details().clusterId()); - Assertions.assertEquals("z", model.value().get(0).details().operationId()); - Assertions.assertEquals("pnqi", model.value().get(0).details().nodeTypeFaultSimulation().get(0).nodeTypeName()); - Assertions.assertEquals(FaultSimulationStatus.ACTIVE, + Assertions.assertEquals("wyznkbyku", model.value().get(0).simulationId()); + Assertions.assertEquals(FaultSimulationStatus.START_FAILED, model.value().get(0).status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-12-03T17:47:47Z"), model.value().get(0).startTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-22T08:31:17Z"), model.value().get(0).endTime()); + Assertions.assertEquals("hrskdsnfd", model.value().get(0).details().clusterId()); + Assertions.assertEquals("oakgtdlmkkzev", model.value().get(0).details().operationId()); + Assertions.assertEquals("wpusdsttwvogv", + model.value().get(0).details().nodeTypeFaultSimulation().get(0).nodeTypeName()); + Assertions.assertEquals(FaultSimulationStatus.DONE, model.value().get(0).details().nodeTypeFaultSimulation().get(0).status()); - Assertions.assertEquals("v", model.value().get(0).details().nodeTypeFaultSimulation().get(0).operationId()); - Assertions.assertEquals(SfmcOperationStatus.FAILED, + Assertions.assertEquals("dcngqqmoakufgmj", + model.value().get(0).details().nodeTypeFaultSimulation().get(0).operationId()); + Assertions.assertEquals(SfmcOperationStatus.CANCELED, model.value().get(0).details().nodeTypeFaultSimulation().get(0).operationStatus()); - Assertions.assertFalse(model.value().get(0).details().parameters().force()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-05T19:42:48Z"), + Assertions.assertTrue(model.value().get(0).details().parameters().force()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-23T06:55:46Z"), model.value().get(0).details().parameters().constraints().expirationTime()); - Assertions.assertEquals("ab", model.nextLink()); + Assertions.assertEquals("qukyhejhzi", model.nextLink()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FrontendConfigurationTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FrontendConfigurationTests.java index b9172dbbdfc3..68f15dd01dd1 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FrontendConfigurationTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/FrontendConfigurationTests.java @@ -13,24 +13,24 @@ public final class FrontendConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FrontendConfiguration model = BinaryData.fromString( - "{\"ipAddressType\":\"IPv4\",\"loadBalancerBackendAddressPoolId\":\"irryuzhlh\",\"loadBalancerInboundNatPoolId\":\"oqrvqqaatjin\",\"applicationGatewayBackendAddressPoolId\":\"goupmfiibfg\"}") + "{\"ipAddressType\":\"IPv6\",\"loadBalancerBackendAddressPoolId\":\"coolsttpkiwkkb\",\"loadBalancerInboundNatPoolId\":\"jrywvtylbfpnc\",\"applicationGatewayBackendAddressPoolId\":\"doiwi\"}") .toObject(FrontendConfiguration.class); - Assertions.assertEquals(IpAddressType.IPV4, model.ipAddressType()); - Assertions.assertEquals("irryuzhlh", model.loadBalancerBackendAddressPoolId()); - Assertions.assertEquals("oqrvqqaatjin", model.loadBalancerInboundNatPoolId()); - Assertions.assertEquals("goupmfiibfg", model.applicationGatewayBackendAddressPoolId()); + Assertions.assertEquals(IpAddressType.IPV6, model.ipAddressType()); + Assertions.assertEquals("coolsttpkiwkkb", model.loadBalancerBackendAddressPoolId()); + Assertions.assertEquals("jrywvtylbfpnc", model.loadBalancerInboundNatPoolId()); + Assertions.assertEquals("doiwi", model.applicationGatewayBackendAddressPoolId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - FrontendConfiguration model = new FrontendConfiguration().withIpAddressType(IpAddressType.IPV4) - .withLoadBalancerBackendAddressPoolId("irryuzhlh") - .withLoadBalancerInboundNatPoolId("oqrvqqaatjin") - .withApplicationGatewayBackendAddressPoolId("goupmfiibfg"); + FrontendConfiguration model = new FrontendConfiguration().withIpAddressType(IpAddressType.IPV6) + .withLoadBalancerBackendAddressPoolId("coolsttpkiwkkb") + .withLoadBalancerInboundNatPoolId("jrywvtylbfpnc") + .withApplicationGatewayBackendAddressPoolId("doiwi"); model = BinaryData.fromObject(model).toObject(FrontendConfiguration.class); - Assertions.assertEquals(IpAddressType.IPV4, model.ipAddressType()); - Assertions.assertEquals("irryuzhlh", model.loadBalancerBackendAddressPoolId()); - Assertions.assertEquals("oqrvqqaatjin", model.loadBalancerInboundNatPoolId()); - Assertions.assertEquals("goupmfiibfg", model.applicationGatewayBackendAddressPoolId()); + Assertions.assertEquals(IpAddressType.IPV6, model.ipAddressType()); + Assertions.assertEquals("coolsttpkiwkkb", model.loadBalancerBackendAddressPoolId()); + Assertions.assertEquals("jrywvtylbfpnc", model.loadBalancerInboundNatPoolId()); + Assertions.assertEquals("doiwi", model.applicationGatewayBackendAddressPoolId()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/IpConfigurationPublicIpAddressConfigurationTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/IpConfigurationPublicIpAddressConfigurationTests.java index 93089db9bf1f..5876b41420df 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/IpConfigurationPublicIpAddressConfigurationTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/IpConfigurationPublicIpAddressConfigurationTests.java @@ -15,27 +15,24 @@ public final class IpConfigurationPublicIpAddressConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IpConfigurationPublicIpAddressConfiguration model = BinaryData.fromString( - "{\"name\":\"hxjbdhqxvc\",\"ipTags\":[{\"ipTagType\":\"rpdsof\",\"tag\":\"shrnsvbuswdvz\"},{\"ipTagType\":\"ybycnunvj\",\"tag\":\"rtkfawnopq\"},{\"ipTagType\":\"ikyzirtxdy\",\"tag\":\"x\"},{\"ipTagType\":\"ejnt\",\"tag\":\"sewgioilqukr\"}],\"publicIPAddressVersion\":\"IPv6\"}") + "{\"name\":\"lvtno\",\"ipTags\":[{\"ipTagType\":\"zgemjdftuljlt\",\"tag\":\"ucea\"}],\"publicIPAddressVersion\":\"IPv4\"}") .toObject(IpConfigurationPublicIpAddressConfiguration.class); - Assertions.assertEquals("hxjbdhqxvc", model.name()); - Assertions.assertEquals("rpdsof", model.ipTags().get(0).ipTagType()); - Assertions.assertEquals("shrnsvbuswdvz", model.ipTags().get(0).tag()); - Assertions.assertEquals(PublicIpAddressVersion.IPV6, model.publicIpAddressVersion()); + Assertions.assertEquals("lvtno", model.name()); + Assertions.assertEquals("zgemjdftuljlt", model.ipTags().get(0).ipTagType()); + Assertions.assertEquals("ucea", model.ipTags().get(0).tag()); + Assertions.assertEquals(PublicIpAddressVersion.IPV4, model.publicIpAddressVersion()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { IpConfigurationPublicIpAddressConfiguration model - = new IpConfigurationPublicIpAddressConfiguration().withName("hxjbdhqxvc") - .withIpTags(Arrays.asList(new IpTag().withIpTagType("rpdsof").withTag("shrnsvbuswdvz"), - new IpTag().withIpTagType("ybycnunvj").withTag("rtkfawnopq"), - new IpTag().withIpTagType("ikyzirtxdy").withTag("x"), - new IpTag().withIpTagType("ejnt").withTag("sewgioilqukr"))) - .withPublicIpAddressVersion(PublicIpAddressVersion.IPV6); + = new IpConfigurationPublicIpAddressConfiguration().withName("lvtno") + .withIpTags(Arrays.asList(new IpTag().withIpTagType("zgemjdftuljlt").withTag("ucea"))) + .withPublicIpAddressVersion(PublicIpAddressVersion.IPV4); model = BinaryData.fromObject(model).toObject(IpConfigurationPublicIpAddressConfiguration.class); - Assertions.assertEquals("hxjbdhqxvc", model.name()); - Assertions.assertEquals("rpdsof", model.ipTags().get(0).ipTagType()); - Assertions.assertEquals("shrnsvbuswdvz", model.ipTags().get(0).tag()); - Assertions.assertEquals(PublicIpAddressVersion.IPV6, model.publicIpAddressVersion()); + Assertions.assertEquals("lvtno", model.name()); + Assertions.assertEquals("zgemjdftuljlt", model.ipTags().get(0).ipTagType()); + Assertions.assertEquals("ucea", model.ipTags().get(0).tag()); + Assertions.assertEquals(PublicIpAddressVersion.IPV4, model.publicIpAddressVersion()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/IpConfigurationTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/IpConfigurationTests.java index 4c1ae2e16290..17207f13648d 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/IpConfigurationTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/IpConfigurationTests.java @@ -18,51 +18,46 @@ public final class IpConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IpConfiguration model = BinaryData.fromString( - "{\"name\":\"coolsttpkiwkkb\",\"applicationGatewayBackendAddressPools\":[{\"id\":\"ywvtylbfpnc\"},{\"id\":\"doiwi\"},{\"id\":\"htywubxcbihwq\"},{\"id\":\"fdntwjchrdgoih\"}],\"loadBalancerBackendAddressPools\":[{\"id\":\"ctondz\"},{\"id\":\"uu\"},{\"id\":\"dlwggytsbwtovv\"},{\"id\":\"seinqfiuf\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"pirgnepttwq\"},{\"id\":\"niffcdmqnroj\"},{\"id\":\"ijnkrxfrdd\"},{\"id\":\"ratiz\"}],\"subnet\":{\"id\":\"nasx\"},\"privateIPAddressVersion\":\"IPv6\",\"publicIPAddressConfiguration\":{\"name\":\"zq\",\"ipTags\":[{\"ipTagType\":\"f\",\"tag\":\"wesgogczh\"},{\"ipTagType\":\"nnxk\",\"tag\":\"lgnyhmo\"},{\"ipTagType\":\"sxkkg\",\"tag\":\"h\"}],\"publicIPAddressVersion\":\"IPv4\"}}") + "{\"name\":\"n\",\"applicationGatewayBackendAddressPools\":[{\"id\":\"sx\"},{\"id\":\"foimwkslircizjxv\"},{\"id\":\"fceacvlhvygd\"}],\"loadBalancerBackendAddressPools\":[{\"id\":\"mrtwna\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"biwkojgcyzt\"}],\"subnet\":{\"id\":\"z\"},\"privateIPAddressVersion\":\"IPv6\",\"publicIPAddressConfiguration\":{\"name\":\"qphchqnrnrpxehuw\",\"ipTags\":[{\"ipTagType\":\"qgaifmviklbydv\",\"tag\":\"hbejdznxcvdsrhnj\"}],\"publicIPAddressVersion\":\"IPv6\"}}") .toObject(IpConfiguration.class); - Assertions.assertEquals("coolsttpkiwkkb", model.name()); - Assertions.assertEquals("ywvtylbfpnc", model.applicationGatewayBackendAddressPools().get(0).id()); - Assertions.assertEquals("ctondz", model.loadBalancerBackendAddressPools().get(0).id()); - Assertions.assertEquals("pirgnepttwq", model.loadBalancerInboundNatPools().get(0).id()); - Assertions.assertEquals("nasx", model.subnet().id()); + Assertions.assertEquals("n", model.name()); + Assertions.assertEquals("sx", model.applicationGatewayBackendAddressPools().get(0).id()); + Assertions.assertEquals("mrtwna", model.loadBalancerBackendAddressPools().get(0).id()); + Assertions.assertEquals("biwkojgcyzt", model.loadBalancerInboundNatPools().get(0).id()); + Assertions.assertEquals("z", model.subnet().id()); Assertions.assertEquals(PrivateIpAddressVersion.IPV6, model.privateIpAddressVersion()); - Assertions.assertEquals("zq", model.publicIpAddressConfiguration().name()); - Assertions.assertEquals("f", model.publicIpAddressConfiguration().ipTags().get(0).ipTagType()); - Assertions.assertEquals("wesgogczh", model.publicIpAddressConfiguration().ipTags().get(0).tag()); - Assertions.assertEquals(PublicIpAddressVersion.IPV4, + Assertions.assertEquals("qphchqnrnrpxehuw", model.publicIpAddressConfiguration().name()); + Assertions.assertEquals("qgaifmviklbydv", model.publicIpAddressConfiguration().ipTags().get(0).ipTagType()); + Assertions.assertEquals("hbejdznxcvdsrhnj", model.publicIpAddressConfiguration().ipTags().get(0).tag()); + Assertions.assertEquals(PublicIpAddressVersion.IPV6, model.publicIpAddressConfiguration().publicIpAddressVersion()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - IpConfiguration model = new IpConfiguration().withName("coolsttpkiwkkb") - .withApplicationGatewayBackendAddressPools( - Arrays.asList(new SubResource().withId("ywvtylbfpnc"), new SubResource().withId("doiwi"), - new SubResource().withId("htywubxcbihwq"), new SubResource().withId("fdntwjchrdgoih"))) - .withLoadBalancerBackendAddressPools( - Arrays.asList(new SubResource().withId("ctondz"), new SubResource().withId("uu"), - new SubResource().withId("dlwggytsbwtovv"), new SubResource().withId("seinqfiuf"))) - .withLoadBalancerInboundNatPools( - Arrays.asList(new SubResource().withId("pirgnepttwq"), new SubResource().withId("niffcdmqnroj"), - new SubResource().withId("ijnkrxfrdd"), new SubResource().withId("ratiz"))) - .withSubnet(new SubResource().withId("nasx")) - .withPrivateIpAddressVersion(PrivateIpAddressVersion.IPV6) - .withPublicIpAddressConfiguration(new IpConfigurationPublicIpAddressConfiguration().withName("zq") - .withIpTags(Arrays.asList(new IpTag().withIpTagType("f").withTag("wesgogczh"), - new IpTag().withIpTagType("nnxk").withTag("lgnyhmo"), - new IpTag().withIpTagType("sxkkg").withTag("h"))) - .withPublicIpAddressVersion(PublicIpAddressVersion.IPV4)); + IpConfiguration model + = new IpConfiguration().withName("n") + .withApplicationGatewayBackendAddressPools(Arrays.asList(new SubResource().withId("sx"), + new SubResource().withId("foimwkslircizjxv"), new SubResource().withId("fceacvlhvygd"))) + .withLoadBalancerBackendAddressPools(Arrays.asList(new SubResource().withId("mrtwna"))) + .withLoadBalancerInboundNatPools(Arrays.asList(new SubResource().withId("biwkojgcyzt"))) + .withSubnet(new SubResource().withId("z")) + .withPrivateIpAddressVersion(PrivateIpAddressVersion.IPV6) + .withPublicIpAddressConfiguration(new IpConfigurationPublicIpAddressConfiguration() + .withName("qphchqnrnrpxehuw") + .withIpTags(Arrays.asList(new IpTag().withIpTagType("qgaifmviklbydv").withTag("hbejdznxcvdsrhnj"))) + .withPublicIpAddressVersion(PublicIpAddressVersion.IPV6)); model = BinaryData.fromObject(model).toObject(IpConfiguration.class); - Assertions.assertEquals("coolsttpkiwkkb", model.name()); - Assertions.assertEquals("ywvtylbfpnc", model.applicationGatewayBackendAddressPools().get(0).id()); - Assertions.assertEquals("ctondz", model.loadBalancerBackendAddressPools().get(0).id()); - Assertions.assertEquals("pirgnepttwq", model.loadBalancerInboundNatPools().get(0).id()); - Assertions.assertEquals("nasx", model.subnet().id()); + Assertions.assertEquals("n", model.name()); + Assertions.assertEquals("sx", model.applicationGatewayBackendAddressPools().get(0).id()); + Assertions.assertEquals("mrtwna", model.loadBalancerBackendAddressPools().get(0).id()); + Assertions.assertEquals("biwkojgcyzt", model.loadBalancerInboundNatPools().get(0).id()); + Assertions.assertEquals("z", model.subnet().id()); Assertions.assertEquals(PrivateIpAddressVersion.IPV6, model.privateIpAddressVersion()); - Assertions.assertEquals("zq", model.publicIpAddressConfiguration().name()); - Assertions.assertEquals("f", model.publicIpAddressConfiguration().ipTags().get(0).ipTagType()); - Assertions.assertEquals("wesgogczh", model.publicIpAddressConfiguration().ipTags().get(0).tag()); - Assertions.assertEquals(PublicIpAddressVersion.IPV4, + Assertions.assertEquals("qphchqnrnrpxehuw", model.publicIpAddressConfiguration().name()); + Assertions.assertEquals("qgaifmviklbydv", model.publicIpAddressConfiguration().ipTags().get(0).ipTagType()); + Assertions.assertEquals("hbejdznxcvdsrhnj", model.publicIpAddressConfiguration().ipTags().get(0).tag()); + Assertions.assertEquals(PublicIpAddressVersion.IPV6, model.publicIpAddressConfiguration().publicIpAddressVersion()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/IpTagTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/IpTagTests.java index aa45f125be32..f1459b10b099 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/IpTagTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/IpTagTests.java @@ -11,16 +11,16 @@ public final class IpTagTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - IpTag model = BinaryData.fromString("{\"ipTagType\":\"vc\",\"tag\":\"ayrhyrnx\"}").toObject(IpTag.class); - Assertions.assertEquals("vc", model.ipTagType()); - Assertions.assertEquals("ayrhyrnx", model.tag()); + IpTag model = BinaryData.fromString("{\"ipTagType\":\"beddgssofw\",\"tag\":\"mzqa\"}").toObject(IpTag.class); + Assertions.assertEquals("beddgssofw", model.ipTagType()); + Assertions.assertEquals("mzqa", model.tag()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - IpTag model = new IpTag().withIpTagType("vc").withTag("ayrhyrnx"); + IpTag model = new IpTag().withIpTagType("beddgssofw").withTag("mzqa"); model = BinaryData.fromObject(model).toObject(IpTag.class); - Assertions.assertEquals("vc", model.ipTagType()); - Assertions.assertEquals("ayrhyrnx", model.tag()); + Assertions.assertEquals("beddgssofw", model.ipTagType()); + Assertions.assertEquals("mzqa", model.tag()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/LoadBalancingRuleTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/LoadBalancingRuleTests.java index 4688c4a77e2b..e2987115a359 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/LoadBalancingRuleTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/LoadBalancingRuleTests.java @@ -14,33 +14,33 @@ public final class LoadBalancingRuleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LoadBalancingRule model = BinaryData.fromString( - "{\"frontendPort\":929911976,\"backendPort\":1475911208,\"protocol\":\"tcp\",\"probePort\":161159064,\"probeProtocol\":\"https\",\"probeRequestPath\":\"utauv\",\"loadDistribution\":\"tkuwhhmhykojo\"}") + "{\"frontendPort\":772691250,\"backendPort\":1695810733,\"protocol\":\"udp\",\"probePort\":976430532,\"probeProtocol\":\"http\",\"probeRequestPath\":\"tfudxepx\",\"loadDistribution\":\"qagvrvm\"}") .toObject(LoadBalancingRule.class); - Assertions.assertEquals(929911976, model.frontendPort()); - Assertions.assertEquals(1475911208, model.backendPort()); - Assertions.assertEquals(Protocol.TCP, model.protocol()); - Assertions.assertEquals(161159064, model.probePort()); - Assertions.assertEquals(ProbeProtocol.HTTPS, model.probeProtocol()); - Assertions.assertEquals("utauv", model.probeRequestPath()); - Assertions.assertEquals("tkuwhhmhykojo", model.loadDistribution()); + Assertions.assertEquals(772691250, model.frontendPort()); + Assertions.assertEquals(1695810733, model.backendPort()); + Assertions.assertEquals(Protocol.UDP, model.protocol()); + Assertions.assertEquals(976430532, model.probePort()); + Assertions.assertEquals(ProbeProtocol.HTTP, model.probeProtocol()); + Assertions.assertEquals("tfudxepx", model.probeRequestPath()); + Assertions.assertEquals("qagvrvm", model.loadDistribution()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - LoadBalancingRule model = new LoadBalancingRule().withFrontendPort(929911976) - .withBackendPort(1475911208) - .withProtocol(Protocol.TCP) - .withProbePort(161159064) - .withProbeProtocol(ProbeProtocol.HTTPS) - .withProbeRequestPath("utauv") - .withLoadDistribution("tkuwhhmhykojo"); + LoadBalancingRule model = new LoadBalancingRule().withFrontendPort(772691250) + .withBackendPort(1695810733) + .withProtocol(Protocol.UDP) + .withProbePort(976430532) + .withProbeProtocol(ProbeProtocol.HTTP) + .withProbeRequestPath("tfudxepx") + .withLoadDistribution("qagvrvm"); model = BinaryData.fromObject(model).toObject(LoadBalancingRule.class); - Assertions.assertEquals(929911976, model.frontendPort()); - Assertions.assertEquals(1475911208, model.backendPort()); - Assertions.assertEquals(Protocol.TCP, model.protocol()); - Assertions.assertEquals(161159064, model.probePort()); - Assertions.assertEquals(ProbeProtocol.HTTPS, model.probeProtocol()); - Assertions.assertEquals("utauv", model.probeRequestPath()); - Assertions.assertEquals("tkuwhhmhykojo", model.loadDistribution()); + Assertions.assertEquals(772691250, model.frontendPort()); + Assertions.assertEquals(1695810733, model.backendPort()); + Assertions.assertEquals(Protocol.UDP, model.protocol()); + Assertions.assertEquals(976430532, model.probePort()); + Assertions.assertEquals(ProbeProtocol.HTTP, model.probeProtocol()); + Assertions.assertEquals("tfudxepx", model.probeRequestPath()); + Assertions.assertEquals("qagvrvm", model.loadDistribution()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedApplyMaintenanceWindowsPostWithResponsMockTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedApplyMaintenanceWindowsPostWithResponsMockTests.java index eaa25f3dd384..1f3784bf2444 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedApplyMaintenanceWindowsPostWithResponsMockTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedApplyMaintenanceWindowsPostWithResponsMockTests.java @@ -27,7 +27,8 @@ public void testPostWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.managedApplyMaintenanceWindows().postWithResponse("tnpsihclaf", "va", com.azure.core.util.Context.NONE); + manager.managedApplyMaintenanceWindows() + .postWithResponse("d", "cpfnznthjtwkja", com.azure.core.util.Context.NONE); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedAzResiliencyStatusInnerTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedAzResiliencyStatusInnerTests.java index 1d55cb239b26..0ea7c08ff23b 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedAzResiliencyStatusInnerTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedAzResiliencyStatusInnerTests.java @@ -11,7 +11,7 @@ public final class ManagedAzResiliencyStatusInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedAzResiliencyStatusInner model = BinaryData.fromString( - "{\"baseResourceStatus\":[{\"resourceName\":\"vtpuqujmqlgk\",\"resourceType\":\"tndoaongbjc\",\"isZoneResilient\":true,\"details\":\"i\"},{\"resourceName\":\"jed\",\"resourceType\":\"wwa\",\"isZoneResilient\":false,\"details\":\"jvdcpzfoqouic\"}],\"isClusterZoneResilient\":true}") + "{\"baseResourceStatus\":[{\"resourceName\":\"p\",\"resourceType\":\"ksrpqv\",\"isZoneResilient\":false,\"details\":\"aehtwd\"},{\"resourceName\":\"ftswibyrcdlbhsh\",\"resourceType\":\"p\",\"isZoneResilient\":false,\"details\":\"twitykhev\"},{\"resourceName\":\"cedcpnmdy\",\"resourceType\":\"nwzxltjcv\",\"isZoneResilient\":true,\"details\":\"iugcxnavvwxq\"},{\"resourceName\":\"y\",\"resourceType\":\"nyowxwlmdjrkvfg\",\"isZoneResilient\":false,\"details\":\"p\"}],\"isClusterZoneResilient\":false}") .toObject(ManagedAzResiliencyStatusInner.class); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedAzResiliencyStatusesGetWithResponseMockTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedAzResiliencyStatusesGetWithResponseMockTests.java index 22310e5acdf8..174a8da7e2b1 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedAzResiliencyStatusesGetWithResponseMockTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedAzResiliencyStatusesGetWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class ManagedAzResiliencyStatusesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"baseResourceStatus\":[{\"resourceName\":\"ophzfylsgcrp\",\"resourceType\":\"cunezzcezelfw\",\"isZoneResilient\":false,\"details\":\"wx\"}],\"isClusterZoneResilient\":true}"; + = "{\"baseResourceStatus\":[{\"resourceName\":\"zpnpbswv\",\"resourceType\":\"loccsrmozihm\",\"isZoneResilient\":false,\"details\":\"wtxxpkyjcx\"},{\"resourceName\":\"xgrytfmp\",\"resourceType\":\"cil\",\"isZoneResilient\":true,\"details\":\"ykggnoxuztrksx\"}],\"isClusterZoneResilient\":false}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ManagedAzResiliencyStatus response = manager.managedAzResiliencyStatuses() - .getWithResponse("v", "dibmikostbzbkiwb", com.azure.core.util.Context.NONE) + .getWithResponse("kxcoxpelnje", "agltsxoa", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClusterUpdateParametersTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClusterUpdateParametersTests.java index a6645605ffac..ded7d1062234 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClusterUpdateParametersTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClusterUpdateParametersTests.java @@ -13,17 +13,16 @@ public final class ManagedClusterUpdateParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ManagedClusterUpdateParameters model = BinaryData.fromString("{\"tags\":{\"ekkezzikhlyfjh\":\"kfcktqum\"}}") - .toObject(ManagedClusterUpdateParameters.class); - Assertions.assertEquals("kfcktqum", model.tags().get("ekkezzikhlyfjh")); + ManagedClusterUpdateParameters model + = BinaryData.fromString("{\"tags\":{\"fltkacjv\":\"wj\"}}").toObject(ManagedClusterUpdateParameters.class); + Assertions.assertEquals("wj", model.tags().get("fltkacjv")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ManagedClusterUpdateParameters model - = new ManagedClusterUpdateParameters().withTags(mapOf("ekkezzikhlyfjh", "kfcktqum")); + ManagedClusterUpdateParameters model = new ManagedClusterUpdateParameters().withTags(mapOf("fltkacjv", "wj")); model = BinaryData.fromObject(model).toObject(ManagedClusterUpdateParameters.class); - Assertions.assertEquals("kfcktqum", model.tags().get("ekkezzikhlyfjh")); + Assertions.assertEquals("wj", model.tags().get("fltkacjv")); } // Use "Map.of" if available diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersGetFaultSimulationWithResponseMockTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersGetFaultSimulationWithResponseMockTests.java index 9e39665821f4..31300d8032d2 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersGetFaultSimulationWithResponseMockTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersGetFaultSimulationWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class ManagedClustersGetFaultSimulationWithResponseMockTests { @Test public void testGetFaultSimulationWithResponse() throws Exception { String responseStr - = "{\"simulationId\":\"rqjb\",\"status\":\"Active\",\"startTime\":\"2021-01-25T09:16:29Z\",\"endTime\":\"2021-01-05T10:30:14Z\",\"details\":{\"clusterId\":\"afhonqj\",\"operationId\":\"eickpz\",\"nodeTypeFaultSimulation\":[{\"nodeTypeName\":\"pmxelnwcltyje\",\"status\":\"Stopping\",\"operationId\":\"mlfmkqs\",\"operationStatus\":\"Created\"}],\"parameters\":{\"faultKind\":\"FaultSimulationContent\",\"force\":true,\"constraints\":{\"expirationTime\":\"2021-07-30T21:11:41Z\"}}}}"; + = "{\"simulationId\":\"qvhpsylkkshkbff\",\"status\":\"StopFailed\",\"startTime\":\"2021-04-10T03:24:01Z\",\"endTime\":\"2021-06-13T14:19:09Z\",\"details\":{\"clusterId\":\"wwp\",\"operationId\":\"xs\",\"nodeTypeFaultSimulation\":[{\"nodeTypeName\":\"ujgicgaaoe\",\"status\":\"StopFailed\",\"operationId\":\"qutdewemxs\",\"operationStatus\":\"Failed\"}],\"parameters\":{\"faultKind\":\"FaultSimulationContent\",\"force\":false,\"constraints\":{\"expirationTime\":\"2021-06-28T16:34:33Z\"}}}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,24 +34,24 @@ public void testGetFaultSimulationWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); FaultSimulation response = manager.managedClusters() - .getFaultSimulationWithResponse("xecwcro", "phslhcawjutifdw", - new FaultSimulationIdContent().withSimulationId("mvi"), com.azure.core.util.Context.NONE) + .getFaultSimulationWithResponse("mwqkchcxwaxf", "w", + new FaultSimulationIdContent().withSimulationId("jkjexf"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("rqjb", response.simulationId()); - Assertions.assertEquals(FaultSimulationStatus.ACTIVE, response.status()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-25T09:16:29Z"), response.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-05T10:30:14Z"), response.endTime()); - Assertions.assertEquals("afhonqj", response.details().clusterId()); - Assertions.assertEquals("eickpz", response.details().operationId()); - Assertions.assertEquals("pmxelnwcltyje", response.details().nodeTypeFaultSimulation().get(0).nodeTypeName()); - Assertions.assertEquals(FaultSimulationStatus.STOPPING, + Assertions.assertEquals("qvhpsylkkshkbff", response.simulationId()); + Assertions.assertEquals(FaultSimulationStatus.STOP_FAILED, response.status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-10T03:24:01Z"), response.startTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-13T14:19:09Z"), response.endTime()); + Assertions.assertEquals("wwp", response.details().clusterId()); + Assertions.assertEquals("xs", response.details().operationId()); + Assertions.assertEquals("ujgicgaaoe", response.details().nodeTypeFaultSimulation().get(0).nodeTypeName()); + Assertions.assertEquals(FaultSimulationStatus.STOP_FAILED, response.details().nodeTypeFaultSimulation().get(0).status()); - Assertions.assertEquals("mlfmkqs", response.details().nodeTypeFaultSimulation().get(0).operationId()); - Assertions.assertEquals(SfmcOperationStatus.CREATED, + Assertions.assertEquals("qutdewemxs", response.details().nodeTypeFaultSimulation().get(0).operationId()); + Assertions.assertEquals(SfmcOperationStatus.FAILED, response.details().nodeTypeFaultSimulation().get(0).operationStatus()); - Assertions.assertTrue(response.details().parameters().force()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-30T21:11:41Z"), + Assertions.assertFalse(response.details().parameters().force()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-28T16:34:33Z"), response.details().parameters().constraints().expirationTime()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersListFaultSimulationMockTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersListFaultSimulationMockTests.java index ff45ee2b1050..6e5da9ff9dd9 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersListFaultSimulationMockTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedClustersListFaultSimulationMockTests.java @@ -24,7 +24,7 @@ public final class ManagedClustersListFaultSimulationMockTests { @Test public void testListFaultSimulation() throws Exception { String responseStr - = "{\"value\":[{\"simulationId\":\"hsphaivmxyas\",\"status\":\"StopFailed\",\"startTime\":\"2021-09-18T11:57:58Z\",\"endTime\":\"2021-01-20T23:20:50Z\",\"details\":{\"clusterId\":\"wakoihkn\",\"operationId\":\"jblmljhlnymz\",\"nodeTypeFaultSimulation\":[{\"nodeTypeName\":\"ryuzcbmqqv\",\"status\":\"StartFailed\",\"operationId\":\"fgtayxonsup\",\"operationStatus\":\"Succeeded\"},{\"nodeTypeName\":\"zqn\",\"status\":\"StartFailed\",\"operationId\":\"ql\",\"operationStatus\":\"Failed\"},{\"nodeTypeName\":\"ibg\",\"status\":\"Done\",\"operationId\":\"xfyqonmpqoxwdo\",\"operationStatus\":\"Started\"},{\"nodeTypeName\":\"iqxeiiqbimht\",\"status\":\"Stopping\",\"operationId\":\"nhe\",\"operationStatus\":\"Started\"}],\"parameters\":{\"faultKind\":\"FaultSimulationContent\",\"force\":false,\"constraints\":{\"expirationTime\":\"2021-02-24T17:49:08Z\"}}}}]}"; + = "{\"value\":[{\"simulationId\":\"whixmonstsh\",\"status\":\"StartFailed\",\"startTime\":\"2021-11-30T03:41Z\",\"endTime\":\"2021-08-28T04:08:34Z\",\"details\":{\"clusterId\":\"lduccbi\",\"operationId\":\"svu\",\"nodeTypeFaultSimulation\":[{\"nodeTypeName\":\"iegstm\",\"status\":\"StartFailed\",\"operationId\":\"jizcilnghgs\",\"operationStatus\":\"Created\"}],\"parameters\":{\"faultKind\":\"FaultSimulationContent\",\"force\":false,\"constraints\":{\"expirationTime\":\"2021-09-06T18:31Z\"}}}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,25 +33,25 @@ public void testListFaultSimulation() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response - = manager.managedClusters().listFaultSimulation("x", "uamwabzxrvxc", com.azure.core.util.Context.NONE); + PagedIterable response = manager.managedClusters() + .listFaultSimulation("gehkfkimrtixokff", "yinljqe", com.azure.core.util.Context.NONE); - Assertions.assertEquals("hsphaivmxyas", response.iterator().next().simulationId()); - Assertions.assertEquals(FaultSimulationStatus.STOP_FAILED, response.iterator().next().status()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-18T11:57:58Z"), response.iterator().next().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-20T23:20:50Z"), response.iterator().next().endTime()); - Assertions.assertEquals("wakoihkn", response.iterator().next().details().clusterId()); - Assertions.assertEquals("jblmljhlnymz", response.iterator().next().details().operationId()); - Assertions.assertEquals("ryuzcbmqqv", + Assertions.assertEquals("whixmonstsh", response.iterator().next().simulationId()); + Assertions.assertEquals(FaultSimulationStatus.START_FAILED, response.iterator().next().status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-30T03:41Z"), response.iterator().next().startTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-28T04:08:34Z"), response.iterator().next().endTime()); + Assertions.assertEquals("lduccbi", response.iterator().next().details().clusterId()); + Assertions.assertEquals("svu", response.iterator().next().details().operationId()); + Assertions.assertEquals("iegstm", response.iterator().next().details().nodeTypeFaultSimulation().get(0).nodeTypeName()); Assertions.assertEquals(FaultSimulationStatus.START_FAILED, response.iterator().next().details().nodeTypeFaultSimulation().get(0).status()); - Assertions.assertEquals("fgtayxonsup", + Assertions.assertEquals("jizcilnghgs", response.iterator().next().details().nodeTypeFaultSimulation().get(0).operationId()); - Assertions.assertEquals(SfmcOperationStatus.SUCCEEDED, + Assertions.assertEquals(SfmcOperationStatus.CREATED, response.iterator().next().details().nodeTypeFaultSimulation().get(0).operationStatus()); Assertions.assertFalse(response.iterator().next().details().parameters().force()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-24T17:49:08Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-09-06T18:31Z"), response.iterator().next().details().parameters().constraints().expirationTime()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedMaintenanceWindowStatusInnerTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedMaintenanceWindowStatusInnerTests.java index cda80be9ff64..c0d6d8f2de7a 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedMaintenanceWindowStatusInnerTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedMaintenanceWindowStatusInnerTests.java @@ -11,7 +11,7 @@ public final class ManagedMaintenanceWindowStatusInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedMaintenanceWindowStatusInner model = BinaryData.fromString( - "{\"isWindowEnabled\":true,\"isRegionReady\":false,\"isWindowActive\":false,\"canApplyUpdates\":true,\"lastWindowStatusUpdateAtUTC\":\"2021-10-15T06:55:02Z\",\"lastWindowStartTimeUTC\":\"2021-03-04T17:22:18Z\",\"lastWindowEndTimeUTC\":\"2021-10-02T18:29:47Z\"}") + "{\"isWindowEnabled\":true,\"isRegionReady\":false,\"isWindowActive\":false,\"canApplyUpdates\":true,\"lastWindowStatusUpdateAtUTC\":\"2021-03-14T01:14:47Z\",\"lastWindowStartTimeUTC\":\"2021-01-18T23:13:43Z\",\"lastWindowEndTimeUTC\":\"2021-02-18T14:41:58Z\"}") .toObject(ManagedMaintenanceWindowStatusInner.class); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedMaintenanceWindowStatusesGetWithResponMockTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedMaintenanceWindowStatusesGetWithResponMockTests.java index e9c800e05bed..c05b52ae745a 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedMaintenanceWindowStatusesGetWithResponMockTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedMaintenanceWindowStatusesGetWithResponMockTests.java @@ -20,7 +20,7 @@ public final class ManagedMaintenanceWindowStatusesGetWithResponMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"isWindowEnabled\":true,\"isRegionReady\":false,\"isWindowActive\":false,\"canApplyUpdates\":true,\"lastWindowStatusUpdateAtUTC\":\"2021-11-26T04:41:12Z\",\"lastWindowStartTimeUTC\":\"2021-10-30T13:50:04Z\",\"lastWindowEndTimeUTC\":\"2021-03-27T13:01:29Z\"}"; + = "{\"isWindowEnabled\":false,\"isRegionReady\":false,\"isWindowActive\":false,\"canApplyUpdates\":true,\"lastWindowStatusUpdateAtUTC\":\"2021-10-01T04:20:56Z\",\"lastWindowStartTimeUTC\":\"2021-07-27T11:11:31Z\",\"lastWindowEndTimeUTC\":\"2021-08-19T07:20:59Z\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ManagedMaintenanceWindowStatus response = manager.managedMaintenanceWindowStatuses() - .getWithResponse("lpt", "sqqw", com.azure.core.util.Context.NONE) + .getWithResponse("srxuzvoam", "tcqiosmg", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedUnsupportedVMSizesGetWithResponseMockTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedUnsupportedVMSizesGetWithResponseMockTests.java index 63df7cd8876d..e019b14e2eac 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedUnsupportedVMSizesGetWithResponseMockTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedUnsupportedVMSizesGetWithResponseMockTests.java @@ -19,7 +19,8 @@ public final class ManagedUnsupportedVMSizesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { - String responseStr = "{\"properties\":{\"size\":\"wvz\"},\"id\":\"zvd\",\"name\":\"zdix\",\"type\":\"q\"}"; + String responseStr + = "{\"properties\":{\"size\":\"kpzvcpopmxelnwc\"},\"id\":\"yjede\",\"name\":\"mlfmkqs\",\"type\":\"zuawxtzxpuamwa\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -29,7 +30,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ManagedVMSize response = manager.managedUnsupportedVMSizes() - .getWithResponse("czurtlei", "q", com.azure.core.util.Context.NONE) + .getWithResponse("aglkafhon", "juj", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedUnsupportedVMSizesListMockTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedUnsupportedVMSizesListMockTests.java index e8d91952ff4c..1e3f61f52af0 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedUnsupportedVMSizesListMockTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedUnsupportedVMSizesListMockTests.java @@ -21,7 +21,7 @@ public final class ManagedUnsupportedVMSizesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"size\":\"qhewj\"},\"id\":\"mcgsbostzelnd\",\"name\":\"tutmzl\",\"type\":\"ojlvfhrbbpneqvc\"}]}"; + = "{\"value\":[{\"properties\":{\"size\":\"haivm\"},\"id\":\"asflvg\",\"name\":\"zwywako\",\"type\":\"knsmjblmljhlnymz\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,7 +31,7 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.managedUnsupportedVMSizes().list("noda", com.azure.core.util.Context.NONE); + = manager.managedUnsupportedVMSizes().list("zxrvxcus", com.azure.core.util.Context.NONE); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedVMSizeInnerTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedVMSizeInnerTests.java index 1cd05dc50f42..2400031c0d6f 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedVMSizeInnerTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedVMSizeInnerTests.java @@ -12,7 +12,7 @@ public final class ManagedVMSizeInnerTests { public void testDeserialize() throws Exception { ManagedVMSizeInner model = BinaryData .fromString( - "{\"properties\":{\"size\":\"lvpnpp\"},\"id\":\"flrwd\",\"name\":\"dlxyjrxs\",\"type\":\"afcnih\"}") + "{\"properties\":{\"size\":\"k\"},\"id\":\"oxafn\",\"name\":\"lpichk\",\"type\":\"mkcdyhbpkkpwdre\"}") .toObject(ManagedVMSizeInner.class); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedVMSizesResultTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedVMSizesResultTests.java index 110c4fd85c04..7ef4c8ac5c3a 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedVMSizesResultTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ManagedVMSizesResultTests.java @@ -12,8 +12,8 @@ public final class ManagedVMSizesResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedVMSizesResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"size\":\"vpk\"},\"id\":\"dcvd\",\"name\":\"vo\",\"type\":\"sotbob\"},{\"properties\":{\"size\":\"pcjwv\"},\"id\":\"dldwmgxc\",\"name\":\"slpmutwuo\",\"type\":\"rpkhjwn\"},{\"properties\":{\"size\":\"sluicpdggkzz\"},\"id\":\"mbmpaxmodfvuefy\",\"name\":\"bpfvm\",\"type\":\"hrfou\"}],\"nextLink\":\"taakc\"}") + "{\"value\":[{\"properties\":{\"size\":\"s\"},\"id\":\"sytgadgvraea\",\"name\":\"e\",\"type\":\"zar\"},{\"properties\":{\"size\":\"q\"},\"id\":\"ijfqkacewiipfp\",\"name\":\"ji\",\"type\":\"wifto\"},{\"properties\":{\"size\":\"vpuvks\"},\"id\":\"lsa\",\"name\":\"ynfs\",\"type\":\"ljphuopxodl\"},{\"properties\":{\"size\":\"ntorzihleosjswsr\"},\"id\":\"lyzrpzbchckqqzqi\",\"name\":\"iysui\",\"type\":\"ynkedyatrwyhqmib\"}],\"nextLink\":\"hwit\"}") .toObject(ManagedVMSizesResult.class); - Assertions.assertEquals("taakc", model.nextLink()); + Assertions.assertEquals("hwit", model.nextLink()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NamedPartitionSchemeTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NamedPartitionSchemeTests.java index f13784ba8d2f..6a7a345c1748 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NamedPartitionSchemeTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NamedPartitionSchemeTests.java @@ -12,17 +12,18 @@ public final class NamedPartitionSchemeTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - NamedPartitionScheme model = BinaryData.fromString( - "{\"partitionScheme\":\"Named\",\"names\":[\"loayqcgw\",\"tzjuzgwyzmhtxo\",\"gmtsavjcbpwxqpsr\",\"nftguvriuhpr\"]}") + NamedPartitionScheme model = BinaryData + .fromString( + "{\"partitionScheme\":\"Named\",\"names\":[\"bdagxt\",\"bqdxbx\",\"akbogqxndlkzgxh\",\"ripl\"]}") .toObject(NamedPartitionScheme.class); - Assertions.assertEquals("loayqcgw", model.names().get(0)); + Assertions.assertEquals("bdagxt", model.names().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - NamedPartitionScheme model = new NamedPartitionScheme() - .withNames(Arrays.asList("loayqcgw", "tzjuzgwyzmhtxo", "gmtsavjcbpwxqpsr", "nftguvriuhpr")); + NamedPartitionScheme model + = new NamedPartitionScheme().withNames(Arrays.asList("bdagxt", "bqdxbx", "akbogqxndlkzgxh", "ripl")); model = BinaryData.fromObject(model).toObject(NamedPartitionScheme.class); - Assertions.assertEquals("loayqcgw", model.names().get(0)); + Assertions.assertEquals("bdagxt", model.names().get(0)); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NetworkSecurityRuleTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NetworkSecurityRuleTests.java index b84cdd5beb71..e4d604da10cf 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NetworkSecurityRuleTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NetworkSecurityRuleTests.java @@ -16,54 +16,54 @@ public final class NetworkSecurityRuleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSecurityRule model = BinaryData.fromString( - "{\"name\":\"afnn\",\"description\":\"pichkoymkcdy\",\"protocol\":\"http\",\"sourceAddressPrefixes\":[\"kpw\",\"reqnovvqfov\",\"jxywsuws\",\"rsndsytgadgvra\"],\"destinationAddressPrefixes\":[\"neqn\"],\"sourcePortRanges\":[\"rwlqu\",\"ijfqkacewiipfp\",\"bjibwwiftohq\",\"vpuvks\"],\"destinationPortRanges\":[\"saknynfsyn\"],\"sourceAddressPrefix\":\"ph\",\"destinationAddressPrefix\":\"pxodlqiyntorzih\",\"sourcePortRange\":\"osjswsr\",\"destinationPortRange\":\"lyzrpzbchckqqzqi\",\"access\":\"allow\",\"priority\":1257157038,\"direction\":\"outbound\"}") + "{\"name\":\"pkukghi\",\"description\":\"blxgwimf\",\"protocol\":\"esp\",\"sourceAddressPrefixes\":[\"j\",\"wmszkk\"],\"destinationAddressPrefixes\":[\"rey\",\"kzikfjawneaivxwc\"],\"sourcePortRanges\":[\"pcirelsfeaen\",\"abfatkl\",\"dxbjhwuaanozj\"],\"destinationPortRanges\":[\"hyoulpjr\"],\"sourceAddressPrefix\":\"ag\",\"destinationAddressPrefix\":\"vimjwos\",\"sourcePortRange\":\"xitc\",\"destinationPortRange\":\"fcktqumiekke\",\"access\":\"allow\",\"priority\":697538658,\"direction\":\"inbound\"}") .toObject(NetworkSecurityRule.class); - Assertions.assertEquals("afnn", model.name()); - Assertions.assertEquals("pichkoymkcdy", model.description()); - Assertions.assertEquals(NsgProtocol.HTTP, model.protocol()); - Assertions.assertEquals("kpw", model.sourceAddressPrefixes().get(0)); - Assertions.assertEquals("neqn", model.destinationAddressPrefixes().get(0)); - Assertions.assertEquals("rwlqu", model.sourcePortRanges().get(0)); - Assertions.assertEquals("saknynfsyn", model.destinationPortRanges().get(0)); - Assertions.assertEquals("ph", model.sourceAddressPrefix()); - Assertions.assertEquals("pxodlqiyntorzih", model.destinationAddressPrefix()); - Assertions.assertEquals("osjswsr", model.sourcePortRange()); - Assertions.assertEquals("lyzrpzbchckqqzqi", model.destinationPortRange()); + Assertions.assertEquals("pkukghi", model.name()); + Assertions.assertEquals("blxgwimf", model.description()); + Assertions.assertEquals(NsgProtocol.ESP, model.protocol()); + Assertions.assertEquals("j", model.sourceAddressPrefixes().get(0)); + Assertions.assertEquals("rey", model.destinationAddressPrefixes().get(0)); + Assertions.assertEquals("pcirelsfeaen", model.sourcePortRanges().get(0)); + Assertions.assertEquals("hyoulpjr", model.destinationPortRanges().get(0)); + Assertions.assertEquals("ag", model.sourceAddressPrefix()); + Assertions.assertEquals("vimjwos", model.destinationAddressPrefix()); + Assertions.assertEquals("xitc", model.sourcePortRange()); + Assertions.assertEquals("fcktqumiekke", model.destinationPortRange()); Assertions.assertEquals(Access.ALLOW, model.access()); - Assertions.assertEquals(1257157038, model.priority()); - Assertions.assertEquals(Direction.OUTBOUND, model.direction()); + Assertions.assertEquals(697538658, model.priority()); + Assertions.assertEquals(Direction.INBOUND, model.direction()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - NetworkSecurityRule model = new NetworkSecurityRule().withName("afnn") - .withDescription("pichkoymkcdy") - .withProtocol(NsgProtocol.HTTP) - .withSourceAddressPrefixes(Arrays.asList("kpw", "reqnovvqfov", "jxywsuws", "rsndsytgadgvra")) - .withDestinationAddressPrefixes(Arrays.asList("neqn")) - .withSourcePortRanges(Arrays.asList("rwlqu", "ijfqkacewiipfp", "bjibwwiftohq", "vpuvks")) - .withDestinationPortRanges(Arrays.asList("saknynfsyn")) - .withSourceAddressPrefix("ph") - .withDestinationAddressPrefix("pxodlqiyntorzih") - .withSourcePortRange("osjswsr") - .withDestinationPortRange("lyzrpzbchckqqzqi") + NetworkSecurityRule model = new NetworkSecurityRule().withName("pkukghi") + .withDescription("blxgwimf") + .withProtocol(NsgProtocol.ESP) + .withSourceAddressPrefixes(Arrays.asList("j", "wmszkk")) + .withDestinationAddressPrefixes(Arrays.asList("rey", "kzikfjawneaivxwc")) + .withSourcePortRanges(Arrays.asList("pcirelsfeaen", "abfatkl", "dxbjhwuaanozj")) + .withDestinationPortRanges(Arrays.asList("hyoulpjr")) + .withSourceAddressPrefix("ag") + .withDestinationAddressPrefix("vimjwos") + .withSourcePortRange("xitc") + .withDestinationPortRange("fcktqumiekke") .withAccess(Access.ALLOW) - .withPriority(1257157038) - .withDirection(Direction.OUTBOUND); + .withPriority(697538658) + .withDirection(Direction.INBOUND); model = BinaryData.fromObject(model).toObject(NetworkSecurityRule.class); - Assertions.assertEquals("afnn", model.name()); - Assertions.assertEquals("pichkoymkcdy", model.description()); - Assertions.assertEquals(NsgProtocol.HTTP, model.protocol()); - Assertions.assertEquals("kpw", model.sourceAddressPrefixes().get(0)); - Assertions.assertEquals("neqn", model.destinationAddressPrefixes().get(0)); - Assertions.assertEquals("rwlqu", model.sourcePortRanges().get(0)); - Assertions.assertEquals("saknynfsyn", model.destinationPortRanges().get(0)); - Assertions.assertEquals("ph", model.sourceAddressPrefix()); - Assertions.assertEquals("pxodlqiyntorzih", model.destinationAddressPrefix()); - Assertions.assertEquals("osjswsr", model.sourcePortRange()); - Assertions.assertEquals("lyzrpzbchckqqzqi", model.destinationPortRange()); + Assertions.assertEquals("pkukghi", model.name()); + Assertions.assertEquals("blxgwimf", model.description()); + Assertions.assertEquals(NsgProtocol.ESP, model.protocol()); + Assertions.assertEquals("j", model.sourceAddressPrefixes().get(0)); + Assertions.assertEquals("rey", model.destinationAddressPrefixes().get(0)); + Assertions.assertEquals("pcirelsfeaen", model.sourcePortRanges().get(0)); + Assertions.assertEquals("hyoulpjr", model.destinationPortRanges().get(0)); + Assertions.assertEquals("ag", model.sourceAddressPrefix()); + Assertions.assertEquals("vimjwos", model.destinationAddressPrefix()); + Assertions.assertEquals("xitc", model.sourcePortRange()); + Assertions.assertEquals("fcktqumiekke", model.destinationPortRange()); Assertions.assertEquals(Access.ALLOW, model.access()); - Assertions.assertEquals(1257157038, model.priority()); - Assertions.assertEquals(Direction.OUTBOUND, model.direction()); + Assertions.assertEquals(697538658, model.priority()); + Assertions.assertEquals(Direction.INBOUND, model.direction()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeActionParametersTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeActionParametersTests.java index cb0f3df01439..dd52480bae1a 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeActionParametersTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeActionParametersTests.java @@ -13,22 +13,23 @@ public final class NodeTypeActionParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - NodeTypeActionParameters model - = BinaryData.fromString("{\"nodes\":[\"ckpyklyhplu\"],\"force\":false,\"updateType\":\"Default\"}") - .toObject(NodeTypeActionParameters.class); - Assertions.assertEquals("ckpyklyhplu", model.nodes().get(0)); - Assertions.assertFalse(model.force()); + NodeTypeActionParameters model = BinaryData + .fromString("{\"nodes\":[\"ewzcjznmwcp\",\"guaadraufactkahz\"],\"force\":true,\"updateType\":\"Default\"}") + .toObject(NodeTypeActionParameters.class); + Assertions.assertEquals("ewzcjznmwcp", model.nodes().get(0)); + Assertions.assertTrue(model.force()); Assertions.assertEquals(UpdateType.DEFAULT, model.updateType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - NodeTypeActionParameters model = new NodeTypeActionParameters().withNodes(Arrays.asList("ckpyklyhplu")) - .withForce(false) - .withUpdateType(UpdateType.DEFAULT); + NodeTypeActionParameters model + = new NodeTypeActionParameters().withNodes(Arrays.asList("ewzcjznmwcp", "guaadraufactkahz")) + .withForce(true) + .withUpdateType(UpdateType.DEFAULT); model = BinaryData.fromObject(model).toObject(NodeTypeActionParameters.class); - Assertions.assertEquals("ckpyklyhplu", model.nodes().get(0)); - Assertions.assertFalse(model.force()); + Assertions.assertEquals("ewzcjznmwcp", model.nodes().get(0)); + Assertions.assertTrue(model.force()); Assertions.assertEquals(UpdateType.DEFAULT, model.updateType()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeAvailableSkuInnerTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeAvailableSkuInnerTests.java index 4423e1ba4442..db2d9f819456 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeAvailableSkuInnerTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeAvailableSkuInnerTests.java @@ -11,7 +11,7 @@ public final class NodeTypeAvailableSkuInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NodeTypeAvailableSkuInner model = BinaryData.fromString( - "{\"resourceType\":\"qjfsmlmbtxhw\",\"sku\":{\"name\":\"srtawcoezbr\",\"tier\":\"bskhudygoookkqfq\"},\"capacity\":{\"minimum\":1168640634,\"maximum\":173772181,\"default\":1730138654,\"scaleType\":\"Automatic\"}}") + "{\"resourceType\":\"dweyuqdunv\",\"sku\":{\"name\":\"rwrbi\",\"tier\":\"ktalywjhhgdnhxms\"},\"capacity\":{\"minimum\":759547890,\"maximum\":601340793,\"default\":486711131,\"scaleType\":\"Manual\"}}") .toObject(NodeTypeAvailableSkuInner.class); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeFaultSimulationTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeFaultSimulationTests.java index 3465dd29a917..cd673ed92028 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeFaultSimulationTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeFaultSimulationTests.java @@ -14,11 +14,11 @@ public final class NodeTypeFaultSimulationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NodeTypeFaultSimulation model = BinaryData.fromString( - "{\"nodeTypeName\":\"ypatdooaojkniod\",\"status\":\"Stopping\",\"operationId\":\"bw\",\"operationStatus\":\"Aborted\"}") + "{\"nodeTypeName\":\"szzcmrvexztv\",\"status\":\"StopFailed\",\"operationId\":\"sfraoyzko\",\"operationStatus\":\"Aborted\"}") .toObject(NodeTypeFaultSimulation.class); - Assertions.assertEquals("ypatdooaojkniod", model.nodeTypeName()); - Assertions.assertEquals(FaultSimulationStatus.STOPPING, model.status()); - Assertions.assertEquals("bw", model.operationId()); + Assertions.assertEquals("szzcmrvexztv", model.nodeTypeName()); + Assertions.assertEquals(FaultSimulationStatus.STOP_FAILED, model.status()); + Assertions.assertEquals("sfraoyzko", model.operationId()); Assertions.assertEquals(SfmcOperationStatus.ABORTED, model.operationStatus()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeListSkuResultTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeListSkuResultTests.java index 9024109a1982..c5b72219c219 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeListSkuResultTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeListSkuResultTests.java @@ -12,8 +12,8 @@ public final class NodeTypeListSkuResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NodeTypeListSkuResult model = BinaryData.fromString( - "{\"value\":[{\"resourceType\":\"dlgzibthostgkt\",\"sku\":{\"name\":\"dxeclzedqbcvh\",\"tier\":\"h\"},\"capacity\":{\"minimum\":751350709,\"maximum\":695028965,\"default\":1774431759,\"scaleType\":\"Automatic\"}}],\"nextLink\":\"fbumlkx\"}") + "{\"value\":[{\"resourceType\":\"uxxpshne\",\"sku\":{\"name\":\"lfg\",\"tier\":\"qubkw\"},\"capacity\":{\"minimum\":2030075200,\"maximum\":83851075,\"default\":1559984904,\"scaleType\":\"None\"}},{\"resourceType\":\"bazpjuohmi\",\"sku\":{\"name\":\"lnorwmdu\",\"tier\":\"pklvxw\"},\"capacity\":{\"minimum\":1917702529,\"maximum\":1521698279,\"default\":181907688,\"scaleType\":\"Automatic\"}},{\"resourceType\":\"isze\",\"sku\":{\"name\":\"bjcrxgibbdaxco\",\"tier\":\"ozauorsukokwb\"},\"capacity\":{\"minimum\":650795079,\"maximum\":2075854063,\"default\":1945545527,\"scaleType\":\"Automatic\"}}],\"nextLink\":\"zlrphwzs\"}") .toObject(NodeTypeListSkuResult.class); - Assertions.assertEquals("fbumlkx", model.nextLink()); + Assertions.assertEquals("zlrphwzs", model.nextLink()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeNatConfigTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeNatConfigTests.java index b773378c28f3..3531d86d9546 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeNatConfigTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeNatConfigTests.java @@ -13,21 +13,21 @@ public final class NodeTypeNatConfigTests { public void testDeserialize() throws Exception { NodeTypeNatConfig model = BinaryData .fromString( - "{\"backendPort\":148831092,\"frontendPortRangeStart\":1083346406,\"frontendPortRangeEnd\":1621053169}") + "{\"backendPort\":709721668,\"frontendPortRangeStart\":40609312,\"frontendPortRangeEnd\":1077701136}") .toObject(NodeTypeNatConfig.class); - Assertions.assertEquals(148831092, model.backendPort()); - Assertions.assertEquals(1083346406, model.frontendPortRangeStart()); - Assertions.assertEquals(1621053169, model.frontendPortRangeEnd()); + Assertions.assertEquals(709721668, model.backendPort()); + Assertions.assertEquals(40609312, model.frontendPortRangeStart()); + Assertions.assertEquals(1077701136, model.frontendPortRangeEnd()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - NodeTypeNatConfig model = new NodeTypeNatConfig().withBackendPort(148831092) - .withFrontendPortRangeStart(1083346406) - .withFrontendPortRangeEnd(1621053169); + NodeTypeNatConfig model = new NodeTypeNatConfig().withBackendPort(709721668) + .withFrontendPortRangeStart(40609312) + .withFrontendPortRangeEnd(1077701136); model = BinaryData.fromObject(model).toObject(NodeTypeNatConfig.class); - Assertions.assertEquals(148831092, model.backendPort()); - Assertions.assertEquals(1083346406, model.frontendPortRangeStart()); - Assertions.assertEquals(1621053169, model.frontendPortRangeEnd()); + Assertions.assertEquals(709721668, model.backendPort()); + Assertions.assertEquals(40609312, model.frontendPortRangeStart()); + Assertions.assertEquals(1077701136, model.frontendPortRangeEnd()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeSkuCapacityTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeSkuCapacityTests.java index 67b3b1639bc4..a4843a542369 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeSkuCapacityTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeSkuCapacityTests.java @@ -12,7 +12,7 @@ public final class NodeTypeSkuCapacityTests { public void testDeserialize() throws Exception { NodeTypeSkuCapacity model = BinaryData .fromString( - "{\"minimum\":1877295480,\"maximum\":1922609600,\"default\":462603095,\"scaleType\":\"Automatic\"}") + "{\"minimum\":1812829551,\"maximum\":1377717439,\"default\":355548039,\"scaleType\":\"Manual\"}") .toObject(NodeTypeSkuCapacity.class); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeSkuTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeSkuTests.java index b5ccdc8b0e3f..2dcb8e960a01 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeSkuTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeSkuTests.java @@ -11,21 +11,19 @@ public final class NodeTypeSkuTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - NodeTypeSku model - = BinaryData.fromString("{\"name\":\"jzhpjbibgjmfx\",\"tier\":\"vfcluyovwxnbkfe\",\"capacity\":1794198042}") - .toObject(NodeTypeSku.class); - Assertions.assertEquals("jzhpjbibgjmfx", model.name()); - Assertions.assertEquals("vfcluyovwxnbkfe", model.tier()); - Assertions.assertEquals(1794198042, model.capacity()); + NodeTypeSku model = BinaryData.fromString("{\"name\":\"kjprvk\",\"tier\":\"fz\",\"capacity\":497380476}") + .toObject(NodeTypeSku.class); + Assertions.assertEquals("kjprvk", model.name()); + Assertions.assertEquals("fz", model.tier()); + Assertions.assertEquals(497380476, model.capacity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - NodeTypeSku model - = new NodeTypeSku().withName("jzhpjbibgjmfx").withTier("vfcluyovwxnbkfe").withCapacity(1794198042); + NodeTypeSku model = new NodeTypeSku().withName("kjprvk").withTier("fz").withCapacity(497380476); model = BinaryData.fromObject(model).toObject(NodeTypeSku.class); - Assertions.assertEquals("jzhpjbibgjmfx", model.name()); - Assertions.assertEquals("vfcluyovwxnbkfe", model.tier()); - Assertions.assertEquals(1794198042, model.capacity()); + Assertions.assertEquals("kjprvk", model.name()); + Assertions.assertEquals("fz", model.tier()); + Assertions.assertEquals(497380476, model.capacity()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeSkusListMockTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeSkusListMockTests.java index 8a7fa355c0bb..3f2f1c9c3ac9 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeSkusListMockTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeSkusListMockTests.java @@ -21,7 +21,7 @@ public final class NodeTypeSkusListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"resourceType\":\"xjawrt\",\"sku\":{\"name\":\"jmyccxlzhcoxov\",\"tier\":\"khenlus\"},\"capacity\":{\"minimum\":742162315,\"maximum\":1821687022,\"default\":325685122,\"scaleType\":\"Manual\"}}]}"; + = "{\"value\":[{\"resourceType\":\"g\",\"sku\":{\"name\":\"gdlfgt\",\"tier\":\"snaquf\"},\"capacity\":{\"minimum\":821039939,\"maximum\":230335495,\"default\":553103423,\"scaleType\":\"None\"}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,7 +31,7 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.nodeTypeSkus().list("bauiropi", "nszonwpngaj", "n", com.azure.core.util.Context.NONE); + = manager.nodeTypeSkus().list("hzjqatucoige", "xncnwfe", "bnwgfmxj", com.azure.core.util.Context.NONE); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeSupportedSkuTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeSupportedSkuTests.java index 959f672e21b4..a72f416b5316 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeSupportedSkuTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeSupportedSkuTests.java @@ -10,7 +10,7 @@ public final class NodeTypeSupportedSkuTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - NodeTypeSupportedSku model = BinaryData.fromString("{\"name\":\"iqtqzfavyvnq\",\"tier\":\"bar\"}") + NodeTypeSupportedSku model = BinaryData.fromString("{\"name\":\"dufiq\",\"tier\":\"ieuzaofjchvcyyy\"}") .toObject(NodeTypeSupportedSku.class); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeUpdateParametersTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeUpdateParametersTests.java index bd9e2960788a..54ab5a575f4b 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeUpdateParametersTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypeUpdateParametersTests.java @@ -15,24 +15,24 @@ public final class NodeTypeUpdateParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NodeTypeUpdateParameters model = BinaryData.fromString( - "{\"tags\":{\"wzdgirujbzbo\":\"cy\",\"pniyujviyl\":\"vzzbtdcq\"},\"sku\":{\"name\":\"hfssnrb\",\"tier\":\"efr\",\"capacity\":1375463592}}") + "{\"tags\":{\"tczheydbsdshmkx\":\"x\",\"ltfnhtbaxkgx\":\"aehvbbxuri\"},\"sku\":{\"name\":\"ckpyklyhplu\",\"tier\":\"pvruudlg\",\"capacity\":1558509810}}") .toObject(NodeTypeUpdateParameters.class); - Assertions.assertEquals("cy", model.tags().get("wzdgirujbzbo")); - Assertions.assertEquals("hfssnrb", model.sku().name()); - Assertions.assertEquals("efr", model.sku().tier()); - Assertions.assertEquals(1375463592, model.sku().capacity()); + Assertions.assertEquals("x", model.tags().get("tczheydbsdshmkx")); + Assertions.assertEquals("ckpyklyhplu", model.sku().name()); + Assertions.assertEquals("pvruudlg", model.sku().tier()); + Assertions.assertEquals(1558509810, model.sku().capacity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { NodeTypeUpdateParameters model - = new NodeTypeUpdateParameters().withTags(mapOf("wzdgirujbzbo", "cy", "pniyujviyl", "vzzbtdcq")) - .withSku(new NodeTypeSku().withName("hfssnrb").withTier("efr").withCapacity(1375463592)); + = new NodeTypeUpdateParameters().withTags(mapOf("tczheydbsdshmkx", "x", "ltfnhtbaxkgx", "aehvbbxuri")) + .withSku(new NodeTypeSku().withName("ckpyklyhplu").withTier("pvruudlg").withCapacity(1558509810)); model = BinaryData.fromObject(model).toObject(NodeTypeUpdateParameters.class); - Assertions.assertEquals("cy", model.tags().get("wzdgirujbzbo")); - Assertions.assertEquals("hfssnrb", model.sku().name()); - Assertions.assertEquals("efr", model.sku().tier()); - Assertions.assertEquals(1375463592, model.sku().capacity()); + Assertions.assertEquals("x", model.tags().get("tczheydbsdshmkx")); + Assertions.assertEquals("ckpyklyhplu", model.sku().name()); + Assertions.assertEquals("pvruudlg", model.sku().tier()); + Assertions.assertEquals(1558509810, model.sku().capacity()); } // Use "Map.of" if available diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesGetFaultSimulationWithResponseMockTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesGetFaultSimulationWithResponseMockTests.java index 8c1854878b28..b330844d594b 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesGetFaultSimulationWithResponseMockTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesGetFaultSimulationWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class NodeTypesGetFaultSimulationWithResponseMockTests { @Test public void testGetFaultSimulationWithResponse() throws Exception { String responseStr - = "{\"simulationId\":\"qpswokmvkhlggdhb\",\"status\":\"StartFailed\",\"startTime\":\"2021-11-19T21:48:38Z\",\"endTime\":\"2021-10-24T18:45:15Z\",\"details\":{\"clusterId\":\"wiwtglxxhl\",\"operationId\":\"pg\",\"nodeTypeFaultSimulation\":[{\"nodeTypeName\":\"mnzhrgmqg\",\"status\":\"Starting\",\"operationId\":\"pqcbfrmbodthsq\",\"operationStatus\":\"Succeeded\"},{\"nodeTypeName\":\"iibakcl\",\"status\":\"StartFailed\",\"operationId\":\"rnxousxauzlwvsg\",\"operationStatus\":\"Aborted\"},{\"nodeTypeName\":\"qf\",\"status\":\"Starting\",\"operationId\":\"uxmmkjsvthnwp\",\"operationStatus\":\"Canceled\"},{\"nodeTypeName\":\"ovmribiattg\",\"status\":\"Active\",\"operationId\":\"fotang\",\"operationStatus\":\"Canceled\"}],\"parameters\":{\"faultKind\":\"FaultSimulationContent\",\"force\":false,\"constraints\":{\"expirationTime\":\"2021-04-07T10:16:52Z\"}}}}"; + = "{\"simulationId\":\"wvsgmwohqfzizvu\",\"status\":\"Stopping\",\"startTime\":\"2021-05-31T23:38:12Z\",\"endTime\":\"2021-11-29T19:19:58Z\",\"details\":{\"clusterId\":\"nwpztekovmrib\",\"operationId\":\"ttgplucfotangcf\",\"nodeTypeFaultSimulation\":[{\"nodeTypeName\":\"zcugswvxwlmzqw\",\"status\":\"Done\",\"operationId\":\"njmxmcuqudtcvcl\",\"operationStatus\":\"Created\"},{\"nodeTypeName\":\"dkvgfabuiyjibuzp\",\"status\":\"Done\",\"operationId\":\"neiknpg\",\"operationStatus\":\"Canceled\"},{\"nodeTypeName\":\"iuqhibtozipqwj\",\"status\":\"Active\",\"operationId\":\"rrxxgewpktvq\",\"operationStatus\":\"Canceled\"}],\"parameters\":{\"faultKind\":\"FaultSimulationContent\",\"force\":true,\"constraints\":{\"expirationTime\":\"2021-10-19T13:03Z\"}}}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,24 +34,24 @@ public void testGetFaultSimulationWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); FaultSimulation response = manager.nodeTypes() - .getFaultSimulationWithResponse("hgovfgp", "kqmhhaowjr", "zvuporqzdfuydz", - new FaultSimulationIdContent().withSimulationId("kfvxcnq"), com.azure.core.util.Context.NONE) + .getFaultSimulationWithResponse("mqgjsxvpq", "bfrmbodthsqqgvri", "bakclacjfrnxous", + new FaultSimulationIdContent().withSimulationId("au"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("qpswokmvkhlggdhb", response.simulationId()); - Assertions.assertEquals(FaultSimulationStatus.START_FAILED, response.status()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-19T21:48:38Z"), response.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-24T18:45:15Z"), response.endTime()); - Assertions.assertEquals("wiwtglxxhl", response.details().clusterId()); - Assertions.assertEquals("pg", response.details().operationId()); - Assertions.assertEquals("mnzhrgmqg", response.details().nodeTypeFaultSimulation().get(0).nodeTypeName()); - Assertions.assertEquals(FaultSimulationStatus.STARTING, + Assertions.assertEquals("wvsgmwohqfzizvu", response.simulationId()); + Assertions.assertEquals(FaultSimulationStatus.STOPPING, response.status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-31T23:38:12Z"), response.startTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-29T19:19:58Z"), response.endTime()); + Assertions.assertEquals("nwpztekovmrib", response.details().clusterId()); + Assertions.assertEquals("ttgplucfotangcf", response.details().operationId()); + Assertions.assertEquals("zcugswvxwlmzqw", response.details().nodeTypeFaultSimulation().get(0).nodeTypeName()); + Assertions.assertEquals(FaultSimulationStatus.DONE, response.details().nodeTypeFaultSimulation().get(0).status()); - Assertions.assertEquals("pqcbfrmbodthsq", response.details().nodeTypeFaultSimulation().get(0).operationId()); - Assertions.assertEquals(SfmcOperationStatus.SUCCEEDED, + Assertions.assertEquals("njmxmcuqudtcvcl", response.details().nodeTypeFaultSimulation().get(0).operationId()); + Assertions.assertEquals(SfmcOperationStatus.CREATED, response.details().nodeTypeFaultSimulation().get(0).operationStatus()); - Assertions.assertFalse(response.details().parameters().force()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-07T10:16:52Z"), + Assertions.assertTrue(response.details().parameters().force()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-19T13:03Z"), response.details().parameters().constraints().expirationTime()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesListFaultSimulationMockTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesListFaultSimulationMockTests.java index 600bd2543ab8..2f1c13c05bba 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesListFaultSimulationMockTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/NodeTypesListFaultSimulationMockTests.java @@ -24,7 +24,7 @@ public final class NodeTypesListFaultSimulationMockTests { @Test public void testListFaultSimulation() throws Exception { String responseStr - = "{\"value\":[{\"simulationId\":\"vclx\",\"status\":\"Done\",\"startTime\":\"2021-04-22T20:04:17Z\",\"endTime\":\"2021-07-17T14:44:19Z\",\"details\":{\"clusterId\":\"buiyji\",\"operationId\":\"zphdugneiknp\",\"nodeTypeFaultSimulation\":[{\"nodeTypeName\":\"jiuqhibtozi\",\"status\":\"Stopping\",\"operationId\":\"edmurrxxge\",\"operationStatus\":\"Canceled\"},{\"nodeTypeName\":\"vqylkmqpzoyhl\",\"status\":\"Done\",\"operationId\":\"wgcloxoebqinji\",\"operationStatus\":\"Failed\"}],\"parameters\":{\"faultKind\":\"FaultSimulationContent\",\"force\":true,\"constraints\":{\"expirationTime\":\"2021-10-27T23:36:18Z\"}}}}]}"; + = "{\"value\":[{\"simulationId\":\"jqlafcbahhpzp\",\"status\":\"StopFailed\",\"startTime\":\"2021-01-21T09:59:18Z\",\"endTime\":\"2021-05-13T07:58:47Z\",\"details\":{\"clusterId\":\"ilkmk\",\"operationId\":\"olvdnd\",\"nodeTypeFaultSimulation\":[{\"nodeTypeName\":\"ogphuartvtiu\",\"status\":\"StartFailed\",\"operationId\":\"chnmna\",\"operationStatus\":\"Succeeded\"}],\"parameters\":{\"faultKind\":\"FaultSimulationContent\",\"force\":false,\"constraints\":{\"expirationTime\":\"2021-08-02T04:27:45Z\"}}}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,24 +34,24 @@ public void testListFaultSimulation() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.nodeTypes() - .listFaultSimulation("gswvxwlmzqwm", "tx", "jmxmcuqud", com.azure.core.util.Context.NONE); + .listFaultSimulation("hlfbcgwgc", "oxoebqi", "jipnwj", com.azure.core.util.Context.NONE); - Assertions.assertEquals("vclx", response.iterator().next().simulationId()); - Assertions.assertEquals(FaultSimulationStatus.DONE, response.iterator().next().status()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-22T20:04:17Z"), response.iterator().next().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-17T14:44:19Z"), response.iterator().next().endTime()); - Assertions.assertEquals("buiyji", response.iterator().next().details().clusterId()); - Assertions.assertEquals("zphdugneiknp", response.iterator().next().details().operationId()); - Assertions.assertEquals("jiuqhibtozi", + Assertions.assertEquals("jqlafcbahhpzp", response.iterator().next().simulationId()); + Assertions.assertEquals(FaultSimulationStatus.STOP_FAILED, response.iterator().next().status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-21T09:59:18Z"), response.iterator().next().startTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-13T07:58:47Z"), response.iterator().next().endTime()); + Assertions.assertEquals("ilkmk", response.iterator().next().details().clusterId()); + Assertions.assertEquals("olvdnd", response.iterator().next().details().operationId()); + Assertions.assertEquals("ogphuartvtiu", response.iterator().next().details().nodeTypeFaultSimulation().get(0).nodeTypeName()); - Assertions.assertEquals(FaultSimulationStatus.STOPPING, + Assertions.assertEquals(FaultSimulationStatus.START_FAILED, response.iterator().next().details().nodeTypeFaultSimulation().get(0).status()); - Assertions.assertEquals("edmurrxxge", + Assertions.assertEquals("chnmna", response.iterator().next().details().nodeTypeFaultSimulation().get(0).operationId()); - Assertions.assertEquals(SfmcOperationStatus.CANCELED, + Assertions.assertEquals(SfmcOperationStatus.SUCCEEDED, response.iterator().next().details().nodeTypeFaultSimulation().get(0).operationStatus()); - Assertions.assertTrue(response.iterator().next().details().parameters().force()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-27T23:36:18Z"), + Assertions.assertFalse(response.iterator().next().details().parameters().force()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-02T04:27:45Z"), response.iterator().next().details().parameters().constraints().expirationTime()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/OperationsListMockTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/OperationsListMockTests.java index 31f82ae23451..b38c32a46ef6 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/OperationsListMockTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/OperationsListMockTests.java @@ -22,7 +22,7 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"qgzsles\",\"isDataAction\":true,\"display\":{\"provider\":\"rnntiewdjcv\",\"resource\":\"uwrbehwagoh\",\"operation\":\"f\",\"description\":\"mrqemvvhmx\"},\"origin\":\"rjfut\",\"nextLink\":\"oe\"}]}"; + = "{\"value\":[{\"name\":\"ip\",\"isDataAction\":false,\"display\":{\"provider\":\"qonmacj\",\"resource\":\"nizshqvcim\",\"operation\":\"vfgmblrrilby\",\"description\":\"xsmiccwrwfscjf\"},\"origin\":\"nszqujiz\",\"nextLink\":\"oqytibyowbblgy\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,13 +33,13 @@ public void testList() throws Exception { PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("qgzsles", response.iterator().next().name()); - Assertions.assertTrue(response.iterator().next().isDataAction()); - Assertions.assertEquals("rnntiewdjcv", response.iterator().next().display().provider()); - Assertions.assertEquals("uwrbehwagoh", response.iterator().next().display().resource()); - Assertions.assertEquals("f", response.iterator().next().display().operation()); - Assertions.assertEquals("mrqemvvhmx", response.iterator().next().display().description()); - Assertions.assertEquals("rjfut", response.iterator().next().origin()); - Assertions.assertEquals("oe", response.iterator().next().nextLink()); + Assertions.assertEquals("ip", response.iterator().next().name()); + Assertions.assertFalse(response.iterator().next().isDataAction()); + Assertions.assertEquals("qonmacj", response.iterator().next().display().provider()); + Assertions.assertEquals("nizshqvcim", response.iterator().next().display().resource()); + Assertions.assertEquals("vfgmblrrilby", response.iterator().next().display().operation()); + Assertions.assertEquals("xsmiccwrwfscjf", response.iterator().next().display().description()); + Assertions.assertEquals("nszqujiz", response.iterator().next().origin()); + Assertions.assertEquals("oqytibyowbblgy", response.iterator().next().nextLink()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/PartitionInstanceCountScaleMechanismTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/PartitionInstanceCountScaleMechanismTests.java index 1941f2b40ac6..da898de92fa1 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/PartitionInstanceCountScaleMechanismTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/PartitionInstanceCountScaleMechanismTests.java @@ -12,22 +12,22 @@ public final class PartitionInstanceCountScaleMechanismTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PartitionInstanceCountScaleMechanism model = BinaryData.fromString( - "{\"kind\":\"ScalePartitionInstanceCount\",\"minInstanceCount\":194224762,\"maxInstanceCount\":803457218,\"scaleIncrement\":1162707208}") + "{\"kind\":\"ScalePartitionInstanceCount\",\"minInstanceCount\":1072723853,\"maxInstanceCount\":2063268376,\"scaleIncrement\":720725723}") .toObject(PartitionInstanceCountScaleMechanism.class); - Assertions.assertEquals(194224762, model.minInstanceCount()); - Assertions.assertEquals(803457218, model.maxInstanceCount()); - Assertions.assertEquals(1162707208, model.scaleIncrement()); + Assertions.assertEquals(1072723853, model.minInstanceCount()); + Assertions.assertEquals(2063268376, model.maxInstanceCount()); + Assertions.assertEquals(720725723, model.scaleIncrement()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PartitionInstanceCountScaleMechanism model - = new PartitionInstanceCountScaleMechanism().withMinInstanceCount(194224762) - .withMaxInstanceCount(803457218) - .withScaleIncrement(1162707208); + = new PartitionInstanceCountScaleMechanism().withMinInstanceCount(1072723853) + .withMaxInstanceCount(2063268376) + .withScaleIncrement(720725723); model = BinaryData.fromObject(model).toObject(PartitionInstanceCountScaleMechanism.class); - Assertions.assertEquals(194224762, model.minInstanceCount()); - Assertions.assertEquals(803457218, model.maxInstanceCount()); - Assertions.assertEquals(1162707208, model.scaleIncrement()); + Assertions.assertEquals(1072723853, model.minInstanceCount()); + Assertions.assertEquals(2063268376, model.maxInstanceCount()); + Assertions.assertEquals(720725723, model.scaleIncrement()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ResourceAzStatusTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ResourceAzStatusTests.java index 5daf7f0fbb73..c9cdaf424f7a 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ResourceAzStatusTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ResourceAzStatusTests.java @@ -11,7 +11,7 @@ public final class ResourceAzStatusTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ResourceAzStatus model = BinaryData.fromString( - "{\"resourceName\":\"rzgszufoxci\",\"resourceType\":\"p\",\"isZoneResilient\":false,\"details\":\"mciodhkhazxkhn\"}") + "{\"resourceName\":\"acizsjqlhkrr\",\"resourceType\":\"deibqip\",\"isZoneResilient\":true,\"details\":\"vxndz\"}") .toObject(ResourceAzStatus.class); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/RestartReplicaRequestTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/RestartReplicaRequestTests.java new file mode 100644 index 000000000000..ea86313fe0e9 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/RestartReplicaRequestTests.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.servicefabricmanagedclusters.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RestartKind; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RestartReplicaRequest; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class RestartReplicaRequestTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RestartReplicaRequest model = BinaryData.fromString( + "{\"partitionId\":\"iwbwoenwashrtdtk\",\"replicaIds\":[3530483379804377024,8545363856594134553],\"restartKind\":\"Simultaneous\",\"forceRestart\":true,\"timeout\":8644340540999896271}") + .toObject(RestartReplicaRequest.class); + Assertions.assertEquals("iwbwoenwashrtdtk", model.partitionId()); + Assertions.assertEquals(3530483379804377024L, model.replicaIds().get(0)); + Assertions.assertEquals(RestartKind.SIMULTANEOUS, model.restartKind()); + Assertions.assertTrue(model.forceRestart()); + Assertions.assertEquals(8644340540999896271L, model.timeout()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + RestartReplicaRequest model = new RestartReplicaRequest().withPartitionId("iwbwoenwashrtdtk") + .withReplicaIds(Arrays.asList(3530483379804377024L, 8545363856594134553L)) + .withRestartKind(RestartKind.SIMULTANEOUS) + .withForceRestart(true) + .withTimeout(8644340540999896271L); + model = BinaryData.fromObject(model).toObject(RestartReplicaRequest.class); + Assertions.assertEquals("iwbwoenwashrtdtk", model.partitionId()); + Assertions.assertEquals(3530483379804377024L, model.replicaIds().get(0)); + Assertions.assertEquals(RestartKind.SIMULTANEOUS, model.restartKind()); + Assertions.assertTrue(model.forceRestart()); + Assertions.assertEquals(8644340540999896271L, model.timeout()); + } +} diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/RuntimeApplicationHealthPolicyTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/RuntimeApplicationHealthPolicyTests.java new file mode 100644 index 000000000000..2dd77d26af59 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/RuntimeApplicationHealthPolicyTests.java @@ -0,0 +1,78 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.servicefabricmanagedclusters.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeApplicationHealthPolicy; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeServiceTypeHealthPolicy; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class RuntimeApplicationHealthPolicyTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RuntimeApplicationHealthPolicy model = BinaryData.fromString( + "{\"considerWarningAsError\":true,\"maxPercentUnhealthyDeployedApplications\":905507147,\"defaultServiceTypeHealthPolicy\":{\"maxPercentUnhealthyServices\":294567134,\"maxPercentUnhealthyPartitionsPerService\":266686286,\"maxPercentUnhealthyReplicasPerPartition\":599393599},\"serviceTypeHealthPolicyMap\":{\"spnqzahmgkb\":{\"maxPercentUnhealthyServices\":1381039739,\"maxPercentUnhealthyPartitionsPerService\":1526069036,\"maxPercentUnhealthyReplicasPerPartition\":1610498845},\"dhibnuq\":{\"maxPercentUnhealthyServices\":1556572818,\"maxPercentUnhealthyPartitionsPerService\":567432535,\"maxPercentUnhealthyReplicasPerPartition\":188498280}}}") + .toObject(RuntimeApplicationHealthPolicy.class); + Assertions.assertTrue(model.considerWarningAsError()); + Assertions.assertEquals(905507147, model.maxPercentUnhealthyDeployedApplications()); + Assertions.assertEquals(294567134, model.defaultServiceTypeHealthPolicy().maxPercentUnhealthyServices()); + Assertions.assertEquals(266686286, + model.defaultServiceTypeHealthPolicy().maxPercentUnhealthyPartitionsPerService()); + Assertions.assertEquals(599393599, + model.defaultServiceTypeHealthPolicy().maxPercentUnhealthyReplicasPerPartition()); + Assertions.assertEquals(1381039739, + model.serviceTypeHealthPolicyMap().get("spnqzahmgkb").maxPercentUnhealthyServices()); + Assertions.assertEquals(1526069036, + model.serviceTypeHealthPolicyMap().get("spnqzahmgkb").maxPercentUnhealthyPartitionsPerService()); + Assertions.assertEquals(1610498845, + model.serviceTypeHealthPolicyMap().get("spnqzahmgkb").maxPercentUnhealthyReplicasPerPartition()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + RuntimeApplicationHealthPolicy model = new RuntimeApplicationHealthPolicy().withConsiderWarningAsError(true) + .withMaxPercentUnhealthyDeployedApplications(905507147) + .withDefaultServiceTypeHealthPolicy( + new RuntimeServiceTypeHealthPolicy().withMaxPercentUnhealthyServices(294567134) + .withMaxPercentUnhealthyPartitionsPerService(266686286) + .withMaxPercentUnhealthyReplicasPerPartition(599393599)) + .withServiceTypeHealthPolicyMap(mapOf("spnqzahmgkb", + new RuntimeServiceTypeHealthPolicy().withMaxPercentUnhealthyServices(1381039739) + .withMaxPercentUnhealthyPartitionsPerService(1526069036) + .withMaxPercentUnhealthyReplicasPerPartition(1610498845), + "dhibnuq", + new RuntimeServiceTypeHealthPolicy().withMaxPercentUnhealthyServices(1556572818) + .withMaxPercentUnhealthyPartitionsPerService(567432535) + .withMaxPercentUnhealthyReplicasPerPartition(188498280))); + model = BinaryData.fromObject(model).toObject(RuntimeApplicationHealthPolicy.class); + Assertions.assertTrue(model.considerWarningAsError()); + Assertions.assertEquals(905507147, model.maxPercentUnhealthyDeployedApplications()); + Assertions.assertEquals(294567134, model.defaultServiceTypeHealthPolicy().maxPercentUnhealthyServices()); + Assertions.assertEquals(266686286, + model.defaultServiceTypeHealthPolicy().maxPercentUnhealthyPartitionsPerService()); + Assertions.assertEquals(599393599, + model.defaultServiceTypeHealthPolicy().maxPercentUnhealthyReplicasPerPartition()); + Assertions.assertEquals(1381039739, + model.serviceTypeHealthPolicyMap().get("spnqzahmgkb").maxPercentUnhealthyServices()); + Assertions.assertEquals(1526069036, + model.serviceTypeHealthPolicyMap().get("spnqzahmgkb").maxPercentUnhealthyPartitionsPerService()); + Assertions.assertEquals(1610498845, + model.serviceTypeHealthPolicyMap().get("spnqzahmgkb").maxPercentUnhealthyReplicasPerPartition()); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/RuntimeResumeApplicationUpgradeParametersTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/RuntimeResumeApplicationUpgradeParametersTests.java index d442fc9bcea0..a72390ca5a01 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/RuntimeResumeApplicationUpgradeParametersTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/RuntimeResumeApplicationUpgradeParametersTests.java @@ -11,17 +11,16 @@ public final class RuntimeResumeApplicationUpgradeParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RuntimeResumeApplicationUpgradeParameters model - = BinaryData.fromString("{\"upgradeDomainName\":\"fhyhltrpmopjmcma\"}") - .toObject(RuntimeResumeApplicationUpgradeParameters.class); - Assertions.assertEquals("fhyhltrpmopjmcma", model.upgradeDomainName()); + RuntimeResumeApplicationUpgradeParameters model = BinaryData.fromString("{\"upgradeDomainName\":\"xerf\"}") + .toObject(RuntimeResumeApplicationUpgradeParameters.class); + Assertions.assertEquals("xerf", model.upgradeDomainName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RuntimeResumeApplicationUpgradeParameters model - = new RuntimeResumeApplicationUpgradeParameters().withUpgradeDomainName("fhyhltrpmopjmcma"); + = new RuntimeResumeApplicationUpgradeParameters().withUpgradeDomainName("xerf"); model = BinaryData.fromObject(model).toObject(RuntimeResumeApplicationUpgradeParameters.class); - Assertions.assertEquals("fhyhltrpmopjmcma", model.upgradeDomainName()); + Assertions.assertEquals("xerf", model.upgradeDomainName()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/RuntimeRollingUpgradeUpdateMonitoringPolicyTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/RuntimeRollingUpgradeUpdateMonitoringPolicyTests.java new file mode 100644 index 000000000000..161d1ad67622 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/RuntimeRollingUpgradeUpdateMonitoringPolicyTests.java @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.servicefabricmanagedclusters.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeFailureAction; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeRollingUpgradeMode; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeRollingUpgradeUpdateMonitoringPolicy; +import org.junit.jupiter.api.Assertions; + +public final class RuntimeRollingUpgradeUpdateMonitoringPolicyTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RuntimeRollingUpgradeUpdateMonitoringPolicy model = BinaryData.fromString( + "{\"rollingUpgradeMode\":\"UnmonitoredAuto\",\"forceRestart\":true,\"replicaSetCheckTimeoutInMilliseconds\":4325126672944286944,\"failureAction\":\"Rollback\",\"healthCheckWaitDurationInMilliseconds\":\"gnbuy\",\"healthCheckStableDurationInMilliseconds\":\"ijggmebfsiar\",\"healthCheckRetryTimeoutInMilliseconds\":\"trcvpnazzmh\",\"upgradeTimeoutInMilliseconds\":\"unmpxttd\",\"upgradeDomainTimeoutInMilliseconds\":\"rbnlankxmyskp\",\"instanceCloseDelayDurationInSeconds\":3194027088014349388}") + .toObject(RuntimeRollingUpgradeUpdateMonitoringPolicy.class); + Assertions.assertEquals(RuntimeRollingUpgradeMode.UNMONITORED_AUTO, model.rollingUpgradeMode()); + Assertions.assertTrue(model.forceRestart()); + Assertions.assertEquals(4325126672944286944L, model.replicaSetCheckTimeoutInMilliseconds()); + Assertions.assertEquals(RuntimeFailureAction.ROLLBACK, model.failureAction()); + Assertions.assertEquals("gnbuy", model.healthCheckWaitDurationInMilliseconds()); + Assertions.assertEquals("ijggmebfsiar", model.healthCheckStableDurationInMilliseconds()); + Assertions.assertEquals("trcvpnazzmh", model.healthCheckRetryTimeoutInMilliseconds()); + Assertions.assertEquals("unmpxttd", model.upgradeTimeoutInMilliseconds()); + Assertions.assertEquals("rbnlankxmyskp", model.upgradeDomainTimeoutInMilliseconds()); + Assertions.assertEquals(3194027088014349388L, model.instanceCloseDelayDurationInSeconds()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + RuntimeRollingUpgradeUpdateMonitoringPolicy model = new RuntimeRollingUpgradeUpdateMonitoringPolicy() + .withRollingUpgradeMode(RuntimeRollingUpgradeMode.UNMONITORED_AUTO) + .withForceRestart(true) + .withReplicaSetCheckTimeoutInMilliseconds(4325126672944286944L) + .withFailureAction(RuntimeFailureAction.ROLLBACK) + .withHealthCheckWaitDurationInMilliseconds("gnbuy") + .withHealthCheckStableDurationInMilliseconds("ijggmebfsiar") + .withHealthCheckRetryTimeoutInMilliseconds("trcvpnazzmh") + .withUpgradeTimeoutInMilliseconds("unmpxttd") + .withUpgradeDomainTimeoutInMilliseconds("rbnlankxmyskp") + .withInstanceCloseDelayDurationInSeconds(3194027088014349388L); + model = BinaryData.fromObject(model).toObject(RuntimeRollingUpgradeUpdateMonitoringPolicy.class); + Assertions.assertEquals(RuntimeRollingUpgradeMode.UNMONITORED_AUTO, model.rollingUpgradeMode()); + Assertions.assertTrue(model.forceRestart()); + Assertions.assertEquals(4325126672944286944L, model.replicaSetCheckTimeoutInMilliseconds()); + Assertions.assertEquals(RuntimeFailureAction.ROLLBACK, model.failureAction()); + Assertions.assertEquals("gnbuy", model.healthCheckWaitDurationInMilliseconds()); + Assertions.assertEquals("ijggmebfsiar", model.healthCheckStableDurationInMilliseconds()); + Assertions.assertEquals("trcvpnazzmh", model.healthCheckRetryTimeoutInMilliseconds()); + Assertions.assertEquals("unmpxttd", model.upgradeTimeoutInMilliseconds()); + Assertions.assertEquals("rbnlankxmyskp", model.upgradeDomainTimeoutInMilliseconds()); + Assertions.assertEquals(3194027088014349388L, model.instanceCloseDelayDurationInSeconds()); + } +} diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/RuntimeServiceTypeHealthPolicyTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/RuntimeServiceTypeHealthPolicyTests.java new file mode 100644 index 000000000000..20633a03ded7 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/RuntimeServiceTypeHealthPolicyTests.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.servicefabricmanagedclusters.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeServiceTypeHealthPolicy; +import org.junit.jupiter.api.Assertions; + +public final class RuntimeServiceTypeHealthPolicyTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RuntimeServiceTypeHealthPolicy model = BinaryData.fromString( + "{\"maxPercentUnhealthyServices\":486608625,\"maxPercentUnhealthyPartitionsPerService\":1122159032,\"maxPercentUnhealthyReplicasPerPartition\":500953055}") + .toObject(RuntimeServiceTypeHealthPolicy.class); + Assertions.assertEquals(486608625, model.maxPercentUnhealthyServices()); + Assertions.assertEquals(1122159032, model.maxPercentUnhealthyPartitionsPerService()); + Assertions.assertEquals(500953055, model.maxPercentUnhealthyReplicasPerPartition()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + RuntimeServiceTypeHealthPolicy model + = new RuntimeServiceTypeHealthPolicy().withMaxPercentUnhealthyServices(486608625) + .withMaxPercentUnhealthyPartitionsPerService(1122159032) + .withMaxPercentUnhealthyReplicasPerPartition(500953055); + model = BinaryData.fromObject(model).toObject(RuntimeServiceTypeHealthPolicy.class); + Assertions.assertEquals(486608625, model.maxPercentUnhealthyServices()); + Assertions.assertEquals(1122159032, model.maxPercentUnhealthyPartitionsPerService()); + Assertions.assertEquals(500953055, model.maxPercentUnhealthyReplicasPerPartition()); + } +} diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/RuntimeUpdateApplicationUpgradeParametersTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/RuntimeUpdateApplicationUpgradeParametersTests.java new file mode 100644 index 000000000000..17f02adc3aa3 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/RuntimeUpdateApplicationUpgradeParametersTests.java @@ -0,0 +1,137 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.servicefabricmanagedclusters.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeApplicationHealthPolicy; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeFailureAction; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeRollingUpgradeMode; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeRollingUpgradeUpdateMonitoringPolicy; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeServiceTypeHealthPolicy; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeUpdateApplicationUpgradeParameters; +import com.azure.resourcemanager.servicefabricmanagedclusters.models.RuntimeUpgradeKind; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class RuntimeUpdateApplicationUpgradeParametersTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RuntimeUpdateApplicationUpgradeParameters model = BinaryData.fromString( + "{\"name\":\"wutttxfvjrbi\",\"upgradeKind\":\"Rolling\",\"applicationHealthPolicy\":{\"considerWarningAsError\":true,\"maxPercentUnhealthyDeployedApplications\":684290279,\"defaultServiceTypeHealthPolicy\":{\"maxPercentUnhealthyServices\":99482426,\"maxPercentUnhealthyPartitionsPerService\":536989913,\"maxPercentUnhealthyReplicasPerPartition\":1103023268},\"serviceTypeHealthPolicyMap\":{\"jky\":{\"maxPercentUnhealthyServices\":1504948811,\"maxPercentUnhealthyPartitionsPerService\":1195568358,\"maxPercentUnhealthyReplicasPerPartition\":772905747},\"uujqgidokgjljyo\":{\"maxPercentUnhealthyServices\":1084643517,\"maxPercentUnhealthyPartitionsPerService\":197436298,\"maxPercentUnhealthyReplicasPerPartition\":1238878906}}},\"updateDescription\":{\"rollingUpgradeMode\":\"UnmonitoredAuto\",\"forceRestart\":true,\"replicaSetCheckTimeoutInMilliseconds\":7617371072440792626,\"failureAction\":\"Rollback\",\"healthCheckWaitDurationInMilliseconds\":\"ghkjeszzhbi\",\"healthCheckStableDurationInMilliseconds\":\"txfvgx\",\"healthCheckRetryTimeoutInMilliseconds\":\"smx\",\"upgradeTimeoutInMilliseconds\":\"hmpvecx\",\"upgradeDomainTimeoutInMilliseconds\":\"debfqkkrbmpukgri\",\"instanceCloseDelayDurationInSeconds\":1675759018761850231}}") + .toObject(RuntimeUpdateApplicationUpgradeParameters.class); + Assertions.assertEquals("wutttxfvjrbi", model.name()); + Assertions.assertEquals(RuntimeUpgradeKind.ROLLING, model.upgradeKind()); + Assertions.assertTrue(model.applicationHealthPolicy().considerWarningAsError()); + Assertions.assertEquals(684290279, model.applicationHealthPolicy().maxPercentUnhealthyDeployedApplications()); + Assertions.assertEquals(99482426, + model.applicationHealthPolicy().defaultServiceTypeHealthPolicy().maxPercentUnhealthyServices()); + Assertions.assertEquals(536989913, + model.applicationHealthPolicy().defaultServiceTypeHealthPolicy().maxPercentUnhealthyPartitionsPerService()); + Assertions.assertEquals(1103023268, + model.applicationHealthPolicy().defaultServiceTypeHealthPolicy().maxPercentUnhealthyReplicasPerPartition()); + Assertions.assertEquals(1504948811, + model.applicationHealthPolicy().serviceTypeHealthPolicyMap().get("jky").maxPercentUnhealthyServices()); + Assertions.assertEquals(1195568358, + model.applicationHealthPolicy() + .serviceTypeHealthPolicyMap() + .get("jky") + .maxPercentUnhealthyPartitionsPerService()); + Assertions.assertEquals(772905747, + model.applicationHealthPolicy() + .serviceTypeHealthPolicyMap() + .get("jky") + .maxPercentUnhealthyReplicasPerPartition()); + Assertions.assertEquals(RuntimeRollingUpgradeMode.UNMONITORED_AUTO, + model.updateDescription().rollingUpgradeMode()); + Assertions.assertTrue(model.updateDescription().forceRestart()); + Assertions.assertEquals(7617371072440792626L, model.updateDescription().replicaSetCheckTimeoutInMilliseconds()); + Assertions.assertEquals(RuntimeFailureAction.ROLLBACK, model.updateDescription().failureAction()); + Assertions.assertEquals("ghkjeszzhbi", model.updateDescription().healthCheckWaitDurationInMilliseconds()); + Assertions.assertEquals("txfvgx", model.updateDescription().healthCheckStableDurationInMilliseconds()); + Assertions.assertEquals("smx", model.updateDescription().healthCheckRetryTimeoutInMilliseconds()); + Assertions.assertEquals("hmpvecx", model.updateDescription().upgradeTimeoutInMilliseconds()); + Assertions.assertEquals("debfqkkrbmpukgri", model.updateDescription().upgradeDomainTimeoutInMilliseconds()); + Assertions.assertEquals(1675759018761850231L, model.updateDescription().instanceCloseDelayDurationInSeconds()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + RuntimeUpdateApplicationUpgradeParameters model + = new RuntimeUpdateApplicationUpgradeParameters().withName("wutttxfvjrbi") + .withUpgradeKind(RuntimeUpgradeKind.ROLLING) + .withApplicationHealthPolicy(new RuntimeApplicationHealthPolicy().withConsiderWarningAsError(true) + .withMaxPercentUnhealthyDeployedApplications(684290279) + .withDefaultServiceTypeHealthPolicy( + new RuntimeServiceTypeHealthPolicy().withMaxPercentUnhealthyServices(99482426) + .withMaxPercentUnhealthyPartitionsPerService(536989913) + .withMaxPercentUnhealthyReplicasPerPartition(1103023268)) + .withServiceTypeHealthPolicyMap(mapOf("jky", + new RuntimeServiceTypeHealthPolicy().withMaxPercentUnhealthyServices(1504948811) + .withMaxPercentUnhealthyPartitionsPerService(1195568358) + .withMaxPercentUnhealthyReplicasPerPartition(772905747), + "uujqgidokgjljyo", + new RuntimeServiceTypeHealthPolicy().withMaxPercentUnhealthyServices(1084643517) + .withMaxPercentUnhealthyPartitionsPerService(197436298) + .withMaxPercentUnhealthyReplicasPerPartition(1238878906)))) + .withUpdateDescription(new RuntimeRollingUpgradeUpdateMonitoringPolicy() + .withRollingUpgradeMode(RuntimeRollingUpgradeMode.UNMONITORED_AUTO) + .withForceRestart(true) + .withReplicaSetCheckTimeoutInMilliseconds(7617371072440792626L) + .withFailureAction(RuntimeFailureAction.ROLLBACK) + .withHealthCheckWaitDurationInMilliseconds("ghkjeszzhbi") + .withHealthCheckStableDurationInMilliseconds("txfvgx") + .withHealthCheckRetryTimeoutInMilliseconds("smx") + .withUpgradeTimeoutInMilliseconds("hmpvecx") + .withUpgradeDomainTimeoutInMilliseconds("debfqkkrbmpukgri") + .withInstanceCloseDelayDurationInSeconds(1675759018761850231L)); + model = BinaryData.fromObject(model).toObject(RuntimeUpdateApplicationUpgradeParameters.class); + Assertions.assertEquals("wutttxfvjrbi", model.name()); + Assertions.assertEquals(RuntimeUpgradeKind.ROLLING, model.upgradeKind()); + Assertions.assertTrue(model.applicationHealthPolicy().considerWarningAsError()); + Assertions.assertEquals(684290279, model.applicationHealthPolicy().maxPercentUnhealthyDeployedApplications()); + Assertions.assertEquals(99482426, + model.applicationHealthPolicy().defaultServiceTypeHealthPolicy().maxPercentUnhealthyServices()); + Assertions.assertEquals(536989913, + model.applicationHealthPolicy().defaultServiceTypeHealthPolicy().maxPercentUnhealthyPartitionsPerService()); + Assertions.assertEquals(1103023268, + model.applicationHealthPolicy().defaultServiceTypeHealthPolicy().maxPercentUnhealthyReplicasPerPartition()); + Assertions.assertEquals(1504948811, + model.applicationHealthPolicy().serviceTypeHealthPolicyMap().get("jky").maxPercentUnhealthyServices()); + Assertions.assertEquals(1195568358, + model.applicationHealthPolicy() + .serviceTypeHealthPolicyMap() + .get("jky") + .maxPercentUnhealthyPartitionsPerService()); + Assertions.assertEquals(772905747, + model.applicationHealthPolicy() + .serviceTypeHealthPolicyMap() + .get("jky") + .maxPercentUnhealthyReplicasPerPartition()); + Assertions.assertEquals(RuntimeRollingUpgradeMode.UNMONITORED_AUTO, + model.updateDescription().rollingUpgradeMode()); + Assertions.assertTrue(model.updateDescription().forceRestart()); + Assertions.assertEquals(7617371072440792626L, model.updateDescription().replicaSetCheckTimeoutInMilliseconds()); + Assertions.assertEquals(RuntimeFailureAction.ROLLBACK, model.updateDescription().failureAction()); + Assertions.assertEquals("ghkjeszzhbi", model.updateDescription().healthCheckWaitDurationInMilliseconds()); + Assertions.assertEquals("txfvgx", model.updateDescription().healthCheckStableDurationInMilliseconds()); + Assertions.assertEquals("smx", model.updateDescription().healthCheckRetryTimeoutInMilliseconds()); + Assertions.assertEquals("hmpvecx", model.updateDescription().upgradeTimeoutInMilliseconds()); + Assertions.assertEquals("debfqkkrbmpukgri", model.updateDescription().upgradeDomainTimeoutInMilliseconds()); + Assertions.assertEquals(1675759018761850231L, model.updateDescription().instanceCloseDelayDurationInSeconds()); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceCorrelationTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceCorrelationTests.java index 7c1223dc9501..403a02f6d890 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceCorrelationTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceCorrelationTests.java @@ -12,18 +12,19 @@ public final class ServiceCorrelationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ServiceCorrelation model = BinaryData.fromString("{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"ni\"}") - .toObject(ServiceCorrelation.class); - Assertions.assertEquals(ServiceCorrelationScheme.NON_ALIGNED_AFFINITY, model.scheme()); - Assertions.assertEquals("ni", model.serviceName()); + ServiceCorrelation model + = BinaryData.fromString("{\"scheme\":\"AlignedAffinity\",\"serviceName\":\"bncblylpstdbhhx\"}") + .toObject(ServiceCorrelation.class); + Assertions.assertEquals(ServiceCorrelationScheme.ALIGNED_AFFINITY, model.scheme()); + Assertions.assertEquals("bncblylpstdbhhx", model.serviceName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ServiceCorrelation model - = new ServiceCorrelation().withScheme(ServiceCorrelationScheme.NON_ALIGNED_AFFINITY).withServiceName("ni"); + ServiceCorrelation model = new ServiceCorrelation().withScheme(ServiceCorrelationScheme.ALIGNED_AFFINITY) + .withServiceName("bncblylpstdbhhx"); model = BinaryData.fromObject(model).toObject(ServiceCorrelation.class); - Assertions.assertEquals(ServiceCorrelationScheme.NON_ALIGNED_AFFINITY, model.scheme()); - Assertions.assertEquals("ni", model.serviceName()); + Assertions.assertEquals(ServiceCorrelationScheme.ALIGNED_AFFINITY, model.scheme()); + Assertions.assertEquals("bncblylpstdbhhx", model.serviceName()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceEndpointTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceEndpointTests.java index fc4a1a3d5713..f678542f8d89 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceEndpointTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceEndpointTests.java @@ -13,21 +13,22 @@ public final class ServiceEndpointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServiceEndpoint model = BinaryData - .fromString("{\"service\":\"dvwvgpio\",\"locations\":[\"xrtfudxep\"],\"networkIdentifier\":\"yqagvrvm\"}") + .fromString( + "{\"service\":\"ayffim\",\"locations\":[\"tuzqogsexne\",\"fdnw\"],\"networkIdentifier\":\"mewzsyyc\"}") .toObject(ServiceEndpoint.class); - Assertions.assertEquals("dvwvgpio", model.service()); - Assertions.assertEquals("xrtfudxep", model.locations().get(0)); - Assertions.assertEquals("yqagvrvm", model.networkIdentifier()); + Assertions.assertEquals("ayffim", model.service()); + Assertions.assertEquals("tuzqogsexne", model.locations().get(0)); + Assertions.assertEquals("mewzsyyc", model.networkIdentifier()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ServiceEndpoint model = new ServiceEndpoint().withService("dvwvgpio") - .withLocations(Arrays.asList("xrtfudxep")) - .withNetworkIdentifier("yqagvrvm"); + ServiceEndpoint model = new ServiceEndpoint().withService("ayffim") + .withLocations(Arrays.asList("tuzqogsexne", "fdnw")) + .withNetworkIdentifier("mewzsyyc"); model = BinaryData.fromObject(model).toObject(ServiceEndpoint.class); - Assertions.assertEquals("dvwvgpio", model.service()); - Assertions.assertEquals("xrtfudxep", model.locations().get(0)); - Assertions.assertEquals("yqagvrvm", model.networkIdentifier()); + Assertions.assertEquals("ayffim", model.service()); + Assertions.assertEquals("tuzqogsexne", model.locations().get(0)); + Assertions.assertEquals("mewzsyyc", model.networkIdentifier()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceLoadMetricTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceLoadMetricTests.java index d9ef27547bca..13b919e9b210 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceLoadMetricTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceLoadMetricTests.java @@ -13,27 +13,27 @@ public final class ServiceLoadMetricTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServiceLoadMetric model = BinaryData.fromString( - "{\"name\":\"kxfbkpycgklwndn\",\"weight\":\"High\",\"primaryDefaultLoad\":1922459268,\"secondaryDefaultLoad\":2043748556,\"defaultLoad\":1020918643}") + "{\"name\":\"rzdzucerscdnt\",\"weight\":\"Medium\",\"primaryDefaultLoad\":1072156994,\"secondaryDefaultLoad\":2060062752,\"defaultLoad\":511652180}") .toObject(ServiceLoadMetric.class); - Assertions.assertEquals("kxfbkpycgklwndn", model.name()); - Assertions.assertEquals(ServiceLoadMetricWeight.HIGH, model.weight()); - Assertions.assertEquals(1922459268, model.primaryDefaultLoad()); - Assertions.assertEquals(2043748556, model.secondaryDefaultLoad()); - Assertions.assertEquals(1020918643, model.defaultLoad()); + Assertions.assertEquals("rzdzucerscdnt", model.name()); + Assertions.assertEquals(ServiceLoadMetricWeight.MEDIUM, model.weight()); + Assertions.assertEquals(1072156994, model.primaryDefaultLoad()); + Assertions.assertEquals(2060062752, model.secondaryDefaultLoad()); + Assertions.assertEquals(511652180, model.defaultLoad()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ServiceLoadMetric model = new ServiceLoadMetric().withName("kxfbkpycgklwndn") - .withWeight(ServiceLoadMetricWeight.HIGH) - .withPrimaryDefaultLoad(1922459268) - .withSecondaryDefaultLoad(2043748556) - .withDefaultLoad(1020918643); + ServiceLoadMetric model = new ServiceLoadMetric().withName("rzdzucerscdnt") + .withWeight(ServiceLoadMetricWeight.MEDIUM) + .withPrimaryDefaultLoad(1072156994) + .withSecondaryDefaultLoad(2060062752) + .withDefaultLoad(511652180); model = BinaryData.fromObject(model).toObject(ServiceLoadMetric.class); - Assertions.assertEquals("kxfbkpycgklwndn", model.name()); - Assertions.assertEquals(ServiceLoadMetricWeight.HIGH, model.weight()); - Assertions.assertEquals(1922459268, model.primaryDefaultLoad()); - Assertions.assertEquals(2043748556, model.secondaryDefaultLoad()); - Assertions.assertEquals(1020918643, model.defaultLoad()); + Assertions.assertEquals("rzdzucerscdnt", model.name()); + Assertions.assertEquals(ServiceLoadMetricWeight.MEDIUM, model.weight()); + Assertions.assertEquals(1072156994, model.primaryDefaultLoad()); + Assertions.assertEquals(2060062752, model.secondaryDefaultLoad()); + Assertions.assertEquals(511652180, model.defaultLoad()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicePlacementInvalidDomainPolicyTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicePlacementInvalidDomainPolicyTests.java index 0dec5d5ab047..0e7445ca71f1 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicePlacementInvalidDomainPolicyTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicePlacementInvalidDomainPolicyTests.java @@ -12,15 +12,16 @@ public final class ServicePlacementInvalidDomainPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServicePlacementInvalidDomainPolicy model - = BinaryData.fromString("{\"type\":\"InvalidDomain\",\"domainName\":\"l\"}") + = BinaryData.fromString("{\"type\":\"InvalidDomain\",\"domainName\":\"gtdsslswt\"}") .toObject(ServicePlacementInvalidDomainPolicy.class); - Assertions.assertEquals("l", model.domainName()); + Assertions.assertEquals("gtdsslswt", model.domainName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ServicePlacementInvalidDomainPolicy model = new ServicePlacementInvalidDomainPolicy().withDomainName("l"); + ServicePlacementInvalidDomainPolicy model + = new ServicePlacementInvalidDomainPolicy().withDomainName("gtdsslswt"); model = BinaryData.fromObject(model).toObject(ServicePlacementInvalidDomainPolicy.class); - Assertions.assertEquals("l", model.domainName()); + Assertions.assertEquals("gtdsslswt", model.domainName()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicePlacementPreferPrimaryDomainPolicyTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicePlacementPreferPrimaryDomainPolicyTests.java index 6bbd49ca12f3..637d7effc1e1 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicePlacementPreferPrimaryDomainPolicyTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicePlacementPreferPrimaryDomainPolicyTests.java @@ -12,16 +12,16 @@ public final class ServicePlacementPreferPrimaryDomainPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServicePlacementPreferPrimaryDomainPolicy model - = BinaryData.fromString("{\"type\":\"PreferredPrimaryDomain\",\"domainName\":\"xujznbmpowu\"}") + = BinaryData.fromString("{\"type\":\"PreferredPrimaryDomain\",\"domainName\":\"abnetshh\"}") .toObject(ServicePlacementPreferPrimaryDomainPolicy.class); - Assertions.assertEquals("xujznbmpowu", model.domainName()); + Assertions.assertEquals("abnetshh", model.domainName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ServicePlacementPreferPrimaryDomainPolicy model - = new ServicePlacementPreferPrimaryDomainPolicy().withDomainName("xujznbmpowu"); + = new ServicePlacementPreferPrimaryDomainPolicy().withDomainName("abnetshh"); model = BinaryData.fromObject(model).toObject(ServicePlacementPreferPrimaryDomainPolicy.class); - Assertions.assertEquals("xujznbmpowu", model.domainName()); + Assertions.assertEquals("abnetshh", model.domainName()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicePlacementRequireDomainDistributionPolicyTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicePlacementRequireDomainDistributionPolicyTests.java index 96453347b5c5..dd12afd99f7b 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicePlacementRequireDomainDistributionPolicyTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicePlacementRequireDomainDistributionPolicyTests.java @@ -12,16 +12,16 @@ public final class ServicePlacementRequireDomainDistributionPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServicePlacementRequireDomainDistributionPolicy model - = BinaryData.fromString("{\"type\":\"RequiredDomainDistribution\",\"domainName\":\"przqlveu\"}") + = BinaryData.fromString("{\"type\":\"RequiredDomainDistribution\",\"domainName\":\"zhedplvwiw\"}") .toObject(ServicePlacementRequireDomainDistributionPolicy.class); - Assertions.assertEquals("przqlveu", model.domainName()); + Assertions.assertEquals("zhedplvwiw", model.domainName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ServicePlacementRequireDomainDistributionPolicy model - = new ServicePlacementRequireDomainDistributionPolicy().withDomainName("przqlveu"); + = new ServicePlacementRequireDomainDistributionPolicy().withDomainName("zhedplvwiw"); model = BinaryData.fromObject(model).toObject(ServicePlacementRequireDomainDistributionPolicy.class); - Assertions.assertEquals("przqlveu", model.domainName()); + Assertions.assertEquals("zhedplvwiw", model.domainName()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicePlacementRequiredDomainPolicyTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicePlacementRequiredDomainPolicyTests.java index 14bb44f7f7b7..ed7f813fd6c6 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicePlacementRequiredDomainPolicyTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicePlacementRequiredDomainPolicyTests.java @@ -12,15 +12,16 @@ public final class ServicePlacementRequiredDomainPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServicePlacementRequiredDomainPolicy model - = BinaryData.fromString("{\"type\":\"RequiredDomain\",\"domainName\":\"zbtd\"}") + = BinaryData.fromString("{\"type\":\"RequiredDomain\",\"domainName\":\"weriofzpyqsem\"}") .toObject(ServicePlacementRequiredDomainPolicy.class); - Assertions.assertEquals("zbtd", model.domainName()); + Assertions.assertEquals("weriofzpyqsem", model.domainName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ServicePlacementRequiredDomainPolicy model = new ServicePlacementRequiredDomainPolicy().withDomainName("zbtd"); + ServicePlacementRequiredDomainPolicy model + = new ServicePlacementRequiredDomainPolicy().withDomainName("weriofzpyqsem"); model = BinaryData.fromObject(model).toObject(ServicePlacementRequiredDomainPolicy.class); - Assertions.assertEquals("zbtd", model.domainName()); + Assertions.assertEquals("weriofzpyqsem", model.domainName()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceResourceInnerTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceResourceInnerTests.java index d942cab4f2a5..dc96b50cabd4 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceResourceInnerTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceResourceInnerTests.java @@ -27,71 +27,75 @@ public final class ServiceResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServiceResourceInner model = BinaryData.fromString( - "{\"properties\":{\"serviceKind\":\"ServiceResourceProperties\",\"provisioningState\":\"rsyn\",\"serviceTypeName\":\"qidybyx\",\"partitionDescription\":{\"partitionScheme\":\"Partition\"},\"servicePackageActivationMode\":\"ExclusiveProcess\",\"serviceDnsName\":\"lhaaxdbabp\",\"placementConstraints\":\"wrqlfktsthsuco\",\"correlationScheme\":[{\"scheme\":\"AlignedAffinity\",\"serviceName\":\"yazttbtwwrqpue\"},{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"kzywbiex\"},{\"scheme\":\"AlignedAffinity\",\"serviceName\":\"eyueaxibxujwb\"},{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"walm\"}],\"serviceLoadMetrics\":[{\"name\":\"oxaepd\",\"weight\":\"Low\",\"primaryDefaultLoad\":104874824,\"secondaryDefaultLoad\":350095412,\"defaultLoad\":901682674}],\"servicePlacementPolicies\":[{\"type\":\"ServicePlacementPolicy\"}],\"defaultMoveCost\":\"High\",\"scalingPolicies\":[{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}}]},\"tags\":{\"tsdbpgn\":\"niwdjsw\",\"xbzpfzab\":\"ytxhp\"},\"location\":\"cuh\",\"id\":\"tcty\",\"name\":\"iklbbovpl\",\"type\":\"zbhvgyuguosv\"}") + "{\"properties\":{\"serviceKind\":\"ServiceResourceProperties\",\"provisioningState\":\"bpbewtghfgb\",\"serviceTypeName\":\"c\",\"partitionDescription\":{\"partitionScheme\":\"Partition\"},\"servicePackageActivationMode\":\"ExclusiveProcess\",\"serviceDnsName\":\"vlvqhjkbegi\",\"placementConstraints\":\"nmxiebwwaloayqc\",\"correlationScheme\":[{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"zjuzgwyz\"},{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"txon\"}],\"serviceLoadMetrics\":[{\"name\":\"savjcbpwxqps\",\"weight\":\"Medium\",\"primaryDefaultLoad\":168456950,\"secondaryDefaultLoad\":487735132,\"defaultLoad\":1935483255}],\"servicePlacementPolicies\":[{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"}],\"defaultMoveCost\":\"Medium\",\"scalingPolicies\":[{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}}]},\"tags\":{\"bexrmcq\":\"yvxqtayriwwroy\",\"e\":\"bycnojvkn\",\"zhpvgqzcjrvxd\":\"qsgzvahapj\"},\"location\":\"lmwlxkvugfhzo\",\"id\":\"wjvzunluthnn\",\"name\":\"rnxipei\",\"type\":\"pjzu\"}") .toObject(ServiceResourceInner.class); - Assertions.assertEquals("wrqlfktsthsuco", model.properties().placementConstraints()); - Assertions.assertEquals(ServiceCorrelationScheme.ALIGNED_AFFINITY, + Assertions.assertEquals("nmxiebwwaloayqc", model.properties().placementConstraints()); + Assertions.assertEquals(ServiceCorrelationScheme.NON_ALIGNED_AFFINITY, model.properties().correlationScheme().get(0).scheme()); - Assertions.assertEquals("yazttbtwwrqpue", model.properties().correlationScheme().get(0).serviceName()); - Assertions.assertEquals("oxaepd", model.properties().serviceLoadMetrics().get(0).name()); - Assertions.assertEquals(ServiceLoadMetricWeight.LOW, model.properties().serviceLoadMetrics().get(0).weight()); - Assertions.assertEquals(104874824, model.properties().serviceLoadMetrics().get(0).primaryDefaultLoad()); - Assertions.assertEquals(350095412, model.properties().serviceLoadMetrics().get(0).secondaryDefaultLoad()); - Assertions.assertEquals(901682674, model.properties().serviceLoadMetrics().get(0).defaultLoad()); - Assertions.assertEquals(MoveCost.HIGH, model.properties().defaultMoveCost()); - Assertions.assertEquals("qidybyx", model.properties().serviceTypeName()); + Assertions.assertEquals("zjuzgwyz", model.properties().correlationScheme().get(0).serviceName()); + Assertions.assertEquals("savjcbpwxqps", model.properties().serviceLoadMetrics().get(0).name()); + Assertions.assertEquals(ServiceLoadMetricWeight.MEDIUM, + model.properties().serviceLoadMetrics().get(0).weight()); + Assertions.assertEquals(168456950, model.properties().serviceLoadMetrics().get(0).primaryDefaultLoad()); + Assertions.assertEquals(487735132, model.properties().serviceLoadMetrics().get(0).secondaryDefaultLoad()); + Assertions.assertEquals(1935483255, model.properties().serviceLoadMetrics().get(0).defaultLoad()); + Assertions.assertEquals(MoveCost.MEDIUM, model.properties().defaultMoveCost()); + Assertions.assertEquals("c", model.properties().serviceTypeName()); Assertions.assertEquals(ServicePackageActivationMode.EXCLUSIVE_PROCESS, model.properties().servicePackageActivationMode()); - Assertions.assertEquals("lhaaxdbabp", model.properties().serviceDnsName()); - Assertions.assertEquals("niwdjsw", model.tags().get("tsdbpgn")); - Assertions.assertEquals("cuh", model.location()); + Assertions.assertEquals("vlvqhjkbegi", model.properties().serviceDnsName()); + Assertions.assertEquals("yvxqtayriwwroy", model.tags().get("bexrmcq")); + Assertions.assertEquals("lmwlxkvugfhzo", model.location()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ServiceResourceInner model = new ServiceResourceInner() - .withProperties(new ServiceResourceProperties().withPlacementConstraints("wrqlfktsthsuco") + .withProperties(new ServiceResourceProperties().withPlacementConstraints("nmxiebwwaloayqc") .withCorrelationScheme(Arrays.asList( - new ServiceCorrelation().withScheme(ServiceCorrelationScheme.ALIGNED_AFFINITY) - .withServiceName("yazttbtwwrqpue"), new ServiceCorrelation().withScheme(ServiceCorrelationScheme.NON_ALIGNED_AFFINITY) - .withServiceName("kzywbiex"), - new ServiceCorrelation().withScheme(ServiceCorrelationScheme.ALIGNED_AFFINITY) - .withServiceName("eyueaxibxujwb"), + .withServiceName("zjuzgwyz"), new ServiceCorrelation().withScheme(ServiceCorrelationScheme.NON_ALIGNED_AFFINITY) - .withServiceName("walm"))) - .withServiceLoadMetrics(Arrays.asList(new ServiceLoadMetric().withName("oxaepd") - .withWeight(ServiceLoadMetricWeight.LOW) - .withPrimaryDefaultLoad(104874824) - .withSecondaryDefaultLoad(350095412) - .withDefaultLoad(901682674))) - .withServicePlacementPolicies(Arrays.asList(new ServicePlacementPolicy())) - .withDefaultMoveCost(MoveCost.HIGH) - .withScalingPolicies(Arrays.asList(new ScalingPolicy().withScalingMechanism(new ScalingMechanism()) - .withScalingTrigger(new ScalingTrigger()))) - .withServiceTypeName("qidybyx") + .withServiceName("txon"))) + .withServiceLoadMetrics(Arrays.asList(new ServiceLoadMetric().withName("savjcbpwxqps") + .withWeight(ServiceLoadMetricWeight.MEDIUM) + .withPrimaryDefaultLoad(168456950) + .withSecondaryDefaultLoad(487735132) + .withDefaultLoad(1935483255))) + .withServicePlacementPolicies(Arrays.asList(new ServicePlacementPolicy(), new ServicePlacementPolicy(), + new ServicePlacementPolicy())) + .withDefaultMoveCost(MoveCost.MEDIUM) + .withScalingPolicies(Arrays.asList( + new ScalingPolicy().withScalingMechanism(new ScalingMechanism()) + .withScalingTrigger(new ScalingTrigger()), + new ScalingPolicy().withScalingMechanism(new ScalingMechanism()) + .withScalingTrigger(new ScalingTrigger()), + new ScalingPolicy().withScalingMechanism(new ScalingMechanism()) + .withScalingTrigger(new ScalingTrigger()))) + .withServiceTypeName("c") .withPartitionDescription(new Partition()) .withServicePackageActivationMode(ServicePackageActivationMode.EXCLUSIVE_PROCESS) - .withServiceDnsName("lhaaxdbabp")) - .withTags(mapOf("tsdbpgn", "niwdjsw", "xbzpfzab", "ytxhp")) - .withLocation("cuh"); + .withServiceDnsName("vlvqhjkbegi")) + .withTags(mapOf("bexrmcq", "yvxqtayriwwroy", "e", "bycnojvkn", "zhpvgqzcjrvxd", "qsgzvahapj")) + .withLocation("lmwlxkvugfhzo"); model = BinaryData.fromObject(model).toObject(ServiceResourceInner.class); - Assertions.assertEquals("wrqlfktsthsuco", model.properties().placementConstraints()); - Assertions.assertEquals(ServiceCorrelationScheme.ALIGNED_AFFINITY, + Assertions.assertEquals("nmxiebwwaloayqc", model.properties().placementConstraints()); + Assertions.assertEquals(ServiceCorrelationScheme.NON_ALIGNED_AFFINITY, model.properties().correlationScheme().get(0).scheme()); - Assertions.assertEquals("yazttbtwwrqpue", model.properties().correlationScheme().get(0).serviceName()); - Assertions.assertEquals("oxaepd", model.properties().serviceLoadMetrics().get(0).name()); - Assertions.assertEquals(ServiceLoadMetricWeight.LOW, model.properties().serviceLoadMetrics().get(0).weight()); - Assertions.assertEquals(104874824, model.properties().serviceLoadMetrics().get(0).primaryDefaultLoad()); - Assertions.assertEquals(350095412, model.properties().serviceLoadMetrics().get(0).secondaryDefaultLoad()); - Assertions.assertEquals(901682674, model.properties().serviceLoadMetrics().get(0).defaultLoad()); - Assertions.assertEquals(MoveCost.HIGH, model.properties().defaultMoveCost()); - Assertions.assertEquals("qidybyx", model.properties().serviceTypeName()); + Assertions.assertEquals("zjuzgwyz", model.properties().correlationScheme().get(0).serviceName()); + Assertions.assertEquals("savjcbpwxqps", model.properties().serviceLoadMetrics().get(0).name()); + Assertions.assertEquals(ServiceLoadMetricWeight.MEDIUM, + model.properties().serviceLoadMetrics().get(0).weight()); + Assertions.assertEquals(168456950, model.properties().serviceLoadMetrics().get(0).primaryDefaultLoad()); + Assertions.assertEquals(487735132, model.properties().serviceLoadMetrics().get(0).secondaryDefaultLoad()); + Assertions.assertEquals(1935483255, model.properties().serviceLoadMetrics().get(0).defaultLoad()); + Assertions.assertEquals(MoveCost.MEDIUM, model.properties().defaultMoveCost()); + Assertions.assertEquals("c", model.properties().serviceTypeName()); Assertions.assertEquals(ServicePackageActivationMode.EXCLUSIVE_PROCESS, model.properties().servicePackageActivationMode()); - Assertions.assertEquals("lhaaxdbabp", model.properties().serviceDnsName()); - Assertions.assertEquals("niwdjsw", model.tags().get("tsdbpgn")); - Assertions.assertEquals("cuh", model.location()); + Assertions.assertEquals("vlvqhjkbegi", model.properties().serviceDnsName()); + Assertions.assertEquals("yvxqtayriwwroy", model.tags().get("bexrmcq")); + Assertions.assertEquals("lmwlxkvugfhzo", model.location()); } // Use "Map.of" if available diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceResourceListTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceResourceListTests.java index 14fd96e5c9c0..a416f328ace7 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceResourceListTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceResourceListTests.java @@ -16,28 +16,28 @@ public final class ServiceResourceListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServiceResourceList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"serviceKind\":\"ServiceResourceProperties\",\"provisioningState\":\"wlxkvugfhzovaw\",\"serviceTypeName\":\"vzunluthnnprnxi\",\"partitionDescription\":{\"partitionScheme\":\"Partition\"},\"servicePackageActivationMode\":\"ExclusiveProcess\",\"serviceDnsName\":\"pjzu\",\"placementConstraints\":\"jxdultskzbbtdzu\",\"correlationScheme\":[{\"scheme\":\"AlignedAffinity\",\"serviceName\":\"kgpwoz\"}],\"serviceLoadMetrics\":[{\"name\":\"fpbsjyofdxl\",\"weight\":\"Zero\",\"primaryDefaultLoad\":1856979158,\"secondaryDefaultLoad\":1422945070,\"defaultLoad\":1252528512},{\"name\":\"aboekqv\",\"weight\":\"Zero\",\"primaryDefaultLoad\":643648278,\"secondaryDefaultLoad\":566883460,\"defaultLoad\":314739755}],\"servicePlacementPolicies\":[{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"}],\"defaultMoveCost\":\"Low\",\"scalingPolicies\":[{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}}]},\"tags\":{\"oyaqcslyjpkiid\":\"caalnjixisxyaw\",\"eli\":\"yexz\",\"bnxknalaulppg\":\"hnrztfol\"},\"location\":\"tpnapnyiropuhpig\",\"id\":\"gylgqgitxmedjvcs\",\"name\":\"ynqwwncwzzhxgk\",\"type\":\"rmgucnap\"},{\"properties\":{\"serviceKind\":\"ServiceResourceProperties\",\"provisioningState\":\"oellwp\",\"serviceTypeName\":\"fdygpfqbuaceopz\",\"partitionDescription\":{\"partitionScheme\":\"Partition\"},\"servicePackageActivationMode\":\"ExclusiveProcess\",\"serviceDnsName\":\"huaoppp\",\"placementConstraints\":\"eqx\",\"correlationScheme\":[{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"ahzxctobgbk\"}],\"serviceLoadMetrics\":[{\"name\":\"izpost\",\"weight\":\"Low\",\"primaryDefaultLoad\":1065588244,\"secondaryDefaultLoad\":1002036598,\"defaultLoad\":1194461063},{\"name\":\"mfqjhhkxbp\",\"weight\":\"High\",\"primaryDefaultLoad\":1776506496,\"secondaryDefaultLoad\":1775545087,\"defaultLoad\":256415791},{\"name\":\"yngudivk\",\"weight\":\"Low\",\"primaryDefaultLoad\":1042702068,\"secondaryDefaultLoad\":1688847935,\"defaultLoad\":1519965226},{\"name\":\"szjfauvjfdxxivet\",\"weight\":\"Medium\",\"primaryDefaultLoad\":393815457,\"secondaryDefaultLoad\":730619532,\"defaultLoad\":1493412527}],\"servicePlacementPolicies\":[{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"}],\"defaultMoveCost\":\"Low\",\"scalingPolicies\":[{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}}]},\"tags\":{\"fxoblytkb\":\"xyslqbh\",\"wfbkrvrns\":\"mpew\"},\"location\":\"hqjohxcrsbfova\",\"id\":\"ruvw\",\"name\":\"hsqfsubcgjbirxbp\",\"type\":\"bsrfbj\"},{\"properties\":{\"serviceKind\":\"ServiceResourceProperties\",\"provisioningState\":\"w\",\"serviceTypeName\":\"sotftpvj\",\"partitionDescription\":{\"partitionScheme\":\"Partition\"},\"servicePackageActivationMode\":\"ExclusiveProcess\",\"serviceDnsName\":\"ilzznfqqnvwp\",\"placementConstraints\":\"taruoujmkcj\",\"correlationScheme\":[{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"tjrybnwjewgdr\"},{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"rvnaenqpeh\"},{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"doy\"},{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"ifthnz\"}],\"serviceLoadMetrics\":[{\"name\":\"sl\",\"weight\":\"Medium\",\"primaryDefaultLoad\":782103033,\"secondaryDefaultLoad\":1611377785,\"defaultLoad\":1427716289},{\"name\":\"duhavhqlkt\",\"weight\":\"High\",\"primaryDefaultLoad\":1712324120,\"secondaryDefaultLoad\":709486053,\"defaultLoad\":1315398087},{\"name\":\"ycduier\",\"weight\":\"High\",\"primaryDefaultLoad\":178925296,\"secondaryDefaultLoad\":595633272,\"defaultLoad\":50940581},{\"name\":\"l\",\"weight\":\"Medium\",\"primaryDefaultLoad\":245335843,\"secondaryDefaultLoad\":1979529158,\"defaultLoad\":1277939729}],\"servicePlacementPolicies\":[{\"type\":\"ServicePlacementPolicy\"}],\"defaultMoveCost\":\"Low\",\"scalingPolicies\":[{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}}]},\"tags\":{\"sadbz\":\"swiydmcwyhzdx\",\"dvxzbncblylpst\":\"nvdfznuda\",\"rsc\":\"bhhxsrzdzuc\"},\"location\":\"t\",\"id\":\"vfiwjmygtdss\",\"name\":\"s\",\"type\":\"tmweriofzpyq\"},{\"properties\":{\"serviceKind\":\"ServiceResourceProperties\",\"provisioningState\":\"wab\",\"serviceTypeName\":\"ets\",\"partitionDescription\":{\"partitionScheme\":\"Partition\"},\"servicePackageActivationMode\":\"ExclusiveProcess\",\"serviceDnsName\":\"h\",\"placementConstraints\":\"plvwiwubmwmbes\",\"correlationScheme\":[{\"scheme\":\"AlignedAffinity\",\"serviceName\":\"wwtppj\"}],\"serviceLoadMetrics\":[{\"name\":\"xogaokonzmnsikv\",\"weight\":\"High\",\"primaryDefaultLoad\":611254930,\"secondaryDefaultLoad\":1625673068,\"defaultLoad\":1175665004},{\"name\":\"l\",\"weight\":\"Medium\",\"primaryDefaultLoad\":1014332587,\"secondaryDefaultLoad\":187973075,\"defaultLoad\":1086084158},{\"name\":\"gureodkwobdag\",\"weight\":\"High\",\"primaryDefaultLoad\":1795454962,\"secondaryDefaultLoad\":1120938995,\"defaultLoad\":1020209011}],\"servicePlacementPolicies\":[{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"}],\"defaultMoveCost\":\"High\",\"scalingPolicies\":[{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}}]},\"tags\":{\"bpodxunkbebxm\":\"ndlkzgxhurip\",\"oievseotgqrlltm\":\"byyntwlrbqt\",\"jefuzmuvpbttdumo\":\"wlauwzizxbmpg\"},\"location\":\"pxebmnzbt\",\"id\":\"jpglkfgohdne\",\"name\":\"el\",\"type\":\"phsdyhto\"}],\"nextLink\":\"ikdowwquuvx\"}") + "{\"value\":[{\"properties\":{\"serviceKind\":\"ServiceResourceProperties\",\"provisioningState\":\"ttdumorppxebmnzb\",\"serviceTypeName\":\"bhjpglkfgohdne\",\"partitionDescription\":{\"partitionScheme\":\"Partition\"},\"servicePackageActivationMode\":\"ExclusiveProcess\",\"serviceDnsName\":\"phsdyhto\",\"placementConstraints\":\"ikdowwquuvx\",\"correlationScheme\":[{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"vithh\"},{\"scheme\":\"AlignedAffinity\",\"serviceName\":\"o\"}],\"serviceLoadMetrics\":[{\"name\":\"ggbhcohfwds\",\"weight\":\"Zero\",\"primaryDefaultLoad\":1077119628,\"secondaryDefaultLoad\":215049895,\"defaultLoad\":1496719551}],\"servicePlacementPolicies\":[{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"}],\"defaultMoveCost\":\"High\",\"scalingPolicies\":[{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}}]},\"tags\":{\"pnppfuf\":\"dkzzewkfvhqcrail\"},\"location\":\"wdmhdlxyjrxs\",\"id\":\"afcnih\",\"name\":\"wqapnedgfbcvk\",\"type\":\"vq\"},{\"properties\":{\"serviceKind\":\"ServiceResourceProperties\",\"provisioningState\":\"eqdcv\",\"serviceTypeName\":\"rhvoods\",\"partitionDescription\":{\"partitionScheme\":\"Partition\"},\"servicePackageActivationMode\":\"ExclusiveProcess\",\"serviceDnsName\":\"bzdopcj\",\"placementConstraints\":\"nhdldwmgxcx\",\"correlationScheme\":[{\"scheme\":\"AlignedAffinity\",\"serviceName\":\"mutwuoe\"},{\"scheme\":\"AlignedAffinity\",\"serviceName\":\"pkhjwni\"},{\"scheme\":\"AlignedAffinity\",\"serviceName\":\"sluicpdggkzz\"},{\"scheme\":\"AlignedAffinity\",\"serviceName\":\"mbmpaxmodfvuefy\"}],\"serviceLoadMetrics\":[{\"name\":\"pfvmwyhrfou\",\"weight\":\"Low\",\"primaryDefaultLoad\":938616277,\"secondaryDefaultLoad\":988727085,\"defaultLoad\":1662588727},{\"name\":\"iyzvqtmnub\",\"weight\":\"Medium\",\"primaryDefaultLoad\":1989438546,\"secondaryDefaultLoad\":1254452597,\"defaultLoad\":1550438212}],\"servicePlacementPolicies\":[{\"type\":\"ServicePlacementPolicy\"}],\"defaultMoveCost\":\"Low\",\"scalingPolicies\":[{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}}]},\"tags\":{\"v\":\"ypomgkopkwho\",\"mocmbqfqvmk\":\"ajqgxy\",\"helxprglya\":\"xozap\",\"kcbcue\":\"dd\"},\"location\":\"jxgciqibrh\",\"id\":\"xsdqrhzoymibmrqy\",\"name\":\"bahwfl\",\"type\":\"szdtmhrkwof\"}],\"nextLink\":\"voqacpiexpbt\"}") .toObject(ServiceResourceList.class); - Assertions.assertEquals("jxdultskzbbtdzu", model.value().get(0).properties().placementConstraints()); - Assertions.assertEquals(ServiceCorrelationScheme.ALIGNED_AFFINITY, + Assertions.assertEquals("ikdowwquuvx", model.value().get(0).properties().placementConstraints()); + Assertions.assertEquals(ServiceCorrelationScheme.NON_ALIGNED_AFFINITY, model.value().get(0).properties().correlationScheme().get(0).scheme()); - Assertions.assertEquals("kgpwoz", model.value().get(0).properties().correlationScheme().get(0).serviceName()); - Assertions.assertEquals("fpbsjyofdxl", model.value().get(0).properties().serviceLoadMetrics().get(0).name()); + Assertions.assertEquals("vithh", model.value().get(0).properties().correlationScheme().get(0).serviceName()); + Assertions.assertEquals("ggbhcohfwds", model.value().get(0).properties().serviceLoadMetrics().get(0).name()); Assertions.assertEquals(ServiceLoadMetricWeight.ZERO, model.value().get(0).properties().serviceLoadMetrics().get(0).weight()); - Assertions.assertEquals(1856979158, + Assertions.assertEquals(1077119628, model.value().get(0).properties().serviceLoadMetrics().get(0).primaryDefaultLoad()); - Assertions.assertEquals(1422945070, + Assertions.assertEquals(215049895, model.value().get(0).properties().serviceLoadMetrics().get(0).secondaryDefaultLoad()); - Assertions.assertEquals(1252528512, + Assertions.assertEquals(1496719551, model.value().get(0).properties().serviceLoadMetrics().get(0).defaultLoad()); - Assertions.assertEquals(MoveCost.LOW, model.value().get(0).properties().defaultMoveCost()); - Assertions.assertEquals("vzunluthnnprnxi", model.value().get(0).properties().serviceTypeName()); + Assertions.assertEquals(MoveCost.HIGH, model.value().get(0).properties().defaultMoveCost()); + Assertions.assertEquals("bhjpglkfgohdne", model.value().get(0).properties().serviceTypeName()); Assertions.assertEquals(ServicePackageActivationMode.EXCLUSIVE_PROCESS, model.value().get(0).properties().servicePackageActivationMode()); - Assertions.assertEquals("pjzu", model.value().get(0).properties().serviceDnsName()); - Assertions.assertEquals("caalnjixisxyaw", model.value().get(0).tags().get("oyaqcslyjpkiid")); - Assertions.assertEquals("tpnapnyiropuhpig", model.value().get(0).location()); - Assertions.assertEquals("ikdowwquuvx", model.nextLink()); + Assertions.assertEquals("phsdyhto", model.value().get(0).properties().serviceDnsName()); + Assertions.assertEquals("dkzzewkfvhqcrail", model.value().get(0).tags().get("pnppfuf")); + Assertions.assertEquals("wdmhdlxyjrxs", model.value().get(0).location()); + Assertions.assertEquals("voqacpiexpbt", model.nextLink()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceResourcePropertiesBaseTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceResourcePropertiesBaseTests.java index 87206561434d..307a6d482e4a 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceResourcePropertiesBaseTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceResourcePropertiesBaseTests.java @@ -22,63 +22,53 @@ public final class ServiceResourcePropertiesBaseTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServiceResourcePropertiesBase model = BinaryData.fromString( - "{\"placementConstraints\":\"uhashsfwx\",\"correlationScheme\":[{\"scheme\":\"AlignedAffinity\",\"serviceName\":\"z\"},{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"ugicjooxdjebw\"}],\"serviceLoadMetrics\":[{\"name\":\"wwfvov\",\"weight\":\"Zero\",\"primaryDefaultLoad\":2004605521,\"secondaryDefaultLoad\":321338352,\"defaultLoad\":1542315989},{\"name\":\"yhz\",\"weight\":\"Low\",\"primaryDefaultLoad\":1339093969,\"secondaryDefaultLoad\":745513484,\"defaultLoad\":1026391011},{\"name\":\"jueiotwmcdytd\",\"weight\":\"Zero\",\"primaryDefaultLoad\":838785311,\"secondaryDefaultLoad\":1070997174,\"defaultLoad\":381866779}],\"servicePlacementPolicies\":[{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"}],\"defaultMoveCost\":\"Low\",\"scalingPolicies\":[{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}}]}") + "{\"placementConstraints\":\"ndslgnayqigynduh\",\"correlationScheme\":[{\"scheme\":\"AlignedAffinity\",\"serviceName\":\"lkthu\"},{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"qolbgyc\"},{\"scheme\":\"AlignedAffinity\",\"serviceName\":\"iertgccymvaolp\"}],\"serviceLoadMetrics\":[{\"name\":\"qlfmmdnbb\",\"weight\":\"Medium\",\"primaryDefaultLoad\":1340500207,\"secondaryDefaultLoad\":870818177,\"defaultLoad\":220182660},{\"name\":\"mcwyhzdxssadb\",\"weight\":\"Medium\",\"primaryDefaultLoad\":487755858,\"secondaryDefaultLoad\":1045217690,\"defaultLoad\":307071571}],\"servicePlacementPolicies\":[{\"type\":\"ServicePlacementPolicy\"}],\"defaultMoveCost\":\"High\",\"scalingPolicies\":[{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}}]}") .toObject(ServiceResourcePropertiesBase.class); - Assertions.assertEquals("uhashsfwx", model.placementConstraints()); + Assertions.assertEquals("ndslgnayqigynduh", model.placementConstraints()); Assertions.assertEquals(ServiceCorrelationScheme.ALIGNED_AFFINITY, model.correlationScheme().get(0).scheme()); - Assertions.assertEquals("z", model.correlationScheme().get(0).serviceName()); - Assertions.assertEquals("wwfvov", model.serviceLoadMetrics().get(0).name()); - Assertions.assertEquals(ServiceLoadMetricWeight.ZERO, model.serviceLoadMetrics().get(0).weight()); - Assertions.assertEquals(2004605521, model.serviceLoadMetrics().get(0).primaryDefaultLoad()); - Assertions.assertEquals(321338352, model.serviceLoadMetrics().get(0).secondaryDefaultLoad()); - Assertions.assertEquals(1542315989, model.serviceLoadMetrics().get(0).defaultLoad()); - Assertions.assertEquals(MoveCost.LOW, model.defaultMoveCost()); + Assertions.assertEquals("lkthu", model.correlationScheme().get(0).serviceName()); + Assertions.assertEquals("qlfmmdnbb", model.serviceLoadMetrics().get(0).name()); + Assertions.assertEquals(ServiceLoadMetricWeight.MEDIUM, model.serviceLoadMetrics().get(0).weight()); + Assertions.assertEquals(1340500207, model.serviceLoadMetrics().get(0).primaryDefaultLoad()); + Assertions.assertEquals(870818177, model.serviceLoadMetrics().get(0).secondaryDefaultLoad()); + Assertions.assertEquals(220182660, model.serviceLoadMetrics().get(0).defaultLoad()); + Assertions.assertEquals(MoveCost.HIGH, model.defaultMoveCost()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ServiceResourcePropertiesBase model = new ServiceResourcePropertiesBase().withPlacementConstraints("uhashsfwx") + ServiceResourcePropertiesBase model = new ServiceResourcePropertiesBase() + .withPlacementConstraints("ndslgnayqigynduh") .withCorrelationScheme(Arrays.asList( - new ServiceCorrelation().withScheme(ServiceCorrelationScheme.ALIGNED_AFFINITY).withServiceName("z"), + new ServiceCorrelation().withScheme(ServiceCorrelationScheme.ALIGNED_AFFINITY).withServiceName("lkthu"), new ServiceCorrelation().withScheme(ServiceCorrelationScheme.NON_ALIGNED_AFFINITY) - .withServiceName("ugicjooxdjebw"))) + .withServiceName("qolbgyc"), + new ServiceCorrelation().withScheme(ServiceCorrelationScheme.ALIGNED_AFFINITY) + .withServiceName("iertgccymvaolp"))) .withServiceLoadMetrics(Arrays.asList( - new ServiceLoadMetric().withName("wwfvov") - .withWeight(ServiceLoadMetricWeight.ZERO) - .withPrimaryDefaultLoad(2004605521) - .withSecondaryDefaultLoad(321338352) - .withDefaultLoad(1542315989), - new ServiceLoadMetric().withName("yhz") - .withWeight(ServiceLoadMetricWeight.LOW) - .withPrimaryDefaultLoad(1339093969) - .withSecondaryDefaultLoad(745513484) - .withDefaultLoad(1026391011), - new ServiceLoadMetric().withName("jueiotwmcdytd") - .withWeight(ServiceLoadMetricWeight.ZERO) - .withPrimaryDefaultLoad(838785311) - .withSecondaryDefaultLoad(1070997174) - .withDefaultLoad(381866779))) - .withServicePlacementPolicies(Arrays.asList(new ServicePlacementPolicy(), new ServicePlacementPolicy(), - new ServicePlacementPolicy(), new ServicePlacementPolicy())) - .withDefaultMoveCost(MoveCost.LOW) - .withScalingPolicies(Arrays.asList( - new ScalingPolicy().withScalingMechanism(new ScalingMechanism()) - .withScalingTrigger(new ScalingTrigger()), - new ScalingPolicy().withScalingMechanism(new ScalingMechanism()) - .withScalingTrigger(new ScalingTrigger()), - new ScalingPolicy().withScalingMechanism(new ScalingMechanism()) - .withScalingTrigger(new ScalingTrigger()), - new ScalingPolicy().withScalingMechanism(new ScalingMechanism()) - .withScalingTrigger(new ScalingTrigger()))); + new ServiceLoadMetric().withName("qlfmmdnbb") + .withWeight(ServiceLoadMetricWeight.MEDIUM) + .withPrimaryDefaultLoad(1340500207) + .withSecondaryDefaultLoad(870818177) + .withDefaultLoad(220182660), + new ServiceLoadMetric().withName("mcwyhzdxssadb") + .withWeight(ServiceLoadMetricWeight.MEDIUM) + .withPrimaryDefaultLoad(487755858) + .withSecondaryDefaultLoad(1045217690) + .withDefaultLoad(307071571))) + .withServicePlacementPolicies(Arrays.asList(new ServicePlacementPolicy())) + .withDefaultMoveCost(MoveCost.HIGH) + .withScalingPolicies(Arrays.asList(new ScalingPolicy().withScalingMechanism(new ScalingMechanism()) + .withScalingTrigger(new ScalingTrigger()))); model = BinaryData.fromObject(model).toObject(ServiceResourcePropertiesBase.class); - Assertions.assertEquals("uhashsfwx", model.placementConstraints()); + Assertions.assertEquals("ndslgnayqigynduh", model.placementConstraints()); Assertions.assertEquals(ServiceCorrelationScheme.ALIGNED_AFFINITY, model.correlationScheme().get(0).scheme()); - Assertions.assertEquals("z", model.correlationScheme().get(0).serviceName()); - Assertions.assertEquals("wwfvov", model.serviceLoadMetrics().get(0).name()); - Assertions.assertEquals(ServiceLoadMetricWeight.ZERO, model.serviceLoadMetrics().get(0).weight()); - Assertions.assertEquals(2004605521, model.serviceLoadMetrics().get(0).primaryDefaultLoad()); - Assertions.assertEquals(321338352, model.serviceLoadMetrics().get(0).secondaryDefaultLoad()); - Assertions.assertEquals(1542315989, model.serviceLoadMetrics().get(0).defaultLoad()); - Assertions.assertEquals(MoveCost.LOW, model.defaultMoveCost()); + Assertions.assertEquals("lkthu", model.correlationScheme().get(0).serviceName()); + Assertions.assertEquals("qlfmmdnbb", model.serviceLoadMetrics().get(0).name()); + Assertions.assertEquals(ServiceLoadMetricWeight.MEDIUM, model.serviceLoadMetrics().get(0).weight()); + Assertions.assertEquals(1340500207, model.serviceLoadMetrics().get(0).primaryDefaultLoad()); + Assertions.assertEquals(870818177, model.serviceLoadMetrics().get(0).secondaryDefaultLoad()); + Assertions.assertEquals(220182660, model.serviceLoadMetrics().get(0).defaultLoad()); + Assertions.assertEquals(MoveCost.HIGH, model.defaultMoveCost()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceResourcePropertiesTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceResourcePropertiesTests.java index 5458c1836637..00619525fac7 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceResourcePropertiesTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceResourcePropertiesTests.java @@ -24,54 +24,50 @@ public final class ServiceResourcePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServiceResourceProperties model = BinaryData.fromString( - "{\"serviceKind\":\"ServiceResourceProperties\",\"provisioningState\":\"fssxqukkfplg\",\"serviceTypeName\":\"gsxnkjzkdeslpv\",\"partitionDescription\":{\"partitionScheme\":\"Partition\"},\"servicePackageActivationMode\":\"SharedProcess\",\"serviceDnsName\":\"i\",\"placementConstraints\":\"ghxpkdw\",\"correlationScheme\":[{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"uebbaumnyqup\"},{\"scheme\":\"AlignedAffinity\",\"serviceName\":\"eojnabc\"},{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"smtxpsieb\"},{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"hvpesapskrdqm\"}],\"serviceLoadMetrics\":[{\"name\":\"dhtldwkyz\",\"weight\":\"Low\",\"primaryDefaultLoad\":379697539,\"secondaryDefaultLoad\":38172527,\"defaultLoad\":1341187268},{\"name\":\"cwsvlxotog\",\"weight\":\"Medium\",\"primaryDefaultLoad\":354304408,\"secondaryDefaultLoad\":320708733,\"defaultLoad\":767248190},{\"name\":\"nmic\",\"weight\":\"Zero\",\"primaryDefaultLoad\":1237447101,\"secondaryDefaultLoad\":722438368,\"defaultLoad\":1739821364}],\"servicePlacementPolicies\":[{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"}],\"defaultMoveCost\":\"High\",\"scalingPolicies\":[{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}}]}") + "{\"serviceKind\":\"ServiceResourceProperties\",\"provisioningState\":\"jxdultskzbbtdzu\",\"serviceTypeName\":\"veekgpwozuhkfp\",\"partitionDescription\":{\"partitionScheme\":\"Partition\"},\"servicePackageActivationMode\":\"ExclusiveProcess\",\"serviceDnsName\":\"ofd\",\"placementConstraints\":\"uusdttouwa\",\"correlationScheme\":[{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"qvkelnsm\"},{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"xwyjsflhhc\"}],\"serviceLoadMetrics\":[{\"name\":\"n\",\"weight\":\"High\",\"primaryDefaultLoad\":923639125,\"secondaryDefaultLoad\":589324262,\"defaultLoad\":663464413},{\"name\":\"joya\",\"weight\":\"Medium\",\"primaryDefaultLoad\":840312667,\"secondaryDefaultLoad\":1050162327,\"defaultLoad\":383766185},{\"name\":\"idzyexznelixhnr\",\"weight\":\"Medium\",\"primaryDefaultLoad\":1975568377,\"secondaryDefaultLoad\":1201064167,\"defaultLoad\":681203122}],\"servicePlacementPolicies\":[{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"}],\"defaultMoveCost\":\"Low\",\"scalingPolicies\":[{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}}]}") .toObject(ServiceResourceProperties.class); - Assertions.assertEquals("ghxpkdw", model.placementConstraints()); + Assertions.assertEquals("uusdttouwa", model.placementConstraints()); Assertions.assertEquals(ServiceCorrelationScheme.NON_ALIGNED_AFFINITY, model.correlationScheme().get(0).scheme()); - Assertions.assertEquals("uebbaumnyqup", model.correlationScheme().get(0).serviceName()); - Assertions.assertEquals("dhtldwkyz", model.serviceLoadMetrics().get(0).name()); - Assertions.assertEquals(ServiceLoadMetricWeight.LOW, model.serviceLoadMetrics().get(0).weight()); - Assertions.assertEquals(379697539, model.serviceLoadMetrics().get(0).primaryDefaultLoad()); - Assertions.assertEquals(38172527, model.serviceLoadMetrics().get(0).secondaryDefaultLoad()); - Assertions.assertEquals(1341187268, model.serviceLoadMetrics().get(0).defaultLoad()); - Assertions.assertEquals(MoveCost.HIGH, model.defaultMoveCost()); - Assertions.assertEquals("gsxnkjzkdeslpv", model.serviceTypeName()); - Assertions.assertEquals(ServicePackageActivationMode.SHARED_PROCESS, model.servicePackageActivationMode()); - Assertions.assertEquals("i", model.serviceDnsName()); + Assertions.assertEquals("qvkelnsm", model.correlationScheme().get(0).serviceName()); + Assertions.assertEquals("n", model.serviceLoadMetrics().get(0).name()); + Assertions.assertEquals(ServiceLoadMetricWeight.HIGH, model.serviceLoadMetrics().get(0).weight()); + Assertions.assertEquals(923639125, model.serviceLoadMetrics().get(0).primaryDefaultLoad()); + Assertions.assertEquals(589324262, model.serviceLoadMetrics().get(0).secondaryDefaultLoad()); + Assertions.assertEquals(663464413, model.serviceLoadMetrics().get(0).defaultLoad()); + Assertions.assertEquals(MoveCost.LOW, model.defaultMoveCost()); + Assertions.assertEquals("veekgpwozuhkfp", model.serviceTypeName()); + Assertions.assertEquals(ServicePackageActivationMode.EXCLUSIVE_PROCESS, model.servicePackageActivationMode()); + Assertions.assertEquals("ofd", model.serviceDnsName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ServiceResourceProperties model = new ServiceResourceProperties().withPlacementConstraints("ghxpkdw") + ServiceResourceProperties model = new ServiceResourceProperties().withPlacementConstraints("uusdttouwa") .withCorrelationScheme(Arrays.asList( new ServiceCorrelation().withScheme(ServiceCorrelationScheme.NON_ALIGNED_AFFINITY) - .withServiceName("uebbaumnyqup"), - new ServiceCorrelation().withScheme(ServiceCorrelationScheme.ALIGNED_AFFINITY) - .withServiceName("eojnabc"), + .withServiceName("qvkelnsm"), new ServiceCorrelation().withScheme(ServiceCorrelationScheme.NON_ALIGNED_AFFINITY) - .withServiceName("smtxpsieb"), - new ServiceCorrelation().withScheme(ServiceCorrelationScheme.NON_ALIGNED_AFFINITY) - .withServiceName("hvpesapskrdqm"))) + .withServiceName("xwyjsflhhc"))) .withServiceLoadMetrics(Arrays.asList( - new ServiceLoadMetric().withName("dhtldwkyz") - .withWeight(ServiceLoadMetricWeight.LOW) - .withPrimaryDefaultLoad(379697539) - .withSecondaryDefaultLoad(38172527) - .withDefaultLoad(1341187268), - new ServiceLoadMetric().withName("cwsvlxotog") + new ServiceLoadMetric().withName("n") + .withWeight(ServiceLoadMetricWeight.HIGH) + .withPrimaryDefaultLoad(923639125) + .withSecondaryDefaultLoad(589324262) + .withDefaultLoad(663464413), + new ServiceLoadMetric().withName("joya") + .withWeight(ServiceLoadMetricWeight.MEDIUM) + .withPrimaryDefaultLoad(840312667) + .withSecondaryDefaultLoad(1050162327) + .withDefaultLoad(383766185), + new ServiceLoadMetric().withName("idzyexznelixhnr") .withWeight(ServiceLoadMetricWeight.MEDIUM) - .withPrimaryDefaultLoad(354304408) - .withSecondaryDefaultLoad(320708733) - .withDefaultLoad(767248190), - new ServiceLoadMetric().withName("nmic") - .withWeight(ServiceLoadMetricWeight.ZERO) - .withPrimaryDefaultLoad(1237447101) - .withSecondaryDefaultLoad(722438368) - .withDefaultLoad(1739821364))) - .withServicePlacementPolicies(Arrays.asList(new ServicePlacementPolicy(), new ServicePlacementPolicy(), - new ServicePlacementPolicy(), new ServicePlacementPolicy())) - .withDefaultMoveCost(MoveCost.HIGH) + .withPrimaryDefaultLoad(1975568377) + .withSecondaryDefaultLoad(1201064167) + .withDefaultLoad(681203122))) + .withServicePlacementPolicies( + Arrays.asList(new ServicePlacementPolicy(), new ServicePlacementPolicy(), new ServicePlacementPolicy())) + .withDefaultMoveCost(MoveCost.LOW) .withScalingPolicies(Arrays.asList( new ScalingPolicy().withScalingMechanism(new ScalingMechanism()) .withScalingTrigger(new ScalingTrigger()), @@ -81,23 +77,23 @@ public void testSerialize() throws Exception { .withScalingTrigger(new ScalingTrigger()), new ScalingPolicy().withScalingMechanism(new ScalingMechanism()) .withScalingTrigger(new ScalingTrigger()))) - .withServiceTypeName("gsxnkjzkdeslpv") + .withServiceTypeName("veekgpwozuhkfp") .withPartitionDescription(new Partition()) - .withServicePackageActivationMode(ServicePackageActivationMode.SHARED_PROCESS) - .withServiceDnsName("i"); + .withServicePackageActivationMode(ServicePackageActivationMode.EXCLUSIVE_PROCESS) + .withServiceDnsName("ofd"); model = BinaryData.fromObject(model).toObject(ServiceResourceProperties.class); - Assertions.assertEquals("ghxpkdw", model.placementConstraints()); + Assertions.assertEquals("uusdttouwa", model.placementConstraints()); Assertions.assertEquals(ServiceCorrelationScheme.NON_ALIGNED_AFFINITY, model.correlationScheme().get(0).scheme()); - Assertions.assertEquals("uebbaumnyqup", model.correlationScheme().get(0).serviceName()); - Assertions.assertEquals("dhtldwkyz", model.serviceLoadMetrics().get(0).name()); - Assertions.assertEquals(ServiceLoadMetricWeight.LOW, model.serviceLoadMetrics().get(0).weight()); - Assertions.assertEquals(379697539, model.serviceLoadMetrics().get(0).primaryDefaultLoad()); - Assertions.assertEquals(38172527, model.serviceLoadMetrics().get(0).secondaryDefaultLoad()); - Assertions.assertEquals(1341187268, model.serviceLoadMetrics().get(0).defaultLoad()); - Assertions.assertEquals(MoveCost.HIGH, model.defaultMoveCost()); - Assertions.assertEquals("gsxnkjzkdeslpv", model.serviceTypeName()); - Assertions.assertEquals(ServicePackageActivationMode.SHARED_PROCESS, model.servicePackageActivationMode()); - Assertions.assertEquals("i", model.serviceDnsName()); + Assertions.assertEquals("qvkelnsm", model.correlationScheme().get(0).serviceName()); + Assertions.assertEquals("n", model.serviceLoadMetrics().get(0).name()); + Assertions.assertEquals(ServiceLoadMetricWeight.HIGH, model.serviceLoadMetrics().get(0).weight()); + Assertions.assertEquals(923639125, model.serviceLoadMetrics().get(0).primaryDefaultLoad()); + Assertions.assertEquals(589324262, model.serviceLoadMetrics().get(0).secondaryDefaultLoad()); + Assertions.assertEquals(663464413, model.serviceLoadMetrics().get(0).defaultLoad()); + Assertions.assertEquals(MoveCost.LOW, model.defaultMoveCost()); + Assertions.assertEquals("veekgpwozuhkfp", model.serviceTypeName()); + Assertions.assertEquals(ServicePackageActivationMode.EXCLUSIVE_PROCESS, model.servicePackageActivationMode()); + Assertions.assertEquals("ofd", model.serviceDnsName()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceUpdateParametersTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceUpdateParametersTests.java index 4ec6bbe8846b..e45b80a6b139 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceUpdateParametersTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServiceUpdateParametersTests.java @@ -14,18 +14,17 @@ public final class ServiceUpdateParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServiceUpdateParameters model = BinaryData - .fromString( - "{\"tags\":{\"bexrmcq\":\"yvxqtayriwwroy\",\"e\":\"bycnojvkn\",\"zhpvgqzcjrvxd\":\"qsgzvahapj\"}}") + .fromString("{\"tags\":{\"wlrbqtkoievseo\":\"dxunkbebxmubyyn\",\"wzizxbmpgcjefuzm\":\"gqrlltmuwla\"}}") .toObject(ServiceUpdateParameters.class); - Assertions.assertEquals("yvxqtayriwwroy", model.tags().get("bexrmcq")); + Assertions.assertEquals("dxunkbebxmubyyn", model.tags().get("wlrbqtkoievseo")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ServiceUpdateParameters model = new ServiceUpdateParameters() - .withTags(mapOf("bexrmcq", "yvxqtayriwwroy", "e", "bycnojvkn", "zhpvgqzcjrvxd", "qsgzvahapj")); + .withTags(mapOf("wlrbqtkoievseo", "dxunkbebxmubyyn", "wzizxbmpgcjefuzm", "gqrlltmuwla")); model = BinaryData.fromObject(model).toObject(ServiceUpdateParameters.class); - Assertions.assertEquals("yvxqtayriwwroy", model.tags().get("bexrmcq")); + Assertions.assertEquals("dxunkbebxmubyyn", model.tags().get("wlrbqtkoievseo")); } // Use "Map.of" if available diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesCreateOrUpdateMockTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesCreateOrUpdateMockTests.java index 1bf7136d940a..62dea36e6647 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesCreateOrUpdateMockTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesCreateOrUpdateMockTests.java @@ -36,7 +36,7 @@ public final class ServicesCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"serviceKind\":\"ServiceResourceProperties\",\"provisioningState\":\"Succeeded\",\"serviceTypeName\":\"rjtloq\",\"partitionDescription\":{\"partitionScheme\":\"Partition\"},\"servicePackageActivationMode\":\"ExclusiveProcess\",\"serviceDnsName\":\"jrngif\",\"placementConstraints\":\"z\",\"correlationScheme\":[{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"cb\"},{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"imzdlyj\"},{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"qwmkyoquf\"}],\"serviceLoadMetrics\":[{\"name\":\"uzslzojhpctfnmdx\",\"weight\":\"High\",\"primaryDefaultLoad\":120965041,\"secondaryDefaultLoad\":1293168350,\"defaultLoad\":1282016388},{\"name\":\"eyzihgrky\",\"weight\":\"Zero\",\"primaryDefaultLoad\":1979493256,\"secondaryDefaultLoad\":1192399452,\"defaultLoad\":1579370856}],\"servicePlacementPolicies\":[{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"}],\"defaultMoveCost\":\"Low\",\"scalingPolicies\":[{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}}]},\"tags\":{\"omfgbeglqgleohib\":\"yhyhsgzfczb\",\"xeeebtijvacvbmqz\":\"tnluankrr\",\"wxacevehj\":\"qqxlajr\"},\"location\":\"yxoaf\",\"id\":\"oqltfae\",\"name\":\"linmfgv\",\"type\":\"irpghriypoqeyh\"}"; + = "{\"properties\":{\"serviceKind\":\"ServiceResourceProperties\",\"provisioningState\":\"Succeeded\",\"serviceTypeName\":\"mcmuapc\",\"partitionDescription\":{\"partitionScheme\":\"Partition\"},\"servicePackageActivationMode\":\"ExclusiveProcess\",\"serviceDnsName\":\"evwqqxeyskonq\",\"placementConstraints\":\"nkfkbgbzb\",\"correlationScheme\":[{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"qocl\"},{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"ygvkzqkjj\"}],\"serviceLoadMetrics\":[{\"name\":\"bzefezr\",\"weight\":\"Low\",\"primaryDefaultLoad\":307502339,\"secondaryDefaultLoad\":488183187,\"defaultLoad\":22024155},{\"name\":\"ipqxbkwvzgnzv\",\"weight\":\"Low\",\"primaryDefaultLoad\":202407711,\"secondaryDefaultLoad\":899715277,\"defaultLoad\":1814010794},{\"name\":\"q\",\"weight\":\"High\",\"primaryDefaultLoad\":1574532239,\"secondaryDefaultLoad\":539540216,\"defaultLoad\":1313632662},{\"name\":\"hewjptmcgsbost\",\"weight\":\"Zero\",\"primaryDefaultLoad\":811304130,\"secondaryDefaultLoad\":1951649855,\"defaultLoad\":2000528831}],\"servicePlacementPolicies\":[{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"}],\"defaultMoveCost\":\"Medium\",\"scalingPolicies\":[{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}}]},\"tags\":{\"eqvcwwyyurmoch\":\"lvfhrbbp\",\"ejnhlbkpb\":\"prprsnmokay\",\"hahzvechndbnwi\":\"pcpil\",\"wjwiuub\":\"hol\"},\"location\":\"fqsfa\",\"id\":\"qtferrqwexjkmf\",\"name\":\"apjwogqqnobpudcd\",\"type\":\"btqwpwyawbzas\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -46,62 +46,71 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ServiceResource response = manager.services() - .define("boldforobwj") - .withExistingApplication("lyhb", "cu", "chxgs") - .withRegion("jrcg") - .withTags(mapOf("ntvlwijpsttexo", "wq", "uncuw", "qpwcyyufmh", "unqndyfpchrqb", "qspkcdqzhlctd")) - .withProperties(new ServiceResourceProperties().withPlacementConstraints("kwrrwo") + .define("qqxlajr") + .withExistingApplication("qgleohibetnluank", "rfxeeebtij", "acvbmqz") + .withRegion("dbzqgqqihed") + .withTags(mapOf("yj", "fvnz", "opv", "otp")) + .withProperties(new ServiceResourceProperties().withPlacementConstraints("r") .withCorrelationScheme(Arrays.asList( new ServiceCorrelation().withScheme(ServiceCorrelationScheme.NON_ALIGNED_AFFINITY) - .withServiceName("cwyhahno"), + .withServiceName("iypoqeyhlqhykprl"), + new ServiceCorrelation().withScheme(ServiceCorrelationScheme.ALIGNED_AFFINITY) + .withServiceName("znuciqdsm"), new ServiceCorrelation().withScheme(ServiceCorrelationScheme.NON_ALIGNED_AFFINITY) - .withServiceName("rkywuhpsvfuu"), + .withServiceName("iitdfuxt"), new ServiceCorrelation().withScheme(ServiceCorrelationScheme.NON_ALIGNED_AFFINITY) - .withServiceName("tlwexxwlalniexz"))) + .withServiceName("siibmiybnnustgn"))) .withServiceLoadMetrics(Arrays.asList( - new ServiceLoadMetric().withName("pgepqtybbwwpgda") - .withWeight(ServiceLoadMetricWeight.HIGH) - .withPrimaryDefaultLoad(48761414) - .withSecondaryDefaultLoad(1437214498) - .withDefaultLoad(1984466292), - new ServiceLoadMetric().withName("q") + new ServiceLoadMetric().withName("nmgixh") + .withWeight(ServiceLoadMetricWeight.MEDIUM) + .withPrimaryDefaultLoad(27658455) + .withSecondaryDefaultLoad(1356013965) + .withDefaultLoad(1277274936), + new ServiceLoadMetric().withName("dorhcgyyp") + .withWeight(ServiceLoadMetricWeight.MEDIUM) + .withPrimaryDefaultLoad(812539177) + .withSecondaryDefaultLoad(1374628714) + .withDefaultLoad(147246399), + new ServiceLoadMetric().withName("mbxhugcmjkav") .withWeight(ServiceLoadMetricWeight.ZERO) - .withPrimaryDefaultLoad(264711388) - .withSecondaryDefaultLoad(197643000) - .withDefaultLoad(330254773))) + .withPrimaryDefaultLoad(2097431423) + .withSecondaryDefaultLoad(1220118900) + .withDefaultLoad(1135735210))) .withServicePlacementPolicies(Arrays.asList(new ServicePlacementPolicy(), new ServicePlacementPolicy(), new ServicePlacementPolicy(), new ServicePlacementPolicy())) - .withDefaultMoveCost(MoveCost.ZERO) + .withDefaultMoveCost(MoveCost.HIGH) .withScalingPolicies(Arrays.asList( new ScalingPolicy().withScalingMechanism(new ScalingMechanism()) .withScalingTrigger(new ScalingTrigger()), new ScalingPolicy().withScalingMechanism(new ScalingMechanism()) .withScalingTrigger(new ScalingTrigger()), + new ScalingPolicy().withScalingMechanism(new ScalingMechanism()) + .withScalingTrigger(new ScalingTrigger()), new ScalingPolicy().withScalingMechanism(new ScalingMechanism()) .withScalingTrigger(new ScalingTrigger()))) - .withServiceTypeName("pbt") + .withServiceTypeName("afgaoqlt") .withPartitionDescription(new Partition()) .withServicePackageActivationMode(ServicePackageActivationMode.SHARED_PROCESS) - .withServiceDnsName("eszabbelawumuas")) + .withServiceDnsName("linmfgv")) .create(); - Assertions.assertEquals("z", response.properties().placementConstraints()); + Assertions.assertEquals("nkfkbgbzb", response.properties().placementConstraints()); Assertions.assertEquals(ServiceCorrelationScheme.NON_ALIGNED_AFFINITY, response.properties().correlationScheme().get(0).scheme()); - Assertions.assertEquals("cb", response.properties().correlationScheme().get(0).serviceName()); - Assertions.assertEquals("uzslzojhpctfnmdx", response.properties().serviceLoadMetrics().get(0).name()); - Assertions.assertEquals(ServiceLoadMetricWeight.HIGH, + Assertions.assertEquals("qocl", response.properties().correlationScheme().get(0).serviceName()); + Assertions.assertEquals("bzefezr", response.properties().serviceLoadMetrics().get(0).name()); + Assertions.assertEquals(ServiceLoadMetricWeight.LOW, response.properties().serviceLoadMetrics().get(0).weight()); - Assertions.assertEquals(120965041, response.properties().serviceLoadMetrics().get(0).primaryDefaultLoad()); - Assertions.assertEquals(1293168350, response.properties().serviceLoadMetrics().get(0).secondaryDefaultLoad()); - Assertions.assertEquals(1282016388, response.properties().serviceLoadMetrics().get(0).defaultLoad()); - Assertions.assertEquals(MoveCost.LOW, response.properties().defaultMoveCost()); - Assertions.assertEquals("rjtloq", response.properties().serviceTypeName()); + Assertions.assertEquals(307502339, response.properties().serviceLoadMetrics().get(0).primaryDefaultLoad()); + Assertions.assertEquals(488183187, response.properties().serviceLoadMetrics().get(0).secondaryDefaultLoad()); + Assertions.assertEquals(22024155, response.properties().serviceLoadMetrics().get(0).defaultLoad()); + Assertions.assertEquals(MoveCost.MEDIUM, response.properties().defaultMoveCost()); + Assertions.assertEquals("mcmuapc", response.properties().serviceTypeName()); Assertions.assertEquals(ServicePackageActivationMode.EXCLUSIVE_PROCESS, response.properties().servicePackageActivationMode()); - Assertions.assertEquals("jrngif", response.properties().serviceDnsName()); - Assertions.assertEquals("yhyhsgzfczb", response.tags().get("omfgbeglqgleohib")); - Assertions.assertEquals("yxoaf", response.location()); + Assertions.assertEquals("evwqqxeyskonq", response.properties().serviceDnsName()); + Assertions.assertEquals("lvfhrbbp", response.tags().get("eqvcwwyyurmoch")); + Assertions.assertEquals("fqsfa", response.location()); } // Use "Map.of" if available diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesGetWithResponseMockTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesGetWithResponseMockTests.java index 625602ea7fcf..1eabaae4bb93 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesGetWithResponseMockTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesGetWithResponseMockTests.java @@ -25,7 +25,7 @@ public final class ServicesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"serviceKind\":\"ServiceResourceProperties\",\"provisioningState\":\"dqns\",\"serviceTypeName\":\"fzpbgtgkyl\",\"partitionDescription\":{\"partitionScheme\":\"Partition\"},\"servicePackageActivationMode\":\"ExclusiveProcess\",\"serviceDnsName\":\"rjeuut\",\"placementConstraints\":\"xezw\",\"correlationScheme\":[{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"vbwnhhtq\"},{\"scheme\":\"AlignedAffinity\",\"serviceName\":\"ehgpp\"},{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"ifhpf\"},{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"ajvgcxtxjcsheafi\"}],\"serviceLoadMetrics\":[{\"name\":\"ugsresmkssjhoi\",\"weight\":\"High\",\"primaryDefaultLoad\":1451676187,\"secondaryDefaultLoad\":1606818470,\"defaultLoad\":753800849},{\"name\":\"prhptillu\",\"weight\":\"Low\",\"primaryDefaultLoad\":1656639409,\"secondaryDefaultLoad\":1467633348,\"defaultLoad\":2010820897},{\"name\":\"hm\",\"weight\":\"High\",\"primaryDefaultLoad\":484782271,\"secondaryDefaultLoad\":1561127811,\"defaultLoad\":379885454},{\"name\":\"tpwb\",\"weight\":\"Low\",\"primaryDefaultLoad\":1155046174,\"secondaryDefaultLoad\":1996411708,\"defaultLoad\":1970354054}],\"servicePlacementPolicies\":[{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"}],\"defaultMoveCost\":\"Low\",\"scalingPolicies\":[{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}}]},\"tags\":{\"ankjpdnjzh\":\"a\",\"lmuoyxprimrsopte\":\"joylh\",\"wxdzaumweoohgu\":\"cjmeislstvasy\",\"emwmdxmebwjs\":\"fuzboyjathwtzolb\"},\"location\":\"p\",\"id\":\"lxveabfqx\",\"name\":\"mwmqtibx\",\"type\":\"ijddtvqc\"}"; + = "{\"properties\":{\"serviceKind\":\"ServiceResourceProperties\",\"provisioningState\":\"amqu\",\"serviceTypeName\":\"iosrsjuivfcdis\",\"partitionDescription\":{\"partitionScheme\":\"Partition\"},\"servicePackageActivationMode\":\"SharedProcess\",\"serviceDnsName\":\"xzhczexrxz\",\"placementConstraints\":\"jrtrhqvwrevk\",\"correlationScheme\":[{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"nzonzl\"},{\"scheme\":\"AlignedAffinity\",\"serviceName\":\"i\"},{\"scheme\":\"AlignedAffinity\",\"serviceName\":\"wncvjtszcofiz\"}],\"serviceLoadMetrics\":[{\"name\":\"dhgbjkvre\",\"weight\":\"Medium\",\"primaryDefaultLoad\":1414987705,\"secondaryDefaultLoad\":615677000,\"defaultLoad\":601956231},{\"name\":\"mlovuanashcxl\",\"weight\":\"High\",\"primaryDefaultLoad\":613917704,\"secondaryDefaultLoad\":513286022,\"defaultLoad\":1754763241},{\"name\":\"lvidizozs\",\"weight\":\"Low\",\"primaryDefaultLoad\":1441551440,\"secondaryDefaultLoad\":1920486563,\"defaultLoad\":1331407717}],\"servicePlacementPolicies\":[{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"}],\"defaultMoveCost\":\"Medium\",\"scalingPolicies\":[{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}}]},\"tags\":{\"ltv\":\"puuw\",\"zhmkdasvflyh\":\"qjctzenkeif\",\"oldforobw\":\"xcudchxgsr\",\"hfovvacqpbtu\":\"lvizb\"},\"location\":\"xesz\",\"id\":\"belawumuaslzkwr\",\"name\":\"woycqucwyha\",\"type\":\"nomdrkywuhpsv\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,25 +35,26 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ServiceResource response = manager.services() - .getWithResponse("c", "xgccknfnw", "btmvpdvjdhttza", "fedxihchrphkm", com.azure.core.util.Context.NONE) + .getWithResponse("ybpmzznrtffyaq", "tmhheioqa", "hvseufuqyrx", "dlcgqlsismjqfr", + com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("xezw", response.properties().placementConstraints()); + Assertions.assertEquals("jrtrhqvwrevk", response.properties().placementConstraints()); Assertions.assertEquals(ServiceCorrelationScheme.NON_ALIGNED_AFFINITY, response.properties().correlationScheme().get(0).scheme()); - Assertions.assertEquals("vbwnhhtq", response.properties().correlationScheme().get(0).serviceName()); - Assertions.assertEquals("ugsresmkssjhoi", response.properties().serviceLoadMetrics().get(0).name()); - Assertions.assertEquals(ServiceLoadMetricWeight.HIGH, + Assertions.assertEquals("nzonzl", response.properties().correlationScheme().get(0).serviceName()); + Assertions.assertEquals("dhgbjkvre", response.properties().serviceLoadMetrics().get(0).name()); + Assertions.assertEquals(ServiceLoadMetricWeight.MEDIUM, response.properties().serviceLoadMetrics().get(0).weight()); - Assertions.assertEquals(1451676187, response.properties().serviceLoadMetrics().get(0).primaryDefaultLoad()); - Assertions.assertEquals(1606818470, response.properties().serviceLoadMetrics().get(0).secondaryDefaultLoad()); - Assertions.assertEquals(753800849, response.properties().serviceLoadMetrics().get(0).defaultLoad()); - Assertions.assertEquals(MoveCost.LOW, response.properties().defaultMoveCost()); - Assertions.assertEquals("fzpbgtgkyl", response.properties().serviceTypeName()); - Assertions.assertEquals(ServicePackageActivationMode.EXCLUSIVE_PROCESS, + Assertions.assertEquals(1414987705, response.properties().serviceLoadMetrics().get(0).primaryDefaultLoad()); + Assertions.assertEquals(615677000, response.properties().serviceLoadMetrics().get(0).secondaryDefaultLoad()); + Assertions.assertEquals(601956231, response.properties().serviceLoadMetrics().get(0).defaultLoad()); + Assertions.assertEquals(MoveCost.MEDIUM, response.properties().defaultMoveCost()); + Assertions.assertEquals("iosrsjuivfcdis", response.properties().serviceTypeName()); + Assertions.assertEquals(ServicePackageActivationMode.SHARED_PROCESS, response.properties().servicePackageActivationMode()); - Assertions.assertEquals("rjeuut", response.properties().serviceDnsName()); - Assertions.assertEquals("a", response.tags().get("ankjpdnjzh")); - Assertions.assertEquals("p", response.location()); + Assertions.assertEquals("xzhczexrxz", response.properties().serviceDnsName()); + Assertions.assertEquals("puuw", response.tags().get("ltv")); + Assertions.assertEquals("xesz", response.location()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesListByApplicationsMockTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesListByApplicationsMockTests.java index 6d625d072b69..bd66fe737030 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesListByApplicationsMockTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ServicesListByApplicationsMockTests.java @@ -26,7 +26,7 @@ public final class ServicesListByApplicationsMockTests { @Test public void testListByApplications() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"serviceKind\":\"ServiceResourceProperties\",\"provisioningState\":\"bu\",\"serviceTypeName\":\"qwyxebeybpm\",\"partitionDescription\":{\"partitionScheme\":\"Partition\"},\"servicePackageActivationMode\":\"ExclusiveProcess\",\"serviceDnsName\":\"tffyaqit\",\"placementConstraints\":\"heioqa\",\"correlationScheme\":[{\"scheme\":\"AlignedAffinity\",\"serviceName\":\"eufuqyrxpdlcgql\"}],\"serviceLoadMetrics\":[{\"name\":\"mjqfrddgamquhio\",\"weight\":\"High\",\"primaryDefaultLoad\":2131162818,\"secondaryDefaultLoad\":364566844,\"defaultLoad\":1776992890},{\"name\":\"disyirnxz\",\"weight\":\"Medium\",\"primaryDefaultLoad\":394290556,\"secondaryDefaultLoad\":1167405678,\"defaultLoad\":994025187},{\"name\":\"ujrtrhqvwr\",\"weight\":\"Zero\",\"primaryDefaultLoad\":589242227,\"secondaryDefaultLoad\":1550567255,\"defaultLoad\":1309315594}],\"servicePlacementPolicies\":[{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"}],\"defaultMoveCost\":\"Medium\",\"scalingPolicies\":[{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}}]},\"tags\":{\"cvjtszcofiz\":\"yw\",\"gbjkvreljeamur\":\"htd\",\"xlpm\":\"zmlovuanash\"},\"location\":\"rbdkelvidiz\",\"id\":\"sdbccxjmonfdgnwn\",\"name\":\"ypuuwwltvuqjctze\",\"type\":\"keifzzhmkdasv\"}]}"; + = "{\"value\":[{\"properties\":{\"serviceKind\":\"ServiceResourceProperties\",\"provisioningState\":\"bwwpgdakchzy\",\"serviceTypeName\":\"lixqnrkcxkjibn\",\"partitionDescription\":{\"partitionScheme\":\"Partition\"},\"servicePackageActivationMode\":\"SharedProcess\",\"serviceDnsName\":\"uxswqrntvl\",\"placementConstraints\":\"jpsttexoq\",\"correlationScheme\":[{\"scheme\":\"AlignedAffinity\",\"serviceName\":\"yyufmhruncuw\"},{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"spkcdqzh\"},{\"scheme\":\"AlignedAffinity\",\"serviceName\":\"tddunqnd\"},{\"scheme\":\"AlignedAffinity\",\"serviceName\":\"pchrqbn\"}],\"serviceLoadMetrics\":[{\"name\":\"cgegydcwbo\",\"weight\":\"Zero\",\"primaryDefaultLoad\":1792979212,\"secondaryDefaultLoad\":1073196572,\"defaultLoad\":1101777200},{\"name\":\"ihrraiouaub\",\"weight\":\"Medium\",\"primaryDefaultLoad\":434775558,\"secondaryDefaultLoad\":1702747573,\"defaultLoad\":465765494},{\"name\":\"oj\",\"weight\":\"High\",\"primaryDefaultLoad\":1614609688,\"secondaryDefaultLoad\":2143335427,\"defaultLoad\":1851238843},{\"name\":\"asccbiui\",\"weight\":\"Low\",\"primaryDefaultLoad\":26585986,\"secondaryDefaultLoad\":162687194,\"defaultLoad\":7799986}],\"servicePlacementPolicies\":[{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"}],\"defaultMoveCost\":\"Medium\",\"scalingPolicies\":[{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}}]},\"tags\":{\"mdxotngfdgu\":\"dvruzslzojhpctf\",\"i\":\"eyzihgrky\"},\"location\":\"bsnmfpph\",\"id\":\"eevy\",\"name\":\"yhsgz\",\"type\":\"czbgomfgbeg\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,29 +36,29 @@ public void testListByApplications() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.services() - .listByApplications("tad", "jaeukmrsieekpn", "zaapmudqmeqwi", com.azure.core.util.Context.NONE); + .listByApplications("uurutlwexxwlalni", "xzsrzpge", "q", com.azure.core.util.Context.NONE); - Assertions.assertEquals("heioqa", response.iterator().next().properties().placementConstraints()); + Assertions.assertEquals("jpsttexoq", response.iterator().next().properties().placementConstraints()); Assertions.assertEquals(ServiceCorrelationScheme.ALIGNED_AFFINITY, response.iterator().next().properties().correlationScheme().get(0).scheme()); - Assertions.assertEquals("eufuqyrxpdlcgql", + Assertions.assertEquals("yyufmhruncuw", response.iterator().next().properties().correlationScheme().get(0).serviceName()); - Assertions.assertEquals("mjqfrddgamquhio", + Assertions.assertEquals("cgegydcwbo", response.iterator().next().properties().serviceLoadMetrics().get(0).name()); - Assertions.assertEquals(ServiceLoadMetricWeight.HIGH, + Assertions.assertEquals(ServiceLoadMetricWeight.ZERO, response.iterator().next().properties().serviceLoadMetrics().get(0).weight()); - Assertions.assertEquals(2131162818, + Assertions.assertEquals(1792979212, response.iterator().next().properties().serviceLoadMetrics().get(0).primaryDefaultLoad()); - Assertions.assertEquals(364566844, + Assertions.assertEquals(1073196572, response.iterator().next().properties().serviceLoadMetrics().get(0).secondaryDefaultLoad()); - Assertions.assertEquals(1776992890, + Assertions.assertEquals(1101777200, response.iterator().next().properties().serviceLoadMetrics().get(0).defaultLoad()); Assertions.assertEquals(MoveCost.MEDIUM, response.iterator().next().properties().defaultMoveCost()); - Assertions.assertEquals("qwyxebeybpm", response.iterator().next().properties().serviceTypeName()); - Assertions.assertEquals(ServicePackageActivationMode.EXCLUSIVE_PROCESS, + Assertions.assertEquals("lixqnrkcxkjibn", response.iterator().next().properties().serviceTypeName()); + Assertions.assertEquals(ServicePackageActivationMode.SHARED_PROCESS, response.iterator().next().properties().servicePackageActivationMode()); - Assertions.assertEquals("tffyaqit", response.iterator().next().properties().serviceDnsName()); - Assertions.assertEquals("yw", response.iterator().next().tags().get("cvjtszcofiz")); - Assertions.assertEquals("rbdkelvidiz", response.iterator().next().location()); + Assertions.assertEquals("uxswqrntvl", response.iterator().next().properties().serviceDnsName()); + Assertions.assertEquals("dvruzslzojhpctf", response.iterator().next().tags().get("mdxotngfdgu")); + Assertions.assertEquals("bsnmfpph", response.iterator().next().location()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/SettingsParameterDescriptionTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/SettingsParameterDescriptionTests.java index 5499f2bdfd9d..72e729b0fae1 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/SettingsParameterDescriptionTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/SettingsParameterDescriptionTests.java @@ -11,17 +11,17 @@ public final class SettingsParameterDescriptionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SettingsParameterDescription model - = BinaryData.fromString("{\"name\":\"z\",\"value\":\"v\"}").toObject(SettingsParameterDescription.class); - Assertions.assertEquals("z", model.name()); - Assertions.assertEquals("v", model.value()); + SettingsParameterDescription model = BinaryData.fromString("{\"name\":\"qnajxqugj\",\"value\":\"ky\"}") + .toObject(SettingsParameterDescription.class); + Assertions.assertEquals("qnajxqugj", model.name()); + Assertions.assertEquals("ky", model.value()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SettingsParameterDescription model = new SettingsParameterDescription().withName("z").withValue("v"); + SettingsParameterDescription model = new SettingsParameterDescription().withName("qnajxqugj").withValue("ky"); model = BinaryData.fromObject(model).toObject(SettingsParameterDescription.class); - Assertions.assertEquals("z", model.name()); - Assertions.assertEquals("v", model.value()); + Assertions.assertEquals("qnajxqugj", model.name()); + Assertions.assertEquals("ky", model.value()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/SettingsSectionDescriptionTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/SettingsSectionDescriptionTests.java index bf0c470d684a..d953fabbbe01 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/SettingsSectionDescriptionTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/SettingsSectionDescriptionTests.java @@ -13,24 +13,21 @@ public final class SettingsSectionDescriptionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SettingsSectionDescription model = BinaryData.fromString( - "{\"name\":\"vokotllxdyh\",\"parameters\":[{\"name\":\"y\",\"value\":\"cogjltdtbn\"},{\"name\":\"hadoocrk\",\"value\":\"cikhnv\"},{\"name\":\"amqgxqquezikyw\",\"value\":\"gxk\"},{\"name\":\"lla\",\"value\":\"melwuipiccjz\"}]}") - .toObject(SettingsSectionDescription.class); - Assertions.assertEquals("vokotllxdyh", model.name()); - Assertions.assertEquals("y", model.parameters().get(0).name()); - Assertions.assertEquals("cogjltdtbn", model.parameters().get(0).value()); + SettingsSectionDescription model + = BinaryData.fromString("{\"name\":\"rw\",\"parameters\":[{\"name\":\"co\",\"value\":\"uhpkxkgymar\"}]}") + .toObject(SettingsSectionDescription.class); + Assertions.assertEquals("rw", model.name()); + Assertions.assertEquals("co", model.parameters().get(0).name()); + Assertions.assertEquals("uhpkxkgymar", model.parameters().get(0).value()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SettingsSectionDescription model = new SettingsSectionDescription().withName("vokotllxdyh") - .withParameters(Arrays.asList(new SettingsParameterDescription().withName("y").withValue("cogjltdtbn"), - new SettingsParameterDescription().withName("hadoocrk").withValue("cikhnv"), - new SettingsParameterDescription().withName("amqgxqquezikyw").withValue("gxk"), - new SettingsParameterDescription().withName("lla").withValue("melwuipiccjz"))); + SettingsSectionDescription model = new SettingsSectionDescription().withName("rw") + .withParameters(Arrays.asList(new SettingsParameterDescription().withName("co").withValue("uhpkxkgymar"))); model = BinaryData.fromObject(model).toObject(SettingsSectionDescription.class); - Assertions.assertEquals("vokotllxdyh", model.name()); - Assertions.assertEquals("y", model.parameters().get(0).name()); - Assertions.assertEquals("cogjltdtbn", model.parameters().get(0).value()); + Assertions.assertEquals("rw", model.name()); + Assertions.assertEquals("co", model.parameters().get(0).name()); + Assertions.assertEquals("uhpkxkgymar", model.parameters().get(0).value()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/SkuTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/SkuTests.java index c3b69599fc05..a433c1b3c13f 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/SkuTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/SkuTests.java @@ -12,14 +12,14 @@ public final class SkuTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - Sku model = BinaryData.fromString("{\"name\":\"Basic\"}").toObject(Sku.class); - Assertions.assertEquals(SkuName.BASIC, model.name()); + Sku model = BinaryData.fromString("{\"name\":\"Standard\"}").toObject(Sku.class); + Assertions.assertEquals(SkuName.STANDARD, model.name()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - Sku model = new Sku().withName(SkuName.BASIC); + Sku model = new Sku().withName(SkuName.STANDARD); model = BinaryData.fromObject(model).toObject(Sku.class); - Assertions.assertEquals(SkuName.BASIC, model.name()); + Assertions.assertEquals(SkuName.STANDARD, model.name()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/StatefulServicePropertiesTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/StatefulServicePropertiesTests.java index 7bb3a63e417b..a75564df9c28 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/StatefulServicePropertiesTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/StatefulServicePropertiesTests.java @@ -24,88 +24,92 @@ public final class StatefulServicePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { StatefulServiceProperties model = BinaryData.fromString( - "{\"serviceKind\":\"Stateful\",\"hasPersistedState\":false,\"targetReplicaSetSize\":914615331,\"minReplicaSetSize\":1745104172,\"replicaRestartWaitDuration\":\"bkc\",\"quorumLossWaitDuration\":\"dhbt\",\"standByReplicaKeepDuration\":\"phywpnvj\",\"servicePlacementTimeLimit\":\"qnermclfplphoxu\",\"provisioningState\":\"rpabg\",\"serviceTypeName\":\"epsbjtazqu\",\"partitionDescription\":{\"partitionScheme\":\"Partition\"},\"servicePackageActivationMode\":\"ExclusiveProcess\",\"serviceDnsName\":\"pmueefjzwfqk\",\"placementConstraints\":\"jidsuyonobglaoc\",\"correlationScheme\":[{\"scheme\":\"AlignedAffinity\",\"serviceName\":\"cmgyud\"}],\"serviceLoadMetrics\":[{\"name\":\"lmoyrx\",\"weight\":\"Low\",\"primaryDefaultLoad\":403204349,\"secondaryDefaultLoad\":397011465,\"defaultLoad\":1705865903},{\"name\":\"txhdzh\",\"weight\":\"Zero\",\"primaryDefaultLoad\":315057202,\"secondaryDefaultLoad\":278675710,\"defaultLoad\":1058131952}],\"servicePlacementPolicies\":[{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"}],\"defaultMoveCost\":\"Low\",\"scalingPolicies\":[{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}}]}") + "{\"serviceKind\":\"Stateful\",\"hasPersistedState\":false,\"targetReplicaSetSize\":1181953038,\"minReplicaSetSize\":1784168921,\"replicaRestartWaitDuration\":\"pnapnyiropuh\",\"quorumLossWaitDuration\":\"gvpgy\",\"standByReplicaKeepDuration\":\"qgitxmed\",\"servicePlacementTimeLimit\":\"c\",\"provisioningState\":\"ynqwwncwzzhxgk\",\"serviceTypeName\":\"rmgucnap\",\"partitionDescription\":{\"partitionScheme\":\"Partition\"},\"servicePackageActivationMode\":\"ExclusiveProcess\",\"serviceDnsName\":\"ellwptfdy\",\"placementConstraints\":\"fqbuaceopzf\",\"correlationScheme\":[{\"scheme\":\"AlignedAffinity\",\"serviceName\":\"uaopppcqeq\"},{\"scheme\":\"AlignedAffinity\",\"serviceName\":\"lzdahzxctobgbkdm\"}],\"serviceLoadMetrics\":[{\"name\":\"postmgrcfbunrm\",\"weight\":\"Low\",\"primaryDefaultLoad\":1514196335,\"secondaryDefaultLoad\":529783276,\"defaultLoad\":1199001730},{\"name\":\"vjymjhxxjyngud\",\"weight\":\"Medium\",\"primaryDefaultLoad\":1003023874,\"secondaryDefaultLoad\":855265021,\"defaultLoad\":173760475},{\"name\":\"qzvszjf\",\"weight\":\"Low\",\"primaryDefaultLoad\":2022160914,\"secondaryDefaultLoad\":1631327314,\"defaultLoad\":1924532267}],\"servicePlacementPolicies\":[{\"type\":\"ServicePlacementPolicy\"}],\"defaultMoveCost\":\"Medium\",\"scalingPolicies\":[{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}}]}") .toObject(StatefulServiceProperties.class); - Assertions.assertEquals("jidsuyonobglaoc", model.placementConstraints()); + Assertions.assertEquals("fqbuaceopzf", model.placementConstraints()); Assertions.assertEquals(ServiceCorrelationScheme.ALIGNED_AFFINITY, model.correlationScheme().get(0).scheme()); - Assertions.assertEquals("cmgyud", model.correlationScheme().get(0).serviceName()); - Assertions.assertEquals("lmoyrx", model.serviceLoadMetrics().get(0).name()); + Assertions.assertEquals("uaopppcqeq", model.correlationScheme().get(0).serviceName()); + Assertions.assertEquals("postmgrcfbunrm", model.serviceLoadMetrics().get(0).name()); Assertions.assertEquals(ServiceLoadMetricWeight.LOW, model.serviceLoadMetrics().get(0).weight()); - Assertions.assertEquals(403204349, model.serviceLoadMetrics().get(0).primaryDefaultLoad()); - Assertions.assertEquals(397011465, model.serviceLoadMetrics().get(0).secondaryDefaultLoad()); - Assertions.assertEquals(1705865903, model.serviceLoadMetrics().get(0).defaultLoad()); - Assertions.assertEquals(MoveCost.LOW, model.defaultMoveCost()); - Assertions.assertEquals("epsbjtazqu", model.serviceTypeName()); + Assertions.assertEquals(1514196335, model.serviceLoadMetrics().get(0).primaryDefaultLoad()); + Assertions.assertEquals(529783276, model.serviceLoadMetrics().get(0).secondaryDefaultLoad()); + Assertions.assertEquals(1199001730, model.serviceLoadMetrics().get(0).defaultLoad()); + Assertions.assertEquals(MoveCost.MEDIUM, model.defaultMoveCost()); + Assertions.assertEquals("rmgucnap", model.serviceTypeName()); Assertions.assertEquals(ServicePackageActivationMode.EXCLUSIVE_PROCESS, model.servicePackageActivationMode()); - Assertions.assertEquals("pmueefjzwfqk", model.serviceDnsName()); + Assertions.assertEquals("ellwptfdy", model.serviceDnsName()); Assertions.assertFalse(model.hasPersistedState()); - Assertions.assertEquals(914615331, model.targetReplicaSetSize()); - Assertions.assertEquals(1745104172, model.minReplicaSetSize()); - Assertions.assertEquals("bkc", model.replicaRestartWaitDuration()); - Assertions.assertEquals("dhbt", model.quorumLossWaitDuration()); - Assertions.assertEquals("phywpnvj", model.standByReplicaKeepDuration()); - Assertions.assertEquals("qnermclfplphoxu", model.servicePlacementTimeLimit()); + Assertions.assertEquals(1181953038, model.targetReplicaSetSize()); + Assertions.assertEquals(1784168921, model.minReplicaSetSize()); + Assertions.assertEquals("pnapnyiropuh", model.replicaRestartWaitDuration()); + Assertions.assertEquals("gvpgy", model.quorumLossWaitDuration()); + Assertions.assertEquals("qgitxmed", model.standByReplicaKeepDuration()); + Assertions.assertEquals("c", model.servicePlacementTimeLimit()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - StatefulServiceProperties model = new StatefulServiceProperties().withPlacementConstraints("jidsuyonobglaoc") - .withCorrelationScheme( - Arrays.asList(new ServiceCorrelation().withScheme(ServiceCorrelationScheme.ALIGNED_AFFINITY) - .withServiceName("cmgyud"))) + StatefulServiceProperties model = new StatefulServiceProperties().withPlacementConstraints("fqbuaceopzf") + .withCorrelationScheme(Arrays.asList( + new ServiceCorrelation().withScheme(ServiceCorrelationScheme.ALIGNED_AFFINITY) + .withServiceName("uaopppcqeq"), + new ServiceCorrelation().withScheme(ServiceCorrelationScheme.ALIGNED_AFFINITY) + .withServiceName("lzdahzxctobgbkdm"))) .withServiceLoadMetrics(Arrays.asList( - new ServiceLoadMetric().withName("lmoyrx") + new ServiceLoadMetric().withName("postmgrcfbunrm") .withWeight(ServiceLoadMetricWeight.LOW) - .withPrimaryDefaultLoad(403204349) - .withSecondaryDefaultLoad(397011465) - .withDefaultLoad(1705865903), - new ServiceLoadMetric().withName("txhdzh") - .withWeight(ServiceLoadMetricWeight.ZERO) - .withPrimaryDefaultLoad(315057202) - .withSecondaryDefaultLoad(278675710) - .withDefaultLoad(1058131952))) - .withServicePlacementPolicies( - Arrays.asList(new ServicePlacementPolicy(), new ServicePlacementPolicy(), new ServicePlacementPolicy())) - .withDefaultMoveCost(MoveCost.LOW) + .withPrimaryDefaultLoad(1514196335) + .withSecondaryDefaultLoad(529783276) + .withDefaultLoad(1199001730), + new ServiceLoadMetric().withName("vjymjhxxjyngud") + .withWeight(ServiceLoadMetricWeight.MEDIUM) + .withPrimaryDefaultLoad(1003023874) + .withSecondaryDefaultLoad(855265021) + .withDefaultLoad(173760475), + new ServiceLoadMetric().withName("qzvszjf") + .withWeight(ServiceLoadMetricWeight.LOW) + .withPrimaryDefaultLoad(2022160914) + .withSecondaryDefaultLoad(1631327314) + .withDefaultLoad(1924532267))) + .withServicePlacementPolicies(Arrays.asList(new ServicePlacementPolicy())) + .withDefaultMoveCost(MoveCost.MEDIUM) .withScalingPolicies(Arrays.asList( new ScalingPolicy().withScalingMechanism(new ScalingMechanism()) .withScalingTrigger(new ScalingTrigger()), new ScalingPolicy().withScalingMechanism(new ScalingMechanism()) .withScalingTrigger(new ScalingTrigger()), - new ScalingPolicy().withScalingMechanism(new ScalingMechanism()) - .withScalingTrigger(new ScalingTrigger()), new ScalingPolicy().withScalingMechanism(new ScalingMechanism()) .withScalingTrigger(new ScalingTrigger()))) - .withServiceTypeName("epsbjtazqu") + .withServiceTypeName("rmgucnap") .withPartitionDescription(new Partition()) .withServicePackageActivationMode(ServicePackageActivationMode.EXCLUSIVE_PROCESS) - .withServiceDnsName("pmueefjzwfqk") + .withServiceDnsName("ellwptfdy") .withHasPersistedState(false) - .withTargetReplicaSetSize(914615331) - .withMinReplicaSetSize(1745104172) - .withReplicaRestartWaitDuration("bkc") - .withQuorumLossWaitDuration("dhbt") - .withStandByReplicaKeepDuration("phywpnvj") - .withServicePlacementTimeLimit("qnermclfplphoxu"); + .withTargetReplicaSetSize(1181953038) + .withMinReplicaSetSize(1784168921) + .withReplicaRestartWaitDuration("pnapnyiropuh") + .withQuorumLossWaitDuration("gvpgy") + .withStandByReplicaKeepDuration("qgitxmed") + .withServicePlacementTimeLimit("c"); model = BinaryData.fromObject(model).toObject(StatefulServiceProperties.class); - Assertions.assertEquals("jidsuyonobglaoc", model.placementConstraints()); + Assertions.assertEquals("fqbuaceopzf", model.placementConstraints()); Assertions.assertEquals(ServiceCorrelationScheme.ALIGNED_AFFINITY, model.correlationScheme().get(0).scheme()); - Assertions.assertEquals("cmgyud", model.correlationScheme().get(0).serviceName()); - Assertions.assertEquals("lmoyrx", model.serviceLoadMetrics().get(0).name()); + Assertions.assertEquals("uaopppcqeq", model.correlationScheme().get(0).serviceName()); + Assertions.assertEquals("postmgrcfbunrm", model.serviceLoadMetrics().get(0).name()); Assertions.assertEquals(ServiceLoadMetricWeight.LOW, model.serviceLoadMetrics().get(0).weight()); - Assertions.assertEquals(403204349, model.serviceLoadMetrics().get(0).primaryDefaultLoad()); - Assertions.assertEquals(397011465, model.serviceLoadMetrics().get(0).secondaryDefaultLoad()); - Assertions.assertEquals(1705865903, model.serviceLoadMetrics().get(0).defaultLoad()); - Assertions.assertEquals(MoveCost.LOW, model.defaultMoveCost()); - Assertions.assertEquals("epsbjtazqu", model.serviceTypeName()); + Assertions.assertEquals(1514196335, model.serviceLoadMetrics().get(0).primaryDefaultLoad()); + Assertions.assertEquals(529783276, model.serviceLoadMetrics().get(0).secondaryDefaultLoad()); + Assertions.assertEquals(1199001730, model.serviceLoadMetrics().get(0).defaultLoad()); + Assertions.assertEquals(MoveCost.MEDIUM, model.defaultMoveCost()); + Assertions.assertEquals("rmgucnap", model.serviceTypeName()); Assertions.assertEquals(ServicePackageActivationMode.EXCLUSIVE_PROCESS, model.servicePackageActivationMode()); - Assertions.assertEquals("pmueefjzwfqk", model.serviceDnsName()); + Assertions.assertEquals("ellwptfdy", model.serviceDnsName()); Assertions.assertFalse(model.hasPersistedState()); - Assertions.assertEquals(914615331, model.targetReplicaSetSize()); - Assertions.assertEquals(1745104172, model.minReplicaSetSize()); - Assertions.assertEquals("bkc", model.replicaRestartWaitDuration()); - Assertions.assertEquals("dhbt", model.quorumLossWaitDuration()); - Assertions.assertEquals("phywpnvj", model.standByReplicaKeepDuration()); - Assertions.assertEquals("qnermclfplphoxu", model.servicePlacementTimeLimit()); + Assertions.assertEquals(1181953038, model.targetReplicaSetSize()); + Assertions.assertEquals(1784168921, model.minReplicaSetSize()); + Assertions.assertEquals("pnapnyiropuh", model.replicaRestartWaitDuration()); + Assertions.assertEquals("gvpgy", model.quorumLossWaitDuration()); + Assertions.assertEquals("qgitxmed", model.standByReplicaKeepDuration()); + Assertions.assertEquals("c", model.servicePlacementTimeLimit()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/StatelessServicePropertiesTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/StatelessServicePropertiesTests.java index e6402b6083fa..56fb4abf3990 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/StatelessServicePropertiesTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/StatelessServicePropertiesTests.java @@ -24,85 +24,85 @@ public final class StatelessServicePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { StatelessServiceProperties model = BinaryData.fromString( - "{\"serviceKind\":\"Stateless\",\"instanceCount\":1228255689,\"minInstanceCount\":1085647312,\"minInstancePercentage\":475839278,\"provisioningState\":\"ca\",\"serviceTypeName\":\"uzbpzkafku\",\"partitionDescription\":{\"partitionScheme\":\"Partition\"},\"servicePackageActivationMode\":\"SharedProcess\",\"serviceDnsName\":\"nwbmeh\",\"placementConstraints\":\"eyvjusrtslhspkde\",\"correlationScheme\":[{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"fm\"},{\"scheme\":\"AlignedAffinity\",\"serviceName\":\"gkvtmelmqkrhah\"},{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"juahaquhcdhmdual\"}],\"serviceLoadMetrics\":[{\"name\":\"qpv\",\"weight\":\"High\",\"primaryDefaultLoad\":294636913,\"secondaryDefaultLoad\":1606090132,\"defaultLoad\":205808204},{\"name\":\"gvxp\",\"weight\":\"Low\",\"primaryDefaultLoad\":1677729561,\"secondaryDefaultLoad\":1121960551,\"defaultLoad\":1625950300},{\"name\":\"sgwbnbbeld\",\"weight\":\"Zero\",\"primaryDefaultLoad\":1782633502,\"secondaryDefaultLoad\":70118233,\"defaultLoad\":113893877}],\"servicePlacementPolicies\":[{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"}],\"defaultMoveCost\":\"Medium\",\"scalingPolicies\":[{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}}]}") + "{\"serviceKind\":\"Stateless\",\"instanceCount\":1920566576,\"minInstanceCount\":928990245,\"minInstancePercentage\":1261594790,\"provisioningState\":\"qmcbxvwvxyslqbhs\",\"serviceTypeName\":\"xoblytkbl\",\"partitionDescription\":{\"partitionScheme\":\"Partition\"},\"servicePackageActivationMode\":\"ExclusiveProcess\",\"serviceDnsName\":\"wwfbkrvrnsvshq\",\"placementConstraints\":\"hxcr\",\"correlationScheme\":[{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"vasrruvwb\"},{\"scheme\":\"NonAlignedAffinity\",\"serviceName\":\"qfsubcgjbirx\"}],\"serviceLoadMetrics\":[{\"name\":\"bsrfbj\",\"weight\":\"Zero\",\"primaryDefaultLoad\":1972509388,\"secondaryDefaultLoad\":1365200524,\"defaultLoad\":772106102},{\"name\":\"tpvjzbexilzznfqq\",\"weight\":\"Low\",\"primaryDefaultLoad\":1473271495,\"secondaryDefaultLoad\":600094153,\"defaultLoad\":1628769376},{\"name\":\"uoujmkcjhwqy\",\"weight\":\"Zero\",\"primaryDefaultLoad\":778428037,\"secondaryDefaultLoad\":385457826,\"defaultLoad\":524895743},{\"name\":\"wgdrjervnaenqp\",\"weight\":\"High\",\"primaryDefaultLoad\":681452902,\"secondaryDefaultLoad\":895776000,\"defaultLoad\":412409909}],\"servicePlacementPolicies\":[{\"type\":\"ServicePlacementPolicy\"},{\"type\":\"ServicePlacementPolicy\"}],\"defaultMoveCost\":\"High\",\"scalingPolicies\":[{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}},{\"scalingMechanism\":{\"kind\":\"ScalingMechanism\"},\"scalingTrigger\":{\"kind\":\"ScalingTrigger\"}}]}") .toObject(StatelessServiceProperties.class); - Assertions.assertEquals("eyvjusrtslhspkde", model.placementConstraints()); + Assertions.assertEquals("hxcr", model.placementConstraints()); Assertions.assertEquals(ServiceCorrelationScheme.NON_ALIGNED_AFFINITY, model.correlationScheme().get(0).scheme()); - Assertions.assertEquals("fm", model.correlationScheme().get(0).serviceName()); - Assertions.assertEquals("qpv", model.serviceLoadMetrics().get(0).name()); - Assertions.assertEquals(ServiceLoadMetricWeight.HIGH, model.serviceLoadMetrics().get(0).weight()); - Assertions.assertEquals(294636913, model.serviceLoadMetrics().get(0).primaryDefaultLoad()); - Assertions.assertEquals(1606090132, model.serviceLoadMetrics().get(0).secondaryDefaultLoad()); - Assertions.assertEquals(205808204, model.serviceLoadMetrics().get(0).defaultLoad()); - Assertions.assertEquals(MoveCost.MEDIUM, model.defaultMoveCost()); - Assertions.assertEquals("uzbpzkafku", model.serviceTypeName()); - Assertions.assertEquals(ServicePackageActivationMode.SHARED_PROCESS, model.servicePackageActivationMode()); - Assertions.assertEquals("nwbmeh", model.serviceDnsName()); - Assertions.assertEquals(1228255689, model.instanceCount()); - Assertions.assertEquals(1085647312, model.minInstanceCount()); - Assertions.assertEquals(475839278, model.minInstancePercentage()); + Assertions.assertEquals("vasrruvwb", model.correlationScheme().get(0).serviceName()); + Assertions.assertEquals("bsrfbj", model.serviceLoadMetrics().get(0).name()); + Assertions.assertEquals(ServiceLoadMetricWeight.ZERO, model.serviceLoadMetrics().get(0).weight()); + Assertions.assertEquals(1972509388, model.serviceLoadMetrics().get(0).primaryDefaultLoad()); + Assertions.assertEquals(1365200524, model.serviceLoadMetrics().get(0).secondaryDefaultLoad()); + Assertions.assertEquals(772106102, model.serviceLoadMetrics().get(0).defaultLoad()); + Assertions.assertEquals(MoveCost.HIGH, model.defaultMoveCost()); + Assertions.assertEquals("xoblytkbl", model.serviceTypeName()); + Assertions.assertEquals(ServicePackageActivationMode.EXCLUSIVE_PROCESS, model.servicePackageActivationMode()); + Assertions.assertEquals("wwfbkrvrnsvshq", model.serviceDnsName()); + Assertions.assertEquals(1920566576, model.instanceCount()); + Assertions.assertEquals(928990245, model.minInstanceCount()); + Assertions.assertEquals(1261594790, model.minInstancePercentage()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - StatelessServiceProperties model = new StatelessServiceProperties().withPlacementConstraints("eyvjusrtslhspkde") + StatelessServiceProperties model = new StatelessServiceProperties().withPlacementConstraints("hxcr") .withCorrelationScheme(Arrays.asList( new ServiceCorrelation().withScheme(ServiceCorrelationScheme.NON_ALIGNED_AFFINITY) - .withServiceName("fm"), - new ServiceCorrelation().withScheme(ServiceCorrelationScheme.ALIGNED_AFFINITY) - .withServiceName("gkvtmelmqkrhah"), + .withServiceName("vasrruvwb"), new ServiceCorrelation().withScheme(ServiceCorrelationScheme.NON_ALIGNED_AFFINITY) - .withServiceName("juahaquhcdhmdual"))) + .withServiceName("qfsubcgjbirx"))) .withServiceLoadMetrics(Arrays.asList( - new ServiceLoadMetric().withName("qpv") - .withWeight(ServiceLoadMetricWeight.HIGH) - .withPrimaryDefaultLoad(294636913) - .withSecondaryDefaultLoad(1606090132) - .withDefaultLoad(205808204), - new ServiceLoadMetric().withName("gvxp") + new ServiceLoadMetric().withName("bsrfbj") + .withWeight(ServiceLoadMetricWeight.ZERO) + .withPrimaryDefaultLoad(1972509388) + .withSecondaryDefaultLoad(1365200524) + .withDefaultLoad(772106102), + new ServiceLoadMetric().withName("tpvjzbexilzznfqq") .withWeight(ServiceLoadMetricWeight.LOW) - .withPrimaryDefaultLoad(1677729561) - .withSecondaryDefaultLoad(1121960551) - .withDefaultLoad(1625950300), - new ServiceLoadMetric().withName("sgwbnbbeld") + .withPrimaryDefaultLoad(1473271495) + .withSecondaryDefaultLoad(600094153) + .withDefaultLoad(1628769376), + new ServiceLoadMetric().withName("uoujmkcjhwqy") .withWeight(ServiceLoadMetricWeight.ZERO) - .withPrimaryDefaultLoad(1782633502) - .withSecondaryDefaultLoad(70118233) - .withDefaultLoad(113893877))) - .withServicePlacementPolicies( - Arrays.asList(new ServicePlacementPolicy(), new ServicePlacementPolicy(), new ServicePlacementPolicy())) - .withDefaultMoveCost(MoveCost.MEDIUM) + .withPrimaryDefaultLoad(778428037) + .withSecondaryDefaultLoad(385457826) + .withDefaultLoad(524895743), + new ServiceLoadMetric().withName("wgdrjervnaenqp") + .withWeight(ServiceLoadMetricWeight.HIGH) + .withPrimaryDefaultLoad(681452902) + .withSecondaryDefaultLoad(895776000) + .withDefaultLoad(412409909))) + .withServicePlacementPolicies(Arrays.asList(new ServicePlacementPolicy(), new ServicePlacementPolicy())) + .withDefaultMoveCost(MoveCost.HIGH) .withScalingPolicies(Arrays.asList( - new ScalingPolicy().withScalingMechanism(new ScalingMechanism()) - .withScalingTrigger(new ScalingTrigger()), new ScalingPolicy().withScalingMechanism(new ScalingMechanism()) .withScalingTrigger(new ScalingTrigger()), new ScalingPolicy().withScalingMechanism(new ScalingMechanism()) .withScalingTrigger(new ScalingTrigger()))) - .withServiceTypeName("uzbpzkafku") + .withServiceTypeName("xoblytkbl") .withPartitionDescription(new Partition()) - .withServicePackageActivationMode(ServicePackageActivationMode.SHARED_PROCESS) - .withServiceDnsName("nwbmeh") - .withInstanceCount(1228255689) - .withMinInstanceCount(1085647312) - .withMinInstancePercentage(475839278); + .withServicePackageActivationMode(ServicePackageActivationMode.EXCLUSIVE_PROCESS) + .withServiceDnsName("wwfbkrvrnsvshq") + .withInstanceCount(1920566576) + .withMinInstanceCount(928990245) + .withMinInstancePercentage(1261594790); model = BinaryData.fromObject(model).toObject(StatelessServiceProperties.class); - Assertions.assertEquals("eyvjusrtslhspkde", model.placementConstraints()); + Assertions.assertEquals("hxcr", model.placementConstraints()); Assertions.assertEquals(ServiceCorrelationScheme.NON_ALIGNED_AFFINITY, model.correlationScheme().get(0).scheme()); - Assertions.assertEquals("fm", model.correlationScheme().get(0).serviceName()); - Assertions.assertEquals("qpv", model.serviceLoadMetrics().get(0).name()); - Assertions.assertEquals(ServiceLoadMetricWeight.HIGH, model.serviceLoadMetrics().get(0).weight()); - Assertions.assertEquals(294636913, model.serviceLoadMetrics().get(0).primaryDefaultLoad()); - Assertions.assertEquals(1606090132, model.serviceLoadMetrics().get(0).secondaryDefaultLoad()); - Assertions.assertEquals(205808204, model.serviceLoadMetrics().get(0).defaultLoad()); - Assertions.assertEquals(MoveCost.MEDIUM, model.defaultMoveCost()); - Assertions.assertEquals("uzbpzkafku", model.serviceTypeName()); - Assertions.assertEquals(ServicePackageActivationMode.SHARED_PROCESS, model.servicePackageActivationMode()); - Assertions.assertEquals("nwbmeh", model.serviceDnsName()); - Assertions.assertEquals(1228255689, model.instanceCount()); - Assertions.assertEquals(1085647312, model.minInstanceCount()); - Assertions.assertEquals(475839278, model.minInstancePercentage()); + Assertions.assertEquals("vasrruvwb", model.correlationScheme().get(0).serviceName()); + Assertions.assertEquals("bsrfbj", model.serviceLoadMetrics().get(0).name()); + Assertions.assertEquals(ServiceLoadMetricWeight.ZERO, model.serviceLoadMetrics().get(0).weight()); + Assertions.assertEquals(1972509388, model.serviceLoadMetrics().get(0).primaryDefaultLoad()); + Assertions.assertEquals(1365200524, model.serviceLoadMetrics().get(0).secondaryDefaultLoad()); + Assertions.assertEquals(772106102, model.serviceLoadMetrics().get(0).defaultLoad()); + Assertions.assertEquals(MoveCost.HIGH, model.defaultMoveCost()); + Assertions.assertEquals("xoblytkbl", model.serviceTypeName()); + Assertions.assertEquals(ServicePackageActivationMode.EXCLUSIVE_PROCESS, model.servicePackageActivationMode()); + Assertions.assertEquals("wwfbkrvrnsvshq", model.serviceDnsName()); + Assertions.assertEquals(1920566576, model.instanceCount()); + Assertions.assertEquals(928990245, model.minInstanceCount()); + Assertions.assertEquals(1261594790, model.minInstancePercentage()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/SubnetTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/SubnetTests.java index 20ca75d9ebba..e6e6e777da76 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/SubnetTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/SubnetTests.java @@ -14,27 +14,27 @@ public final class SubnetTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { Subnet model = BinaryData.fromString( - "{\"name\":\"mueedndrdvstk\",\"enableIpv6\":false,\"privateEndpointNetworkPolicies\":\"enabled\",\"privateLinkServiceNetworkPolicies\":\"disabled\",\"networkSecurityGroupId\":\"lmfmtdaay\"}") + "{\"name\":\"krmnjijpxacqqud\",\"enableIpv6\":true,\"privateEndpointNetworkPolicies\":\"disabled\",\"privateLinkServiceNetworkPolicies\":\"disabled\",\"networkSecurityGroupId\":\"abjy\"}") .toObject(Subnet.class); - Assertions.assertEquals("mueedndrdvstk", model.name()); - Assertions.assertFalse(model.enableIpv6()); - Assertions.assertEquals(PrivateEndpointNetworkPolicies.ENABLED, model.privateEndpointNetworkPolicies()); + Assertions.assertEquals("krmnjijpxacqqud", model.name()); + Assertions.assertTrue(model.enableIpv6()); + Assertions.assertEquals(PrivateEndpointNetworkPolicies.DISABLED, model.privateEndpointNetworkPolicies()); Assertions.assertEquals(PrivateLinkServiceNetworkPolicies.DISABLED, model.privateLinkServiceNetworkPolicies()); - Assertions.assertEquals("lmfmtdaay", model.networkSecurityGroupId()); + Assertions.assertEquals("abjy", model.networkSecurityGroupId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - Subnet model = new Subnet().withName("mueedndrdvstk") - .withEnableIpv6(false) - .withPrivateEndpointNetworkPolicies(PrivateEndpointNetworkPolicies.ENABLED) + Subnet model = new Subnet().withName("krmnjijpxacqqud") + .withEnableIpv6(true) + .withPrivateEndpointNetworkPolicies(PrivateEndpointNetworkPolicies.DISABLED) .withPrivateLinkServiceNetworkPolicies(PrivateLinkServiceNetworkPolicies.DISABLED) - .withNetworkSecurityGroupId("lmfmtdaay"); + .withNetworkSecurityGroupId("abjy"); model = BinaryData.fromObject(model).toObject(Subnet.class); - Assertions.assertEquals("mueedndrdvstk", model.name()); - Assertions.assertFalse(model.enableIpv6()); - Assertions.assertEquals(PrivateEndpointNetworkPolicies.ENABLED, model.privateEndpointNetworkPolicies()); + Assertions.assertEquals("krmnjijpxacqqud", model.name()); + Assertions.assertTrue(model.enableIpv6()); + Assertions.assertEquals(PrivateEndpointNetworkPolicies.DISABLED, model.privateEndpointNetworkPolicies()); Assertions.assertEquals(PrivateLinkServiceNetworkPolicies.DISABLED, model.privateLinkServiceNetworkPolicies()); - Assertions.assertEquals("lmfmtdaay", model.networkSecurityGroupId()); + Assertions.assertEquals("abjy", model.networkSecurityGroupId()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VMSSExtensionPropertiesTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VMSSExtensionPropertiesTests.java index 726b341214fb..f0e52529f32d 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VMSSExtensionPropertiesTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VMSSExtensionPropertiesTests.java @@ -14,38 +14,38 @@ public final class VMSSExtensionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VMSSExtensionProperties model = BinaryData.fromString( - "{\"publisher\":\"vdnkfxusem\",\"type\":\"wzrmuh\",\"typeHandlerVersion\":\"pfcqdp\",\"autoUpgradeMinorVersion\":false,\"settings\":\"datavpsvuoymgcce\",\"protectedSettings\":\"dataezrypql\",\"forceUpdateTag\":\"eokerqwkyhkobopg\",\"provisionAfterExtensions\":[\"k\"],\"provisioningState\":\"epbqpcrfkbw\",\"enableAutomaticUpgrade\":true,\"setupOrder\":[\"BeforeSFRuntime\",\"BeforeSFRuntime\",\"BeforeSFRuntime\"]}") + "{\"publisher\":\"ebqaaysjkixqtnq\",\"type\":\"tezlwff\",\"typeHandlerVersion\":\"iakp\",\"autoUpgradeMinorVersion\":true,\"settings\":\"datam\",\"protectedSettings\":\"datad\",\"forceUpdateTag\":\"mmji\",\"provisionAfterExtensions\":[\"ozphvwauyqncygu\",\"kvi\"],\"provisioningState\":\"dscwxqupevzhf\",\"enableAutomaticUpgrade\":true,\"setupOrder\":[\"BeforeSFRuntime\",\"BeforeSFRuntime\"]}") .toObject(VMSSExtensionProperties.class); - Assertions.assertEquals("vdnkfxusem", model.publisher()); - Assertions.assertEquals("wzrmuh", model.type()); - Assertions.assertEquals("pfcqdp", model.typeHandlerVersion()); - Assertions.assertFalse(model.autoUpgradeMinorVersion()); - Assertions.assertEquals("eokerqwkyhkobopg", model.forceUpdateTag()); - Assertions.assertEquals("k", model.provisionAfterExtensions().get(0)); + Assertions.assertEquals("ebqaaysjkixqtnq", model.publisher()); + Assertions.assertEquals("tezlwff", model.type()); + Assertions.assertEquals("iakp", model.typeHandlerVersion()); + Assertions.assertTrue(model.autoUpgradeMinorVersion()); + Assertions.assertEquals("mmji", model.forceUpdateTag()); + Assertions.assertEquals("ozphvwauyqncygu", model.provisionAfterExtensions().get(0)); Assertions.assertTrue(model.enableAutomaticUpgrade()); Assertions.assertEquals(VmssExtensionSetupOrder.BEFORE_SFRUNTIME, model.setupOrder().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VMSSExtensionProperties model = new VMSSExtensionProperties().withPublisher("vdnkfxusem") - .withType("wzrmuh") - .withTypeHandlerVersion("pfcqdp") - .withAutoUpgradeMinorVersion(false) - .withSettings("datavpsvuoymgcce") - .withProtectedSettings("dataezrypql") - .withForceUpdateTag("eokerqwkyhkobopg") - .withProvisionAfterExtensions(Arrays.asList("k")) + VMSSExtensionProperties model = new VMSSExtensionProperties().withPublisher("ebqaaysjkixqtnq") + .withType("tezlwff") + .withTypeHandlerVersion("iakp") + .withAutoUpgradeMinorVersion(true) + .withSettings("datam") + .withProtectedSettings("datad") + .withForceUpdateTag("mmji") + .withProvisionAfterExtensions(Arrays.asList("ozphvwauyqncygu", "kvi")) .withEnableAutomaticUpgrade(true) - .withSetupOrder(Arrays.asList(VmssExtensionSetupOrder.BEFORE_SFRUNTIME, - VmssExtensionSetupOrder.BEFORE_SFRUNTIME, VmssExtensionSetupOrder.BEFORE_SFRUNTIME)); + .withSetupOrder( + Arrays.asList(VmssExtensionSetupOrder.BEFORE_SFRUNTIME, VmssExtensionSetupOrder.BEFORE_SFRUNTIME)); model = BinaryData.fromObject(model).toObject(VMSSExtensionProperties.class); - Assertions.assertEquals("vdnkfxusem", model.publisher()); - Assertions.assertEquals("wzrmuh", model.type()); - Assertions.assertEquals("pfcqdp", model.typeHandlerVersion()); - Assertions.assertFalse(model.autoUpgradeMinorVersion()); - Assertions.assertEquals("eokerqwkyhkobopg", model.forceUpdateTag()); - Assertions.assertEquals("k", model.provisionAfterExtensions().get(0)); + Assertions.assertEquals("ebqaaysjkixqtnq", model.publisher()); + Assertions.assertEquals("tezlwff", model.type()); + Assertions.assertEquals("iakp", model.typeHandlerVersion()); + Assertions.assertTrue(model.autoUpgradeMinorVersion()); + Assertions.assertEquals("mmji", model.forceUpdateTag()); + Assertions.assertEquals("ozphvwauyqncygu", model.provisionAfterExtensions().get(0)); Assertions.assertTrue(model.enableAutomaticUpgrade()); Assertions.assertEquals(VmssExtensionSetupOrder.BEFORE_SFRUNTIME, model.setupOrder().get(0)); } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VMSizeTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VMSizeTests.java index 77db834f295d..75c7ce38cd10 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VMSizeTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VMSizeTests.java @@ -10,6 +10,6 @@ public final class VMSizeTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - VMSize model = BinaryData.fromString("{\"size\":\"qapnedgfbcv\"}").toObject(VMSize.class); + VMSize model = BinaryData.fromString("{\"size\":\"ovvqfovljxywsu\"}").toObject(VMSize.class); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VaultCertificateTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VaultCertificateTests.java index d173b9d51d5d..aaf4c0505c25 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VaultCertificateTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VaultCertificateTests.java @@ -11,19 +11,18 @@ public final class VaultCertificateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - VaultCertificate model = BinaryData - .fromString("{\"certificateUrl\":\"hfkvtvsexsowuel\",\"certificateStore\":\"qhhahhxvrhmzkwpj\"}") - .toObject(VaultCertificate.class); - Assertions.assertEquals("hfkvtvsexsowuel", model.certificateUrl()); - Assertions.assertEquals("qhhahhxvrhmzkwpj", model.certificateStore()); + VaultCertificate model + = BinaryData.fromString("{\"certificateUrl\":\"on\",\"certificateStore\":\"myhgfipnsxkmc\"}") + .toObject(VaultCertificate.class); + Assertions.assertEquals("on", model.certificateUrl()); + Assertions.assertEquals("myhgfipnsxkmc", model.certificateStore()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VaultCertificate model - = new VaultCertificate().withCertificateUrl("hfkvtvsexsowuel").withCertificateStore("qhhahhxvrhmzkwpj"); + VaultCertificate model = new VaultCertificate().withCertificateUrl("on").withCertificateStore("myhgfipnsxkmc"); model = BinaryData.fromObject(model).toObject(VaultCertificate.class); - Assertions.assertEquals("hfkvtvsexsowuel", model.certificateUrl()); - Assertions.assertEquals("qhhahhxvrhmzkwpj", model.certificateStore()); + Assertions.assertEquals("on", model.certificateUrl()); + Assertions.assertEquals("myhgfipnsxkmc", model.certificateStore()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VaultSecretGroupTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VaultSecretGroupTests.java index 3f5c6b4e5670..a23ab8ce05a5 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VaultSecretGroupTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VaultSecretGroupTests.java @@ -15,24 +15,23 @@ public final class VaultSecretGroupTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VaultSecretGroup model = BinaryData.fromString( - "{\"sourceVault\":{\"id\":\"cirgzp\"},\"vaultCertificates\":[{\"certificateUrl\":\"lazszrn\",\"certificateStore\":\"oiindfpwpjy\"},{\"certificateUrl\":\"wbtlhflsjcdh\",\"certificateStore\":\"zfjvfbgofe\"},{\"certificateUrl\":\"jagrqmqhldvr\",\"certificateStore\":\"iiojnal\"}]}") + "{\"sourceVault\":{\"id\":\"xccbdreaxhcex\"},\"vaultCertificates\":[{\"certificateUrl\":\"rvqahqkghtpwi\",\"certificateStore\":\"nhyjsv\"},{\"certificateUrl\":\"ycxzbfvoo\",\"certificateStore\":\"vrvmtgjqppyost\"}]}") .toObject(VaultSecretGroup.class); - Assertions.assertEquals("cirgzp", model.sourceVault().id()); - Assertions.assertEquals("lazszrn", model.vaultCertificates().get(0).certificateUrl()); - Assertions.assertEquals("oiindfpwpjy", model.vaultCertificates().get(0).certificateStore()); + Assertions.assertEquals("xccbdreaxhcex", model.sourceVault().id()); + Assertions.assertEquals("rvqahqkghtpwi", model.vaultCertificates().get(0).certificateUrl()); + Assertions.assertEquals("nhyjsv", model.vaultCertificates().get(0).certificateStore()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { VaultSecretGroup model - = new VaultSecretGroup().withSourceVault(new SubResource().withId("cirgzp")) + = new VaultSecretGroup().withSourceVault(new SubResource().withId("xccbdreaxhcex")) .withVaultCertificates(Arrays.asList( - new VaultCertificate().withCertificateUrl("lazszrn").withCertificateStore("oiindfpwpjy"), - new VaultCertificate().withCertificateUrl("wbtlhflsjcdh").withCertificateStore("zfjvfbgofe"), - new VaultCertificate().withCertificateUrl("jagrqmqhldvr").withCertificateStore("iiojnal"))); + new VaultCertificate().withCertificateUrl("rvqahqkghtpwi").withCertificateStore("nhyjsv"), + new VaultCertificate().withCertificateUrl("ycxzbfvoo").withCertificateStore("vrvmtgjqppyost"))); model = BinaryData.fromObject(model).toObject(VaultSecretGroup.class); - Assertions.assertEquals("cirgzp", model.sourceVault().id()); - Assertions.assertEquals("lazszrn", model.vaultCertificates().get(0).certificateUrl()); - Assertions.assertEquals("oiindfpwpjy", model.vaultCertificates().get(0).certificateStore()); + Assertions.assertEquals("xccbdreaxhcex", model.sourceVault().id()); + Assertions.assertEquals("rvqahqkghtpwi", model.vaultCertificates().get(0).certificateUrl()); + Assertions.assertEquals("nhyjsv", model.vaultCertificates().get(0).certificateStore()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VmApplicationTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VmApplicationTests.java index 8cfa5beb4bf7..583931d6201e 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VmApplicationTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VmApplicationTests.java @@ -12,30 +12,30 @@ public final class VmApplicationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VmApplication model = BinaryData.fromString( - "{\"configurationReference\":\"qmi\",\"enableAutomaticUpgrade\":false,\"order\":1222923392,\"packageReferenceId\":\"ggufhyaomtb\",\"vmGalleryTags\":\"havgrvk\",\"treatFailureAsDeploymentFailure\":true}") + "{\"configurationReference\":\"zuo\",\"enableAutomaticUpgrade\":false,\"order\":1975248748,\"packageReferenceId\":\"w\",\"vmGalleryTags\":\"ioknssxmoj\",\"treatFailureAsDeploymentFailure\":false}") .toObject(VmApplication.class); - Assertions.assertEquals("qmi", model.configurationReference()); + Assertions.assertEquals("zuo", model.configurationReference()); Assertions.assertFalse(model.enableAutomaticUpgrade()); - Assertions.assertEquals(1222923392, model.order()); - Assertions.assertEquals("ggufhyaomtb", model.packageReferenceId()); - Assertions.assertEquals("havgrvk", model.vmGalleryTags()); - Assertions.assertTrue(model.treatFailureAsDeploymentFailure()); + Assertions.assertEquals(1975248748, model.order()); + Assertions.assertEquals("w", model.packageReferenceId()); + Assertions.assertEquals("ioknssxmoj", model.vmGalleryTags()); + Assertions.assertFalse(model.treatFailureAsDeploymentFailure()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VmApplication model = new VmApplication().withConfigurationReference("qmi") + VmApplication model = new VmApplication().withConfigurationReference("zuo") .withEnableAutomaticUpgrade(false) - .withOrder(1222923392) - .withPackageReferenceId("ggufhyaomtb") - .withVmGalleryTags("havgrvk") - .withTreatFailureAsDeploymentFailure(true); + .withOrder(1975248748) + .withPackageReferenceId("w") + .withVmGalleryTags("ioknssxmoj") + .withTreatFailureAsDeploymentFailure(false); model = BinaryData.fromObject(model).toObject(VmApplication.class); - Assertions.assertEquals("qmi", model.configurationReference()); + Assertions.assertEquals("zuo", model.configurationReference()); Assertions.assertFalse(model.enableAutomaticUpgrade()); - Assertions.assertEquals(1222923392, model.order()); - Assertions.assertEquals("ggufhyaomtb", model.packageReferenceId()); - Assertions.assertEquals("havgrvk", model.vmGalleryTags()); - Assertions.assertTrue(model.treatFailureAsDeploymentFailure()); + Assertions.assertEquals(1975248748, model.order()); + Assertions.assertEquals("w", model.packageReferenceId()); + Assertions.assertEquals("ioknssxmoj", model.vmGalleryTags()); + Assertions.assertFalse(model.treatFailureAsDeploymentFailure()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VmManagedIdentityTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VmManagedIdentityTests.java index 9aa28efef096..46031d57aa54 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VmManagedIdentityTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VmManagedIdentityTests.java @@ -12,17 +12,17 @@ public final class VmManagedIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - VmManagedIdentity model = BinaryData - .fromString("{\"userAssignedIdentities\":[\"lpqekf\",\"nkhtjsyingw\",\"qatmtdhtmdvy\",\"gikdgsz\"]}") - .toObject(VmManagedIdentity.class); - Assertions.assertEquals("lpqekf", model.userAssignedIdentities().get(0)); + VmManagedIdentity model + = BinaryData.fromString("{\"userAssignedIdentities\":[\"jbypel\",\"c\",\"vhixbjxy\",\"w\"]}") + .toObject(VmManagedIdentity.class); + Assertions.assertEquals("jbypel", model.userAssignedIdentities().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VmManagedIdentity model = new VmManagedIdentity() - .withUserAssignedIdentities(Arrays.asList("lpqekf", "nkhtjsyingw", "qatmtdhtmdvy", "gikdgsz")); + VmManagedIdentity model + = new VmManagedIdentity().withUserAssignedIdentities(Arrays.asList("jbypel", "c", "vhixbjxy", "w")); model = BinaryData.fromObject(model).toObject(VmManagedIdentity.class); - Assertions.assertEquals("lpqekf", model.userAssignedIdentities().get(0)); + Assertions.assertEquals("jbypel", model.userAssignedIdentities().get(0)); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VmssDataDiskTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VmssDataDiskTests.java index beae5690cb52..ca0beda69e7b 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VmssDataDiskTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VmssDataDiskTests.java @@ -14,24 +14,24 @@ public final class VmssDataDiskTests { public void testDeserialize() throws Exception { VmssDataDisk model = BinaryData .fromString( - "{\"lun\":366208637,\"diskSizeGB\":2107533163,\"diskType\":\"Standard_LRS\",\"diskLetter\":\"olvrw\"}") + "{\"lun\":1845240712,\"diskSizeGB\":1128027174,\"diskType\":\"PremiumV2_LRS\",\"diskLetter\":\"ywub\"}") .toObject(VmssDataDisk.class); - Assertions.assertEquals(366208637, model.lun()); - Assertions.assertEquals(2107533163, model.diskSizeGB()); - Assertions.assertEquals(DiskType.STANDARD_LRS, model.diskType()); - Assertions.assertEquals("olvrw", model.diskLetter()); + Assertions.assertEquals(1845240712, model.lun()); + Assertions.assertEquals(1128027174, model.diskSizeGB()); + Assertions.assertEquals(DiskType.PREMIUM_V2_LRS, model.diskType()); + Assertions.assertEquals("ywub", model.diskLetter()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VmssDataDisk model = new VmssDataDisk().withLun(366208637) - .withDiskSizeGB(2107533163) - .withDiskType(DiskType.STANDARD_LRS) - .withDiskLetter("olvrw"); + VmssDataDisk model = new VmssDataDisk().withLun(1845240712) + .withDiskSizeGB(1128027174) + .withDiskType(DiskType.PREMIUM_V2_LRS) + .withDiskLetter("ywub"); model = BinaryData.fromObject(model).toObject(VmssDataDisk.class); - Assertions.assertEquals(366208637, model.lun()); - Assertions.assertEquals(2107533163, model.diskSizeGB()); - Assertions.assertEquals(DiskType.STANDARD_LRS, model.diskType()); - Assertions.assertEquals("olvrw", model.diskLetter()); + Assertions.assertEquals(1845240712, model.lun()); + Assertions.assertEquals(1128027174, model.diskSizeGB()); + Assertions.assertEquals(DiskType.PREMIUM_V2_LRS, model.diskType()); + Assertions.assertEquals("ywub", model.diskLetter()); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VmssExtensionTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VmssExtensionTests.java index 836616a665fb..c822877e05ac 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VmssExtensionTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/VmssExtensionTests.java @@ -14,42 +14,41 @@ public final class VmssExtensionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VmssExtension model = BinaryData.fromString( - "{\"name\":\"wws\",\"properties\":{\"publisher\":\"ughftqsx\",\"type\":\"qxujxukndxd\",\"typeHandlerVersion\":\"grjguufzd\",\"autoUpgradeMinorVersion\":false,\"settings\":\"datatfih\",\"protectedSettings\":\"databotzingamvppho\",\"forceUpdateTag\":\"qzudphq\",\"provisionAfterExtensions\":[\"dkfw\",\"nwcvtbvkayhmtnv\",\"qiatkzwpcnp\",\"zcjaesgvvsccy\"],\"provisioningState\":\"g\",\"enableAutomaticUpgrade\":true,\"setupOrder\":[\"BeforeSFRuntime\",\"BeforeSFRuntime\",\"BeforeSFRuntime\",\"BeforeSFRuntime\"]}}") + "{\"name\":\"a\",\"properties\":{\"publisher\":\"krrjrea\",\"type\":\"xt\",\"typeHandlerVersion\":\"gumhjglikkxws\",\"autoUpgradeMinorVersion\":true,\"settings\":\"dataqpvuzlmvfelf\",\"protectedSettings\":\"datagplcrpwjxeznoigb\",\"forceUpdateTag\":\"jwmwkpnbs\",\"provisionAfterExtensions\":[\"jjoqkagf\",\"sxtta\",\"gzxnfaazpxdtnk\",\"mkqjj\"],\"provisioningState\":\"uenvrkp\",\"enableAutomaticUpgrade\":true,\"setupOrder\":[\"BeforeSFRuntime\",\"BeforeSFRuntime\"]}}") .toObject(VmssExtension.class); - Assertions.assertEquals("wws", model.name()); - Assertions.assertEquals("ughftqsx", model.publisher()); - Assertions.assertEquals("qxujxukndxd", model.type()); - Assertions.assertEquals("grjguufzd", model.typeHandlerVersion()); - Assertions.assertFalse(model.autoUpgradeMinorVersion()); - Assertions.assertEquals("qzudphq", model.forceUpdateTag()); - Assertions.assertEquals("dkfw", model.provisionAfterExtensions().get(0)); + Assertions.assertEquals("a", model.name()); + Assertions.assertEquals("krrjrea", model.publisher()); + Assertions.assertEquals("xt", model.type()); + Assertions.assertEquals("gumhjglikkxws", model.typeHandlerVersion()); + Assertions.assertTrue(model.autoUpgradeMinorVersion()); + Assertions.assertEquals("jwmwkpnbs", model.forceUpdateTag()); + Assertions.assertEquals("jjoqkagf", model.provisionAfterExtensions().get(0)); Assertions.assertTrue(model.enableAutomaticUpgrade()); Assertions.assertEquals(VmssExtensionSetupOrder.BEFORE_SFRUNTIME, model.setupOrder().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VmssExtension model = new VmssExtension().withName("wws") - .withPublisher("ughftqsx") - .withType("qxujxukndxd") - .withTypeHandlerVersion("grjguufzd") - .withAutoUpgradeMinorVersion(false) - .withSettings("datatfih") - .withProtectedSettings("databotzingamvppho") - .withForceUpdateTag("qzudphq") - .withProvisionAfterExtensions(Arrays.asList("dkfw", "nwcvtbvkayhmtnv", "qiatkzwpcnp", "zcjaesgvvsccy")) + VmssExtension model = new VmssExtension().withName("a") + .withPublisher("krrjrea") + .withType("xt") + .withTypeHandlerVersion("gumhjglikkxws") + .withAutoUpgradeMinorVersion(true) + .withSettings("dataqpvuzlmvfelf") + .withProtectedSettings("datagplcrpwjxeznoigb") + .withForceUpdateTag("jwmwkpnbs") + .withProvisionAfterExtensions(Arrays.asList("jjoqkagf", "sxtta", "gzxnfaazpxdtnk", "mkqjj")) .withEnableAutomaticUpgrade(true) .withSetupOrder( - Arrays.asList(VmssExtensionSetupOrder.BEFORE_SFRUNTIME, VmssExtensionSetupOrder.BEFORE_SFRUNTIME, - VmssExtensionSetupOrder.BEFORE_SFRUNTIME, VmssExtensionSetupOrder.BEFORE_SFRUNTIME)); + Arrays.asList(VmssExtensionSetupOrder.BEFORE_SFRUNTIME, VmssExtensionSetupOrder.BEFORE_SFRUNTIME)); model = BinaryData.fromObject(model).toObject(VmssExtension.class); - Assertions.assertEquals("wws", model.name()); - Assertions.assertEquals("ughftqsx", model.publisher()); - Assertions.assertEquals("qxujxukndxd", model.type()); - Assertions.assertEquals("grjguufzd", model.typeHandlerVersion()); - Assertions.assertFalse(model.autoUpgradeMinorVersion()); - Assertions.assertEquals("qzudphq", model.forceUpdateTag()); - Assertions.assertEquals("dkfw", model.provisionAfterExtensions().get(0)); + Assertions.assertEquals("a", model.name()); + Assertions.assertEquals("krrjrea", model.publisher()); + Assertions.assertEquals("xt", model.type()); + Assertions.assertEquals("gumhjglikkxws", model.typeHandlerVersion()); + Assertions.assertTrue(model.autoUpgradeMinorVersion()); + Assertions.assertEquals("jwmwkpnbs", model.forceUpdateTag()); + Assertions.assertEquals("jjoqkagf", model.provisionAfterExtensions().get(0)); Assertions.assertTrue(model.enableAutomaticUpgrade()); Assertions.assertEquals(VmssExtensionSetupOrder.BEFORE_SFRUNTIME, model.setupOrder().get(0)); } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ZoneFaultSimulationContentTests.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ZoneFaultSimulationContentTests.java index f5dab42a57f5..7e915b205b04 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ZoneFaultSimulationContentTests.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/test/java/com/azure/resourcemanager/servicefabricmanagedclusters/generated/ZoneFaultSimulationContentTests.java @@ -15,22 +15,22 @@ public final class ZoneFaultSimulationContentTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ZoneFaultSimulationContent model = BinaryData.fromString( - "{\"faultKind\":\"Zone\",\"zones\":[\"dkcrodt\",\"infwjlfltkacjve\",\"kdlfoa\"],\"force\":false,\"constraints\":{\"expirationTime\":\"2021-01-22T11:21:37Z\"}}") + "{\"faultKind\":\"Zone\",\"zones\":[\"wqaldsyu\"],\"force\":true,\"constraints\":{\"expirationTime\":\"2021-06-17T14:42:30Z\"}}") .toObject(ZoneFaultSimulationContent.class); - Assertions.assertFalse(model.force()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-22T11:21:37Z"), model.constraints().expirationTime()); - Assertions.assertEquals("dkcrodt", model.zones().get(0)); + Assertions.assertTrue(model.force()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-17T14:42:30Z"), model.constraints().expirationTime()); + Assertions.assertEquals("wqaldsyu", model.zones().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ZoneFaultSimulationContent model = new ZoneFaultSimulationContent().withForce(false) + ZoneFaultSimulationContent model = new ZoneFaultSimulationContent().withForce(true) .withConstraints( - new FaultSimulationConstraints().withExpirationTime(OffsetDateTime.parse("2021-01-22T11:21:37Z"))) - .withZones(Arrays.asList("dkcrodt", "infwjlfltkacjve", "kdlfoa")); + new FaultSimulationConstraints().withExpirationTime(OffsetDateTime.parse("2021-06-17T14:42:30Z"))) + .withZones(Arrays.asList("wqaldsyu")); model = BinaryData.fromObject(model).toObject(ZoneFaultSimulationContent.class); - Assertions.assertFalse(model.force()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-22T11:21:37Z"), model.constraints().expirationTime()); - Assertions.assertEquals("dkcrodt", model.zones().get(0)); + Assertions.assertTrue(model.force()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-17T14:42:30Z"), model.constraints().expirationTime()); + Assertions.assertEquals("wqaldsyu", model.zones().get(0)); } } diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/tsp-location.yaml b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/tsp-location.yaml index 960526af63f8..a26d7c515cce 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/tsp-location.yaml +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/tsp-location.yaml @@ -1,4 +1,4 @@ -directory: specification/servicefabricmanagedclusters/ServiceFabricManagedClusters.Management -commit: 05584a1019e75159b0dc70a6751afaa2c77868e6 +directory: specification/servicefabricmanagedclusters/resource-manager/Microsoft.ServiceFabric/ServiceFabricManagedClusters +commit: 833aeb9992144f6e04d99de1316a7f37a001ee94 repo: Azure/azure-rest-api-specs additionalDirectories: